diff options
author | Junhui Pei <paradoxskin233@gmail.com> | 2025-06-02 18:38:41 +0300 |
---|---|---|
committer | Kees Cook <kees@kernel.org> | 2025-08-25 16:11:06 +0300 |
commit | ae91aea2d2265c88dbed65a07bbaf3c133fe970c (patch) | |
tree | 38d587d7f01b2b9f8b31191620b47f560dedc9ba /tools/testing/selftests/bpf/prog_tests/prog_array_init.c | |
parent | c17b750b3ad9f45f2b6f7e6f7f4679844244f0b9 (diff) | |
download | linux-ae91aea2d2265c88dbed65a07bbaf3c133fe970c.tar.xz |
ubsan: Fix incorrect hand-side used in handle
__ubsan_handle_divrem_overflow() incorrectly uses the RHS to report.
It always reports the same log: division of -1 by -1. But it should
report division of LHS by -1.
Signed-off-by: Junhui Pei <paradoxskin233@gmail.com>
Fixes: c6d308534aef ("UBSAN: run-time undefined behavior sanity checker")
Link: https://lore.kernel.org/r/20250602153841.62935-1-paradoxskin233@gmail.com
Signed-off-by: Kees Cook <kees@kernel.org>
Diffstat (limited to 'tools/testing/selftests/bpf/prog_tests/prog_array_init.c')
0 files changed, 0 insertions, 0 deletions