summaryrefslogtreecommitdiffstats
path: root/lib/locking-selftest-spin-softirq.h
diff options
context:
space:
mode:
authorOleg Nesterov <oleg@redhat.com>2014-09-02 19:57:17 +0200
committerH. Peter Anvin <hpa@linux.intel.com>2014-09-02 14:51:15 -0700
commitdf24fb859a4e200d9324e2974229fbb7adf00aef (patch)
tree948fce3a30171ba27d8656f0782b9e9b9f51e864 /lib/locking-selftest-spin-softirq.h
parent66463db4fc5605d51c7bb81d009d5bf30a783a2c (diff)
downloadblackbird-obmc-linux-df24fb859a4e200d9324e2974229fbb7adf00aef.tar.gz
blackbird-obmc-linux-df24fb859a4e200d9324e2974229fbb7adf00aef.zip
x86, fpu: __restore_xstate_sig()->math_state_restore() needs preempt_disable()
Add preempt_disable() + preempt_enable() around math_state_restore() in __restore_xstate_sig(). Otherwise __switch_to() after __thread_fpu_begin() can overwrite fpu->state we are going to restore. Signed-off-by: Oleg Nesterov <oleg@redhat.com> Link: http://lkml.kernel.org/r/20140902175717.GA21649@redhat.com Cc: <stable@vger.kernel.org> # v3.7+ Reviewed-by: Suresh Siddha <sbsiddha@gmail.com> Signed-off-by: H. Peter Anvin <hpa@linux.intel.com>
Diffstat (limited to 'lib/locking-selftest-spin-softirq.h')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud