[PATCH] x86_64: Zero extend all registers after ptrace in 32bit entry path.
authorAndi Kleen <ak@suse.de>
Fri, 21 Sep 2007 14:16:18 +0000 (16:16 +0200)
committerWilly Tarreau <w@1wt.eu>
Sun, 23 Sep 2007 09:12:11 +0000 (11:12 +0200)
commit0d4a39318e6177ed424e92fe9ea75b514e782cdc
treed629fcd67b9c24656782cf8e07fc7b751ed733e6
parent7d4cf1c9bde8c6b2396a9536d8021d3f9f77f7a8
[PATCH] x86_64: Zero extend all registers after ptrace in 32bit entry path.

Strictly it's only needed for eax.

It actually does a little more than strictly needed -- the other registers
are already zero extended.

Also remove the now unnecessary and non functional compat task check
in ptrace.

This is CVE-2007-4573

Found by Wojciech Purczynski

Signed-off-by: Andi Kleen <ak@suse.de>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Signed-off-by: Chris Wright <chrisw@sous-sol.org>
arch/x86_64/ia32/ia32entry.S
arch/x86_64/kernel/ptrace.c