From: Matthew Maurer Date: Tue, 20 Aug 2024 19:48:57 +0000 (+0000) Subject: rust: kasan: Rust does not support KHWASAN X-Git-Tag: v6.12-rc1~55^2~2 X-Git-Url: https://git.kernel.dk/?a=commitdiff_plain;h=f64e2f3a66e30319023b7924d438d159ac742d63;p=linux-block.git rust: kasan: Rust does not support KHWASAN Rust does not yet have support for software tags. Prevent RUST from being selected if KASAN_SW_TAGS is enabled. Signed-off-by: Matthew Maurer Reviewed-by: Andrey Konovalov Link: https://lore.kernel.org/r/20240820194910.187826-3-mmaurer@google.com Signed-off-by: Miguel Ojeda --- diff --git a/init/Kconfig b/init/Kconfig index 53f4589b7847..4ea2a161d362 100644 --- a/init/Kconfig +++ b/init/Kconfig @@ -1912,6 +1912,7 @@ config RUST depends on !CFI_CLANG || RUSTC_VERSION >= 107900 && $(cc-option,-fsanitize=kcfi -fsanitize-cfi-icall-experimental-normalize-integers) select CFI_ICALL_NORMALIZE_INTEGERS if CFI_CLANG depends on !CALL_PADDING || RUSTC_VERSION >= 108000 + depends on !KASAN_SW_TAGS help Enables Rust support in the kernel.