Thread (81 messages) read the whole thread 81 messages, 8 authors, 2022-05-25

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

From: Sami Tolvanen <samitolvanen@google.com>
Date: 2022-05-16 16:25:31
Also in: linux-hardening, lkml, llvm

On Sat, May 14, 2022 at 2:51 PM Kees Cook [off-list ref] wrote:
On Fri, May 13, 2022 at 01:21:48PM -0700, Sami Tolvanen wrote:
quoted
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@arm.com>
Signed-off-by: Sami Tolvanen <samitolvanen@google.com>
It might be nice just to include an example exception Oops in this
commit log.
Agreed, I'll add an example.

Sami

_______________________________________________
linux-arm-kernel mailing list
linux-arm-kernel@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help