Thread (7 messages) 7 messages, 5 authors, 2023-02-03

Re: [PATCH] arm64: Support Clang UBSAN trap codes for better reporting

From: Kees Cook <hidden>
Date: 2023-02-03 16:32:30
Also in: linux-hardening, lkml, llvm

On Fri, Feb 03, 2023 at 09:58:26AM +0000, Mark Rutland wrote:
On Thu, Feb 02, 2023 at 10:36:57PM +0000, Kees Cook wrote:
quoted
On arm64, Clang encodes the UBSAN check type in the esr. Extract this
and actually report UBSAN traps with some specificity when building with
CONFIG_UBSAN_TRAP. Before:
Really minor nit, but could we mention CONFIG_UBSAN_TRAP at the start, e.g.
change that first sentence to:

| When CONFIG_UBSAN_TRAP=y on arm64, Clang encodes the UBSAN check type into a
| BRK immediate, which is reported in the ESR.

I was initially confused since I was aware that there are usually direct
function calls for the reporting.
Sure, I can rearrange the commit log.
Other than that, this looks fine to me, and regardless of the above:

Acked-by: Mark Rutland <mark.rutland@arm.com>
Thanks!

-Kees

-- 
Kees Cook

_______________________________________________
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