]> git.baikalelectronics.ru Git - kernel.git/commit
x86, fpu, amd: Clear exceptions in AMD FXSAVE workaround
authorLinus Torvalds <torvalds@linux-foundation.org>
Sun, 12 Jan 2014 03:15:52 +0000 (19:15 -0800)
committerH. Peter Anvin <hpa@zytor.com>
Sun, 12 Jan 2014 03:15:52 +0000 (19:15 -0800)
commit527ed4658c9658f0faab53af86e570f7aa327ed0
treed7fe46fa037ee060ce9fced2ccc5014d5552f6ea
parent1521f330b16ae178dc29f3fc5b42aefc0736d80d
x86, fpu, amd: Clear exceptions in AMD FXSAVE workaround

Before we do an EMMS in the AMD FXSAVE information leak workaround we
need to clear any pending exceptions, otherwise we trap with a
floating-point exception inside this code.

Reported-by: halfdog <me@halfdog.net>
Tested-by: Borislav Petkov <bp@suse.de>
Link: http://lkml.kernel.org/r/CA%2B55aFxQnY_PCG_n4=0w-VG=YLXL-yr7oMxyy0WU2gCBAf3ydg@mail.gmail.com
Signed-off-by: H. Peter Anvin <hpa@zytor.com>
arch/x86/include/asm/fpu-internal.h