Files
linux/arch/x86/kernel
H. Peter Anvin 4bb7ebb5ec x86-64, modify_ldt: Ban 16-bit segments on 64-bit kernels
commit b3b42ac2cb upstream.

The IRET instruction, when returning to a 16-bit segment, only
restores the bottom 16 bits of the user space stack pointer.  We have
a software workaround for that ("espfix") for the 32-bit kernel, but
it relies on a nonzero stack segment base which is not available in
32-bit mode.

Since 16-bit support is somewhat crippled anyway on a 64-bit kernel
(no V86 mode), and most (if not quite all) 64-bit processors support
virtualization for the users who really need it, simply reject
attempts at creating a 16-bit segment when running on top of a 64-bit
kernel.

Cc: Linus Torvalds <torvalds@linux-foundation.org>
Signed-off-by: H. Peter Anvin <hpa@linux.intel.com>
Link: http://lkml.kernel.org/n/tip-kicdm89kzw9lldryb1br9od0@git.kernel.org
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2014-05-06 07:55:29 -07:00
..
2013-11-13 12:05:30 +09:00
2014-03-06 21:30:08 -08:00
2013-04-23 13:45:22 +02:00
2013-02-22 23:31:31 -05:00
2012-08-22 09:34:24 +02:00
2013-02-27 16:59:05 -05:00
2013-02-28 08:50:11 +02:00
2012-11-14 15:28:11 -08:00