diff options
| author | Peter Zijlstra <peterz@infradead.org> | 2025-09-24 15:25:27 +0200 |
|---|---|---|
| committer | Peter Zijlstra <peterz@infradead.org> | 2025-10-14 13:43:11 +0200 |
| commit | 76e1851a1bc28e760d6acc7a54ec9dce05717028 (patch) | |
| tree | 7c9d7172ea6f455e05ea3402a7a2579b5b1287a2 /tools/objtool/arch | |
| parent | c5df4e1ab8c00c4dc13094fa44e219bc48d910f4 (diff) | |
objtool/x86: Add UDB support
Per commit 85a2d4a890dc ("x86,ibt: Use UDB instead of 0xEA"), make
sure objtool also recognises UDB as a #UD instruction.
Signed-off-by: Peter Zijlstra (Intel) <peterz@infradead.org>
Reviewed-by: Alexandre Chartre <alexandre.chartre@oracle.com>
Diffstat (limited to 'tools/objtool/arch')
| -rw-r--r-- | tools/objtool/arch/x86/decode.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/tools/objtool/arch/x86/decode.c b/tools/objtool/arch/x86/decode.c index ce16fb2bd7e9..ef6e96db8ce4 100644 --- a/tools/objtool/arch/x86/decode.c +++ b/tools/objtool/arch/x86/decode.c @@ -683,6 +683,10 @@ int arch_decode_instruction(struct objtool_file *file, const struct section *sec insn->type = INSN_SYSRET; break; + case 0xd6: /* udb */ + insn->type = INSN_BUG; + break; + case 0xe0: /* loopne */ case 0xe1: /* loope */ case 0xe2: /* loop */ |