]> git.hungrycats.org Git - linux/commit
[PATCH] x86-64, x86: don't pass CR2 on alignment faults
authorAndi Kleen <ak@muc.de>
Fri, 17 Sep 2004 05:02:38 +0000 (22:02 -0700)
committerLinus Torvalds <torvalds@ppc970.osdl.org>
Fri, 17 Sep 2004 05:02:38 +0000 (22:02 -0700)
commit1b7014f6e8863edf750ab762ea96552513cd342c
tree1d6a98095837dee48cfd9882443c3f3607d5bda3
parent3460bd0d4aa41ed38f46ee9ed48d9fe5fedc62de
[PATCH] x86-64, x86: don't pass CR2 on alignment faults

Don't pass CR2 address on alignment faults.  They report the address of the
last page fault, which is a information leak.

Fix this for i386 and x86-64 by passing 0 instead.

Pointed out by Zachary Amsden <zach@vmware.com>

Signed-off-by: Andi Kleen <ak@suse.de>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
arch/i386/kernel/traps.c
arch/x86_64/kernel/traps.c