]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commitba5ff85a7f541866e62639f225f527f6c6e4b951
treeac9ba5ba08a776edb2f16e7482d6fb35d1fe4e06
parente3066787ac8e7724137b85db9a8c4cc8a4c934f9
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: 540138b2e2b6 ("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