[clang] [sanitizer] Allow use-after-scope front-end argument to take effect with -fsanitize=kernel-address (PR #137015)

via cfe-commits cfe-commits at lists.llvm.org
Fri Apr 25 09:34:20 PDT 2025


dgg5503 wrote:

> However, please be aware that default for Asan is ON. Should Kasan default be OFF in the beginning?

@vitalybuka I'm not sure how many users test a kernel exclusively in `-O0`, but to those who do, I suppose defaulting this to ON could allow the sanitizer to capture never-before-seen use-after-scope issues.

With that said, I'm inclined to keep this defaulted to ON like normal ASAN. Does this sound reasonable, or am I missing some negative side-effects that you had in mind when posting this comment? Would it be worth mentioning this change as a release note regardless?



https://github.com/llvm/llvm-project/pull/137015


More information about the cfe-commits mailing list