Skip to content

Commit bc916e6

Browse files
committed
Merge branch 'x86/urgent' into x86/entry to pick up upstream fixes.
2 parents b037b09 + bd87e6f commit bc916e6

File tree

3 files changed

+6
-4
lines changed

3 files changed

+6
-4
lines changed

arch/x86/entry/common.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@
4646
#include <trace/events/syscalls.h>
4747

4848
/* Check that the stack and regs on entry from user mode are sane. */
49-
static void check_user_regs(struct pt_regs *regs)
49+
static noinstr void check_user_regs(struct pt_regs *regs)
5050
{
5151
if (IS_ENABLED(CONFIG_DEBUG_ENTRY)) {
5252
/*
@@ -294,7 +294,7 @@ static void __prepare_exit_to_usermode(struct pt_regs *regs)
294294
#endif
295295
}
296296

297-
__visible noinstr void prepare_exit_to_usermode(struct pt_regs *regs)
297+
static noinstr void prepare_exit_to_usermode(struct pt_regs *regs)
298298
{
299299
instrumentation_begin();
300300
__prepare_exit_to_usermode(regs);

arch/x86/include/asm/idtentry.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -557,7 +557,7 @@ DECLARE_IDTENTRY_RAW(X86_TRAP_MC, exc_machine_check);
557557

558558
/* NMI */
559559
DECLARE_IDTENTRY_NMI(X86_TRAP_NMI, exc_nmi);
560-
#ifdef CONFIG_XEN_PV
560+
#if defined(CONFIG_XEN_PV) && defined(CONFIG_X86_64)
561561
DECLARE_IDTENTRY_RAW(X86_TRAP_NMI, xenpv_exc_nmi);
562562
#endif
563563

@@ -567,7 +567,7 @@ DECLARE_IDTENTRY_DEBUG(X86_TRAP_DB, exc_debug);
567567
#else
568568
DECLARE_IDTENTRY_RAW(X86_TRAP_DB, exc_debug);
569569
#endif
570-
#ifdef CONFIG_XEN_PV
570+
#if defined(CONFIG_XEN_PV) && defined(CONFIG_X86_64)
571571
DECLARE_IDTENTRY_RAW(X86_TRAP_DB, xenpv_exc_debug);
572572
#endif
573573

arch/x86/kernel/traps.c

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

304304
do_trap(X86_TRAP_AC, SIGBUS, "alignment check", regs,
305305
error_code, BUS_ADRALN, NULL);
306+
307+
local_irq_disable();
306308
}
307309

308310
#ifdef CONFIG_VMAP_STACK

0 commit comments

Comments
 (0)