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 <[email protected]> Cc: <[email protected]>
Reviewed-by: Rik van Riel <[email protected]> -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to [email protected] More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/

