Bug 212195 - KASAN: mention used mode in init message
Summary: KASAN: mention used mode in init message
Status: RESOLVED CODE_FIX
Alias: None
Product: Memory Management
Classification: Unclassified
Component: Sanitizers (show other bugs)
Hardware: All Linux
: P1 normal
Assignee: MM/Sanitizers virtual assignee
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2021-03-09 15:46 UTC by Andrey Konovalov
Modified: 2021-11-14 21:27 UTC (History)
1 user (show)

See Also:
Kernel Version: upstream
Subsystem:
Regression: No
Bisected commit-id:


Attachments

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

Note You need to log in before you can comment on or make changes to this bug.