From: Oleg Nesterov Date: Tue, 2 Sep 2014 17:57:17 +0000 (+0200) Subject: x86, fpu: __restore_xstate_sig()->math_state_restore() needs preempt_disable() X-Git-Tag: fixes-against-v3.18-rc2~90^2~5 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=df24fb859a4e200d9324e2974229fbb7adf00aef;p=pandora-kernel.git 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 Link: http://lkml.kernel.org/r/20140902175717.GA21649@redhat.com Cc: # v3.7+ Reviewed-by: Suresh Siddha Signed-off-by: H. Peter Anvin --- Reading git-diff-tree failed