[lkml]   [2015]   [Mar]   [9]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
Messages in this thread
SubjectRe: [PATCH] x86/fpu: drop_fpu() should not assume that tsk == current
On 03/09/2015 01:10 PM, 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
> will wrongly clear the PF_USED_MATH flag of the previous task.

Ouch. Good catch.

> Signed-off-by: Oleg Nesterov <>
> Cc: <>

Reviewed-by: Rik van Riel <>

 \ /
  Last update: 2015-03-09 18:41    [W:0.364 / U:24.416 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site