[RFC PATCH v2 10/21] arm64: Add CFI error handling

Sami Tolvanen samitolvanen at google.com
Mon May 16 09:24:50 PDT 2022


On Sat, May 14, 2022 at 2:51 PM Kees Cook <keescook at chromium.org> wrote:
>
> On Fri, May 13, 2022 at 01:21:48PM -0700, Sami Tolvanen wrote:
> > With -fsanitize=kcfi, CFI always traps. Add arm64 support for handling
> > CFI failures. The registers containing the target address and the
> > expected type are encoded in the first ten bits of the ESR as follows:
> >
> >  - 0-4: n, where the register Xn contains the target address
> >  - 5-9: m, where the register Wm contains the type hash
> >
> > Suggested-by: Mark Rutland <mark.rutland at arm.com>
> > Signed-off-by: Sami Tolvanen <samitolvanen at google.com>
>
> It might be nice just to include an example exception Oops in this
> commit log.

Agreed, I'll add an example.

Sami



More information about the linux-arm-kernel mailing list