Commit ae91aea2 authored by Junhui Pei's avatar Junhui Pei Committed by Kees Cook
Browse files

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: default avatarJunhui Pei <paradoxskin233@gmail.com>
Fixes: c6d30853 ("UBSAN: run-time undefined behavior sanity checker")
Link: https://lore.kernel.org/r/20250602153841.62935-1-paradoxskin233@gmail.com


Signed-off-by: default avatarKees Cook <kees@kernel.org>
parent c17b750b
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment