Re: [PATCH] x86/Kconfig: make CFI_AUTO_DEFAULT depend on !RUST
From: Miguel Ojeda
Date: Thu Apr 10 2025 - 09:26:53 EST
On Thu, Apr 10, 2025 at 3:09 PM Peter Zijlstra <peterz@xxxxxxxxxxxxx> wrote:
>
> Miguel, I cannot find this code in the kernel tree. Is this again
> because Rust is not free-standing and relies on external code?
Yes, this comes from the `core` standard library. If it requires a
change, then it needs to be fixed upstream.
> Can you please fix that. Building against external code that is not
> under our control is a problem.
The only way to fix it would be to vendor the standard library, for
each Rust compiler version -- and there is one new every 6 weeks.
Thus, quite a few copies of it. Or keep patches (one per version) that
we apply on the fly.
Cheers,
Miguel