summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMatthew Maurer <mmaurer@google.com>2024-08-20 19:48:57 +0000
committerMiguel Ojeda <ojeda@kernel.org>2024-09-16 18:04:37 +0200
commitf64e2f3a66e30319023b7924d438d159ac742d63 (patch)
tree9410bdf44ca9ae5c4314d8d21f0f790e0c4ae9d3
parentc42297438aee70e2d391225de3d35ffeb2bdbaf9 (diff)
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 <mmaurer@google.com> Reviewed-by: Andrey Konovalov <andreyknvl@gmail.com> Link: https://lore.kernel.org/r/20240820194910.187826-3-mmaurer@google.com Signed-off-by: Miguel Ojeda <ojeda@kernel.org>
-rw-r--r--init/Kconfig1
1 files changed, 1 insertions, 0 deletions
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.