diff options
author | Peter Zijlstra <peterz@infradead.org> | 2022-03-08 16:30:49 +0100 |
---|---|---|
committer | Peter Zijlstra <peterz@infradead.org> | 2022-03-15 10:32:44 +0100 |
commit | 0e5b613b4d4be3345dda349fb90dd73d2103302f (patch) | |
tree | 8c6a02510634e7c0046ae8bf34a5763979dd3c61 /drivers/xen/xlate_mmu.c | |
parent | x86: Mark __invalid_creds() __noreturn (diff) | |
download | linux-0e5b613b4d4be3345dda349fb90dd73d2103302f.tar.xz linux-0e5b613b4d4be3345dda349fb90dd73d2103302f.zip |
objtool: Rework ASM_REACHABLE
Currently ASM_REACHABLE only works for UD2 instructions; reorder
things to also allow over-riding dead_end_function().
To that end:
- Mark INSN_BUG instructions in decode_instructions(), this saves
having to iterate all instructions yet again.
- Have add_call_destinations() set insn->dead_end for
dead_end_function() calls.
- Move add_dead_ends() *after* add_call_destinations() such that
ASM_REACHABLE can clear the ->dead_end mark.
- have validate_branch() only check ->dead_end.
Signed-off-by: Peter Zijlstra (Intel) <peterz@infradead.org>
Acked-by: Josh Poimboeuf <jpoimboe@redhat.com>
Link: https://lore.kernel.org/r/20220308154319.410010807@infradead.org
Diffstat (limited to 'drivers/xen/xlate_mmu.c')
0 files changed, 0 insertions, 0 deletions