Re: [PATCH] x86/fpu: drop_fpu() should not assume that tsk == current

From: Oleg Nesterov
Date: Mon Mar 09 2015 - 14:08:58 EST


On 03/09, Borislav Petkov wrote:
>
> On Mon, Mar 09, 2015 at 06:10:41PM +0100, Oleg Nesterov wrote:
> > drop_fpu() does clear_used_math() and usually this is correct because
> > tsk == current. However switch_fpu_finish()->restore_fpu_checking() is
> > called before it updates the "current_task" variable. If it fails, we
>
> You mean here "... before __switch_to() updates the current_task ... ",
> I assume?

Yes... should I resend?

Oleg.

--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/