x86/traps: Use fatal_trap() for #UD and #GP

This renders the diagnostics in a more uniform way.

Signed-off-by: Andrew Cooper <andrew.cooper3@citrix.com>
Acked-by: Jan Beulich <jbeulich@suse.com>
(cherry picked from commit 705784e512)
This commit is contained in:
Andrew Cooper committed 2026-03-17 12:13:50 +00:00
1 parent c8b536ec18
commit 4deb5b83b6
1 file changed
+2 -4
+2 -4
View File
@@ -1376,8 +1376,7 @@ void asmlinkage do_invalid_op(struct cpu_user_regs *regs)
if ( likely(extable_fixup(regs, true)) )
return;
show_execution_state(regs);
panic("FATAL TRAP: vector = %d (invalid opcode)\n", X86_EXC_UD);
fatal_trap(regs, false);
}
void asmlinkage do_int3(struct cpu_user_regs *regs)
@@ -1476,8 +1475,7 @@ void do_general_protection(struct cpu_user_regs *regs)
return;
hardware_gp:
show_execution_state(regs);
panic("GENERAL PROTECTION FAULT\n[error_code=%04x]\n", regs->error_code);
fatal_trap(regs, false);
}
#ifdef CONFIG_PV
Reference in new issue
Block a user
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.