[RFC/RFT 0/3] Add compiler support for Control Flow Integrity

Peter Collingbourne pcc at google.com
Wed Feb 8 21:32:03 PST 2023


On Sun, Dec 18, 2022 at 10:06 PM Dan Li <ashimida.1990 at gmail.com> wrote:
>
> This series of patches is mainly used to support the control flow
> integrity protection of the linux kernel [1], which is similar to
> -fsanitize=kcfi in clang 16.0 [2,3].
>
> I hope that this feature will also support user-mode CFI in the
> future (at least for developers who can recompile the runtime),
> so I use -fsanitize=cfi as a compilation option here.

Please don't. The various CFI-related build flags are confusing enough
without also having this inconsistency between Clang and GCC.

Peter



More information about the linux-arm-kernel mailing list