CLANG KASAN
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?
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.
thank you