[PATCH] i386 / desc_empty macro is incorrect
commit12aaa0855b39b5464db953fedf399fa91ee365ed
authorZachary Amsden <zach@vmware.com>
Tue, 16 Aug 2005 19:05:09 +0000 (16 12:05 -0700)
committerLinus Torvalds <torvalds@g5.osdl.org>
Tue, 16 Aug 2005 19:18:01 +0000 (16 12:18 -0700)
treed202ce6d6529fe23e950e24cd04b4d562f28705e
parent5153f7e6dba37390902c8fd3edc9a8cc19358ece
[PATCH] i386 / desc_empty macro is incorrect

Chuck Ebbert noticed that the desc_empty macro is incorrect.  Fix it.

Thankfully, this is not used as a security check, but it can falsely
overwrite TLS segments with carefully chosen base / limits.  I do not
believe this is an issue in practice, but it is a kernel bug.

Signed-off-by: Zachary Amsden <zach@vmware.com>
Signed-off-by: Chris Wright <chrisw@osdl.org>
[ x86-64 had the same problem, and the same fix. Linus ]

Signed-off-by: Linus Torvalds <torvalds@osdl.org>
include/asm-i386/processor.h
include/asm-x86_64/processor.h