]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
ARM: Do not select HAVE_RUST when KASAN is enabled
authorNathan Chancellor <nathan@kernel.org>
Mon, 11 May 2026 08:02:44 +0000 (17:02 +0900)
committerMiguel Ojeda <ojeda@kernel.org>
Thu, 14 May 2026 23:15:53 +0000 (01:15 +0200)
commit84a0f7caafc679f763d3868635837e22bb89651a
treeb9f58fbeabc8b9990f50e936d166f8de1220d0e1
parent5d6919055dec134de3c40167a490f33c74c12581
ARM: Do not select HAVE_RUST when KASAN is enabled

When KASAN is enabled, such as with allmodconfig, the build fails when
building the Rust code with:

  error: kernel-address sanitizer is not supported for this target

  error: aborting due to 1 previous error

  make[4]: *** [rust/Makefile:654: rust/core.o] Error 1

The arm-unknown-linux-gnueabi target does not support KASAN, so avoid
saying Rust is supported when it is enabled.

Cc: stable@vger.kernel.org
Fixes: ccb8ce526807 ("ARM: 9441/1: rust: Enable Rust support for ARMv7")
Link: https://github.com/Rust-for-Linux/linux/issues/1234
Signed-off-by: Nathan Chancellor <nathan@kernel.org>
Reviewed-by: Christian Schrefl <chrisi.schrefl@gmail.com>
Link: https://patch.msgid.link/20260511-arm-avoid-rust-with-kasan-v1-1-24d55f4a900b@kernel.org
Signed-off-by: Miguel Ojeda <ojeda@kernel.org>
arch/arm/Kconfig