Commit 6ee149f6 authored by Kees Cook's avatar Kees Cook
Browse files

kunit/fortify: Replace "volatile" with OPTIMIZER_HIDE_VAR()



It does seem that using "volatile" isn't going to be sane compared to
using OPTIMIZER_HIDE_VAR() going forward. Some strange interactions[1]
with the sanitizers have been observed in the self-test code, so replace
the logic.

Reported-by: default avatarNathan Chancellor <nathan@kernel.org>
Closes: https://github.com/ClangBuiltLinux/linux/issues/2075 [1]
Link: https://lore.kernel.org/r/20250312000439.work.112-kees@kernel.org


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