LLVM-embedded-toolchain-for-Arm icon indicating copy to clipboard operation
LLVM-embedded-toolchain-for-Arm copied to clipboard

CLANG KASAN

Open W-M-R opened this issue 9 months ago • 1 comments

Why does this clang18.1.3 add the "-fsanitize=kernel-address" option and use the same default instrumentation method as asan, instead of calling the __asan_load_xxx function like gcc?

W-M-R avatar Feb 24 '25 03:02 W-M-R

Hi,

Thank you for reporting this! I am afraid we did not test Kernel Address Sanitizer specifically, however we did not introduce any changes that might have impacted its behavior either, i.e. you can double check with the same version of upstream clang - it must do the same.

There is this blog post about using KASan for firmware https://security.googleblog.com/2024/03/address-sanitizer-for-bare-metal.html that has some examples that may be useful.

voltur01 avatar Feb 24 '25 09:02 voltur01

thank you

W-M-R avatar May 08 '25 09:05 W-M-R