On Sat, Apr 25, 2015 at 11:31:19AM +0200, Borislav Petkov wrote: > On Wed, Apr 22, 2015 at 11:27:31AM -0700, Dave Hansen wrote: > > > > From: Dave Hansen <[email protected]> > > > > Changes from "v19": > > * remove 'tsk' argument to get_xsave_addr() since the code > > can only realistically work on 'current', and fix up the > > comment a bit to match. > > > > Changes from "v17": > > * fix s/xstate/xsave_field/ in the function comment > > * remove EXPORT_SYMBOL_GPL() > > > > --- > > From: Dave Hansen <[email protected]> > > > > The MPX code appears to be saving off the FPU in an unsafe > > way. It does not disable preemption or ensure that the > > FPU state has been allocated. > > > > This patch introduces a new helper which will do both of > > those things internally. > > > > Note that this requires a patch from Oleg in order to work > > properly. It is currently in tip/x86/fpu. > > > > > commit f893959b0898bd876673adbeb6798bdf25c034d7 > > > Author: Oleg Nesterov <[email protected]> > > > Date: Fri Mar 13 18:30:30 2015 +0100 > > > > > > x86/fpu: Don't abuse drop_init_fpu() in flush_thread() > > > > Signed-off-by: Dave Hansen <[email protected]> > > Cc: Oleg Nesterov <[email protected]> > > Cc: [email protected] > > Cc: Rik van Riel <[email protected]> > > Cc: Suresh Siddha <[email protected]> > > Cc: Andy Lutomirski <[email protected]> > > Cc: Thomas Gleixner <[email protected]> > > Cc: Ingo Molnar <[email protected]> > > Cc: "H. Peter Anvin" <[email protected]> > > Cc: Fenghua Yu <[email protected]> > > Cc: the arch/x86 maintainers <[email protected]> > > --- > > > > b/arch/x86/include/asm/xsave.h | 1 + > > b/arch/x86/kernel/xsave.c | 32 ++++++++++++++++++++++++++++++++ > > 2 files changed, 33 insertions(+) > > Applied, thanks.
Yeah, I said "Applied" but didn't know at the time Ingo was doing the big FPU cleanup: https://lkml.kernel.org/r/[email protected] So let's wait until the dust settles, I think rediffing this patch should be easy and simply made to call fpu__save() which is the new name but we'll have to doublecheck. Thanks. -- Regards/Gruss, Boris. ECO tip #101: Trim your mails when you reply. -- -- 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/

