From: Andy Lutomirski Date: Fri, 5 Dec 2014 00:48:17 +0000 (-0800) Subject: x86/tls: Disallow unusual TLS segments X-Git-Tag: omap-for-v3.19/fixes-rc1~93^2 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=0e58af4e1d2166e9e33375a0f121e4867010d4f8;p=pandora-kernel.git x86/tls: Disallow unusual TLS segments Users have no business installing custom code segments into the GDT, and segments that are not present but are otherwise valid are a historical source of interesting attacks. For completeness, block attempts to set the L bit. (Prior to this patch, the L bit would have been silently dropped.) This is an ABI break. I've checked glibc, musl, and Wine, and none of them look like they'll have any trouble. Note to stable maintainers: this is a hardening patch that fixes no known bugs. Given the possibility of ABI issues, this probably shouldn't be backported quickly. Signed-off-by: Andy Lutomirski Acked-by: H. Peter Anvin Cc: stable@vger.kernel.org # optional Cc: Konrad Rzeszutek Wilk Cc: Linus Torvalds Cc: security@kernel.org Cc: Willy Tarreau Signed-off-by: Ingo Molnar --- Reading git-diff-tree failed