[PATCH v2] rust: add flags for shadow call stack sanitizer

Miguel Ojeda miguel.ojeda.sandonis at gmail.com
Tue Apr 9 08:55:04 PDT 2024


On Tue, Apr 9, 2024 at 12:31 PM Will Deacon <will at kernel.org> wrote:
>
> I think we have time to do this properly, like we did for the clang
> enablement a few years ago. In hindsight, avoiding hacks for the early
> toolchains back then was a really good idea because it meant we could
> rely on a solid baseline set of compiler features from the start.

Yeah, it sounds fair, thanks!

After the warning is fixed (i.e. `-Zfixed-x18` or similar is
implemented etc.), I would recommend adding support to the kernel for
the `-Z` (unstable) flags, similar to this patch, in order to test
them easily and getting `rustc` to stabilize them. Then the only
change required should be a name change to `-C` or similar.

Cheers,
Miguel



More information about the linux-arm-kernel mailing list