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.
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.
Hi Dmitry/Andrey, I already sent one patch(kasan: remove redundant config option) to fix it. Thank you for your suggestion. Walter
"kasan: remove redundant config option" is now in linux-next.