Bug 210221

Summary: KASAN: turn CONFIG_KASAN_STACK into bool
Product: Memory Management Reporter: Andrey Konovalov (andreyknvl)
Component: SanitizersAssignee: MM/Sanitizers virtual assignee (mm_sanitizers)
Status: RESOLVED CODE_FIX    
Severity: normal CC: dvyukov, kasan-dev, walter-zh.wu
Priority: P1    
Hardware: All   
OS: Linux   
Kernel Version: upstream Subsystem:
Regression: No Bisected commit-id:

Description Andrey Konovalov 2020-11-16 13:50:19 UTC
CONFIG_KASAN_STACK config option is currently defined as an int, while it's logically a bool. This is a bit confusing and is worth fixing.
Comment 1 Dmitry Vyukov 2020-11-16 13:59:51 UTC
FWIW we could also have just 1 config instead of 2 as well (CONFIG_KASAN_STACK/CONFIG_KASAN_STACK_ENABLE).
For gcc we could do no prompt and default value y, and for clang --
prompt and default value n. I think it should do what we need.
Comment 2 Walter Wu 2021-01-07 06:22:25 UTC
Hi Dmitry/Andrey,

I already sent one patch(kasan: remove redundant config option) to fix it.
Thank you for your suggestion.

Walter
Comment 3 Dmitry Vyukov 2021-02-03 11:05:56 UTC
"kasan: remove redundant config option" is now in linux-next.