x86/tls: Validate TLS entries to protect espfix
authorAndy Lutomirski <[email protected]>
Fri, 5 Dec 2014 00:48:16 +0000 (16:48 -0800)
committerIngo Molnar <[email protected]>
Sun, 14 Dec 2014 07:50:31 +0000 (08:50 +0100)
commit41bdc78544b8a93a9c6814b8bbbfef966272abbe
tree9c947f48aa4a6e357fc96a4a695271192252f480
parentf0905c5a32ce6e9b743b4d9c70e53d1ce447852d
x86/tls: Validate TLS entries to protect espfix

Installing a 16-bit RW data segment into the GDT defeats espfix.
AFAICT this will not affect glibc, Wine, or dosemu at all.

Signed-off-by: Andy Lutomirski <[email protected]>
Acked-by: H. Peter Anvin <[email protected]>
Cc: [email protected]
Cc: Konrad Rzeszutek Wilk <[email protected]>
Cc: Linus Torvalds <[email protected]>
Cc: [email protected] <[email protected]>
Cc: Willy Tarreau <[email protected]>
Signed-off-by: Ingo Molnar <[email protected]>
arch/x86/kernel/tls.c