Re: [PATCH v2] rust: kasan: add support for Software Tag-Based KASAN

From: Miguel Ojeda

Date: Wed Apr 01 2026 - 06:02:02 EST


On Wed, Apr 1, 2026 at 11:13 AM Alice Ryhl <aliceryhl@xxxxxxxxxx> wrote:
>
> Sashiko is asking what happens when GCC is enabled. I think we just
> don't want this enabled together with GCC. Miguel how do we usually
> handle such cases? I imagine we have quite a few options that are
> probably not compatible with gcc, but I'm not sure we explicitly list
> all those cases in Kconfig.

For options where it is """OK""" to drop them, one can use the
`bindgen_skip_c_flags` hack in `rust/Makefile` (which is best-effort,
and which we eventually should not have when proper GCC support is
added).

We have `--param=% --param asan-%` there, but to be honest, for things
like that, we may just want to gate it with a `depends on CC_IS_*`
instead.

Cheers,
Miguel