Bug 212195

Summary: KASAN: mention used mode in init message
Product: Memory Management Reporter: Andrey Konovalov (andreyknvl)
Component: SanitizersAssignee: MM/Sanitizers virtual assignee (mm_sanitizers)
Status: RESOLVED CODE_FIX    
Severity: normal CC: kasan-dev
Priority: P1    
Hardware: All   
OS: Linux   
Kernel Version: upstream Subsystem:
Regression: No Bisected commit-id:

Description Andrey Konovalov 2021-03-09 15:46:37 UTC
As there are multiple KASAN modes that all work differently, it makes sense to mention the enabled mode in the "KernelAddressSanitizer initialized" message. Something like:

kasan: KernelAddressSanitizer initialized (generic)

kasan: KernelAddressSanitizer initialized (hw-tags, mode=async, stacktrace=on)
Comment 1 Andrey Konovalov 2021-11-14 21:27:03 UTC
Done for arm64 in [1]. Other arches only support the Generic mode, so having different messages doesn't apply.

[1] https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?id=b873e986816a0b8408c177b2c52a6915cca8713c