[PATCH] ARM: Do not select HAVE_RUST when KASAN is enabled
Miguel Ojeda
miguel.ojeda.sandonis at gmail.com
Thu May 14 16:24:08 PDT 2026
On Mon, May 11, 2026 at 10:02 AM Nathan Chancellor <nathan at kernel.org> wrote:
>
> 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 at 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 at kernel.org>
Applied to `rust-fixes` -- thanks everyone!
Cheers,
Miguel
More information about the linux-arm-kernel
mailing list