Re: [PATCH] x86, fpu: __restore_xstate_sig()->math_state_restore() needs preempt_disable()

2014-09-01 Thread Suresh Siddha
On Mon, Aug 25, 2014 at 11:08 AM, Oleg Nesterov wrote: > > 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 >

Re: [PATCH] x86, fpu: __restore_xstate_sig()-math_state_restore() needs preempt_disable()

2014-09-01 Thread Suresh Siddha
On Mon, Aug 25, 2014 at 11:08 AM, Oleg Nesterov o...@redhat.com wrote: 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

[PATCH] x86, fpu: __restore_xstate_sig()->math_state_restore() needs preempt_disable()

2014-08-25 Thread Oleg Nesterov
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 Cc: sta...@vger.kernel.org --- arch/x86/kernel/xsave.c |5 -

[PATCH] x86, fpu: __restore_xstate_sig()-math_state_restore() needs preempt_disable()

2014-08-25 Thread Oleg Nesterov
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 o...@redhat.com Cc: sta...@vger.kernel.org --- arch/x86/kernel/xsave.c