Re: [PATCH] Compiler Attributes: Add __kcfi_salt

From: Miguel Ojeda
Date: Sun Jul 20 2025 - 16:12:52 EST


On Thu, Jul 17, 2025 at 6:48 PM Sami Tolvanen <samitolvanen@xxxxxxxxxx> wrote:
>
> I would definitely like to see Rust support for this too. Otherwise,
> we would have to drop the attribute when Rust is enabled to avoid CFI
> type mismatches with C code.

Thanks for confirming -- added then to:

https://github.com/Rust-for-Linux/linux/issues/354

I will ask upstream when it lands in LLVM.

Cheers,
Miguel