diff options
author | Linus Torvalds <torvalds@linux-foundation.org> | 2018-11-30 14:34:25 -0500 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2018-11-30 14:34:25 -0500 |
commit | 1ec63573b2db363848abb313cc75eb29e9abc1b3 (patch) | |
tree | 3efb06fe490831e48f8708c4ac21f14f486bab58 /arch/x86/kernel/fpu/signal.c | |
parent | a1b3cf6d943800059adc262c4d839524c529db2d (diff) | |
parent | 60c8144afc287ef09ce8c1230c6aa972659ba1bb (diff) |
Merge branch 'x86-urgent-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip
Pull x86 fixes from Ingo Molnar:
"Misc fixes:
- MCE related boot crash fix on certain AMD systems
- FPU exception handling fix
- FPU handling race fix
- revert+rewrite of the RSDP boot protocol extension, use boot_params
instead
- documentation fix"
* 'x86-urgent-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip:
x86/MCE/AMD: Fix the thresholding machinery initialization order
x86/fpu: Use the correct exception table macro in the XSTATE_OP wrapper
x86/fpu: Disable bottom halves while loading FPU registers
x86/acpi, x86/boot: Take RSDP address from boot params if available
x86/boot: Mostly revert commit ae7e1238e68f2a ("Add ACPI RSDP address to setup_header")
x86/ptrace: Fix documentation for tracehook_report_syscall_entry()
Diffstat (limited to 'arch/x86/kernel/fpu/signal.c')
-rw-r--r-- | arch/x86/kernel/fpu/signal.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/arch/x86/kernel/fpu/signal.c b/arch/x86/kernel/fpu/signal.c index 61a949d84dfa..d99a8ee9e185 100644 --- a/arch/x86/kernel/fpu/signal.c +++ b/arch/x86/kernel/fpu/signal.c | |||
@@ -344,10 +344,10 @@ static int __fpu__restore_sig(void __user *buf, void __user *buf_fx, int size) | |||
344 | sanitize_restored_xstate(tsk, &env, xfeatures, fx_only); | 344 | sanitize_restored_xstate(tsk, &env, xfeatures, fx_only); |
345 | } | 345 | } |
346 | 346 | ||
347 | local_bh_disable(); | ||
347 | fpu->initialized = 1; | 348 | fpu->initialized = 1; |
348 | preempt_disable(); | ||
349 | fpu__restore(fpu); | 349 | fpu__restore(fpu); |
350 | preempt_enable(); | 350 | local_bh_enable(); |
351 | 351 | ||
352 | return err; | 352 | return err; |
353 | } else { | 353 | } else { |