diff options
author | Andy Lutomirski <luto@kernel.org> | 2015-08-14 15:02:55 -0700 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2015-09-21 10:05:25 -0700 |
commit | 7b638e8e6d2cca69e5756cf4eb66fc41a661a037 (patch) | |
tree | ec565c202dbd9f0370c9904cc15ec1669055cb7e /arch | |
parent | b33c0beeedf3fd7e329b0a81add3a15920184019 (diff) | |
download | lwn-7b638e8e6d2cca69e5756cf4eb66fc41a661a037.tar.gz lwn-7b638e8e6d2cca69e5756cf4eb66fc41a661a037.zip |
x86/ldt: Further fix FPU emulation
commit 12e244f4b550498bbaf654a52f93633f7dde2dc7 upstream.
The previous fix confused a selector with a segment prefix. Fix it.
Compile-tested only.
Cc: Juergen Gross <jgross@suse.com>
Reported-by: Linus Torvalds <torvalds@linux-foundation.org>
Fixes: 4809146b86c3 ("x86/ldt: Correct FPU emulation access to LDT")
Signed-off-by: Andy Lutomirski <luto@kernel.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'arch')
-rw-r--r-- | arch/x86/math-emu/get_address.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/x86/math-emu/get_address.c b/arch/x86/math-emu/get_address.c index d13cab2aec45..8300db71c2a6 100644 --- a/arch/x86/math-emu/get_address.c +++ b/arch/x86/math-emu/get_address.c @@ -157,7 +157,7 @@ static long pm_address(u_char FPU_modrm, u_char segment, addr->selector = PM_REG_(segment); } - descriptor = FPU_get_ldt_descriptor(segment); + descriptor = FPU_get_ldt_descriptor(addr->selector); base_address = SEG_BASE_ADDR(descriptor); address = base_address + offset; limit = base_address |