diff options
author | Juergen Gross <jgross@suse.com> | 2015-08-06 19:54:34 +0200 |
---|---|---|
committer | Ingo Molnar <mingo@kernel.org> | 2015-08-08 10:20:45 +0200 |
commit | 4809146b86c3d41ce588fdb767d021e2a80600dd (patch) | |
tree | cd7147cbf605eede40ff43384cff1653f6772af1 /arch/x86/math-emu/fpu_entry.c | |
parent | 136d9d83c07c5e30ac49fc83b27e8c4842f108fc (diff) | |
download | linux-stable-4809146b86c3d41ce588fdb767d021e2a80600dd.tar.gz linux-stable-4809146b86c3d41ce588fdb767d021e2a80600dd.tar.bz2 linux-stable-4809146b86c3d41ce588fdb767d021e2a80600dd.zip |
x86/ldt: Correct FPU emulation access to LDT
Commit 37868fe113ff ("x86/ldt: Make modify_ldt synchronous")
introduced a new struct ldt_struct anchored at mm->context.ldt.
Adapt the x86 fpu emulation code to use that new structure.
Signed-off-by: Juergen Gross <jgross@suse.com>
Reviewed-by: Andy Lutomirski <luto@kernel.org>
Cc: <stable@vger.kernel.org> # On top of: 37868fe113ff: x86/ldt: Make modify_ldt synchronous
Cc: Linus Torvalds <torvalds@linux-foundation.org>
Cc: Peter Zijlstra <peterz@infradead.org>
Cc: Thomas Gleixner <tglx@linutronix.de>
Cc: billm@melbpc.org.au
Link: http://lkml.kernel.org/r/1438883674-1240-1-git-send-email-jgross@suse.com
Signed-off-by: Ingo Molnar <mingo@kernel.org>
Diffstat (limited to 'arch/x86/math-emu/fpu_entry.c')
-rw-r--r-- | arch/x86/math-emu/fpu_entry.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/arch/x86/math-emu/fpu_entry.c b/arch/x86/math-emu/fpu_entry.c index f37e84ab49f3..3d8f2e421466 100644 --- a/arch/x86/math-emu/fpu_entry.c +++ b/arch/x86/math-emu/fpu_entry.c @@ -29,7 +29,6 @@ #include <asm/uaccess.h> #include <asm/traps.h> -#include <asm/desc.h> #include <asm/user.h> #include <asm/fpu/internal.h> @@ -181,7 +180,7 @@ void math_emulate(struct math_emu_info *info) math_abort(FPU_info, SIGILL); } - code_descriptor = LDT_DESCRIPTOR(FPU_CS); + code_descriptor = FPU_get_ldt_descriptor(FPU_CS); if (SEG_D_SIZE(code_descriptor)) { /* The above test may be wrong, the book is not clear */ /* Segmented 32 bit protected mode */ |