riscv: Fix asan-stack clang build
authorAlexandre Ghiti <alexandre.ghiti@canonical.com>
Fri, 29 Oct 2021 04:59:27 +0000 (06:59 +0200)
committerPalmer Dabbelt <palmerdabbelt@google.com>
Fri, 29 Oct 2021 15:54:50 +0000 (08:54 -0700)
commit54c5639d8f507ebefa814f574cb6f763033a72a5
treeac9ba5ba08a776edb2f16e7482d6fb35d1fe4e06
parentcf11d01135ea1ff7fddb612033e3cb5cde279ff2
riscv: Fix asan-stack clang build

Nathan reported that because KASAN_SHADOW_OFFSET was not defined in
Kconfig, it prevents asan-stack from getting disabled with clang even
when CONFIG_KASAN_STACK is disabled: fix this by defining the
corresponding config.

Reported-by: Nathan Chancellor <nathan@kernel.org>
Signed-off-by: Alexandre Ghiti <alexandre.ghiti@canonical.com>
Fixes: 8ad8b72721d0 ("riscv: Add KASAN support")
Cc: stable@vger.kernel.org
Signed-off-by: Palmer Dabbelt <palmerdabbelt@google.com>
arch/riscv/Kconfig
arch/riscv/include/asm/kasan.h
arch/riscv/mm/kasan_init.c