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
>
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
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 -
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
4 matches
Mail list logo