summaryrefslogtreecommitdiff
path: root/arch/x86/math-emu/wm_sqrt.S
diff options
context:
space:
mode:
authorAndy Lutomirski <luto@kernel.org>2019-11-24 19:50:03 +0300
committerIngo Molnar <mingo@kernel.org>2019-11-25 11:36:47 +0300
commit4a13b0e3e10996b9aa0b45a764ecfe49f6fcd360 (patch)
treeb7f1190c4712e52a4eeb867c98286f15da644845 /arch/x86/math-emu/wm_sqrt.S
parent05b042a1944322844eaae7ea596d5f154166d68a (diff)
downloadlinux-4a13b0e3e10996b9aa0b45a764ecfe49f6fcd360.tar.xz
x86/entry/32: Fix FIXUP_ESPFIX_STACK with user CR3
UNWIND_ESPFIX_STACK needs to read the GDT, and the GDT mapping that can be accessed via %fs is not mapped in the user pagetables. Use SGDT to find the cpu_entry_area mapping and read the espfix offset from that instead. Reported-and-tested-by: Borislav Petkov <bp@alien8.de> Signed-off-by: Andy Lutomirski <luto@kernel.org> Cc: Peter Zijlstra <peterz@infradead.org> Cc: Thomas Gleixner <tglx@linutronix.de> Cc: Linus Torvalds <torvalds@linux-foundation.org> Cc: <stable@vger.kernel.org> Signed-off-by: Ingo Molnar <mingo@kernel.org>
Diffstat (limited to 'arch/x86/math-emu/wm_sqrt.S')
0 files changed, 0 insertions, 0 deletions