Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
fork

Configure Feed

Select the types of activity you want to include in your feed.

x86/ldt: Further fix FPU emulation

The previous fix confused a selector with a segment prefix. Fix it.

Compile-tested only.

Cc: stable@vger.kernel.org
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>

authored by

Andy Lutomirski and committed by
Linus Torvalds
12e244f4 4809146b

+1 -1
+1 -1
arch/x86/math-emu/get_address.c
··· 157 157 addr->selector = PM_REG_(segment); 158 158 } 159 159 160 - descriptor = FPU_get_ldt_descriptor(segment); 160 + descriptor = FPU_get_ldt_descriptor(addr->selector); 161 161 base_address = SEG_BASE_ADDR(descriptor); 162 162 address = base_address + offset; 163 163 limit = base_address