]> git.kernelconcepts.de Git - karo-tx-linux.git/commit
[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)
committerChris Wright <chrisw@sous-sol.org>
Fri, 21 Sep 2007 22:38:11 +0000 (15:38 -0700)
commitfc370f287729799250e04cb1d880140d14612bf0
tree2a55fb05375f65a1f4bd6cd31a43c986dca07c9a
parent14d33e7fa86a09138b745030097a48c396cf4e57
[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