Re: [PATCH v5 00/15] powerpc/objtool: uaccess validation for PPC32 (v5)
From: Peter Zijlstra
Date: Thu Jan 16 2025 - 04:39:08 EST
On Wed, Jan 15, 2025 at 11:42:40PM +0100, Christophe Leroy wrote:
> Christophe Leroy (15):
> objtool: Fix generic annotation infrastructure cross build
> objtool: Move back misplaced comment
> objtool: Allow an architecture to disable objtool on ASM files
> objtool: Fix JUMP_ENTRY_SIZE for bi-arch like powerpc
> objtool: Add INSN_RETURN_CONDITIONAL
> objtool: Add support for relative switch tables
> objtool: Merge mark_func_jump_tables() and add_func_jump_tables()
> objtool: Track general purpose register used for switch table base
> objtool: Find end of switch table directly
> objtool: When looking for switch tables also follow conditional and
> dynamic jumps
> objtool: .rodata.cst{2/4/8/16} are not switch tables
> objtool: Add support for more complex UACCESS control
> objtool: Prepare noreturns.h for more architectures
> powerpc/bug: Annotate reachable after warning trap
> powerpc: Implement UACCESS validation on PPC32
This mostly looks okay to me. You have a tendency to violate the reverse
xmas tree for variables thing, but meh.
I would like Josh to have a hard look at this though, jump tables are
his thing :-)