Re: [PATCH v3 1/2] rust: kasan: KASAN+RUST requires clang

From: Mark Brown

Date: Wed May 27 2026 - 10:06:32 EST


On Wed, Apr 08, 2026 at 08:32:16AM +0000, Alice Ryhl wrote:
> Kernel KASAN involves passing various llvm/gcc specific arguments to
> the C and Rust compiler. Since these arguments differ between llvm and
> gcc, it's not safe to mix an llvm-based rustc with a gcc build when
> kasan is enabled.

FWIW this has the effect of turning off rust for an allmodconfig unless
you're using LLVM=1. That's probably the right thing to do but it means
you might've lost a bunch of coverage.

Attachment: signature.asc
Description: PGP signature