]> git.ipfire.org Git - thirdparty/kernel/linux.git/commitdiff
objtool/x86: Add UDB support
authorPeter Zijlstra <peterz@infradead.org>
Wed, 24 Sep 2025 13:25:27 +0000 (15:25 +0200)
committerPeter Zijlstra <peterz@infradead.org>
Tue, 14 Oct 2025 11:43:11 +0000 (13:43 +0200)
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>
tools/objtool/arch/x86/decode.c

index ce16fb2bd7e93e09f515a85276a52f37c6468473..ef6e96db8ce4424e146953a3bf96f10b192aa480 100644 (file)
@@ -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 */