Skip to content

Commit bce9b04

Browse files
committed
x86/traps: Disable interrupts in exc_aligment_check()
exc_alignment_check() fails to disable interrupts before returning to the entry code. Fixes: ca4c6a9 ("x86/traps: Make interrupt enable/disable symmetric in C code") Reported-by: [email protected] Signed-off-by: Thomas Gleixner <[email protected]> Acked-by: Andy Lutomirski <[email protected]> Link: https://lkml.kernel.org/r/[email protected]
1 parent a4c0e91 commit bce9b04

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

arch/x86/kernel/traps.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -299,6 +299,8 @@ DEFINE_IDTENTRY_ERRORCODE(exc_alignment_check)
299299

300300
do_trap(X86_TRAP_AC, SIGBUS, "alignment check", regs,
301301
error_code, BUS_ADRALN, NULL);
302+
303+
local_irq_disable();
302304
}
303305

304306
#ifdef CONFIG_VMAP_STACK

0 commit comments

Comments
 (0)