From: Oleg Nesterov Date: Fri, 6 Feb 2015 20:02:00 +0000 (-0500) Subject: x86/fpu: Change math_error() to use unlazy_fpu(), kill (now) unused save_init_fpu() X-Git-Tag: omap-for-v4.2/o2_dc~179^2~12^2~5 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=08a744c6bfded3d5fa66f94263f81773226113d1;p=pandora-kernel.git x86/fpu: Change math_error() to use unlazy_fpu(), kill (now) unused save_init_fpu() math_error() calls save_init_fpu() after conditional_sti(), this means that the caller can be preempted. If !use_eager_fpu() we can hit the WARN_ON_ONCE(!__thread_has_fpu(tsk)) and/or save the wrong FPU state. Change math_error() to use unlazy_fpu() and kill save_init_fpu(). Signed-off-by: Oleg Nesterov Signed-off-by: Rik van Riel Cc: Linus Torvalds Link: http://lkml.kernel.org/r/1423252925-14451-4-git-send-email-riel@redhat.com Signed-off-by: Borislav Petkov --- Reading git-diff-tree failed