]> git.kernelconcepts.de Git - karo-tx-linux.git/commit
x86_64: Zero extend all registers after ptrace in 32bit entry path (CVE-2007-4573)
authorAndi Kleen <ak@suse.de>
Sat, 6 Oct 2007 21:32:18 +0000 (23:32 +0200)
committerAdrian Bunk <bunk@kernel.org>
Sat, 6 Oct 2007 21:32:18 +0000 (23:32 +0200)
commitbffb5afd17f7f791f627ef65425f3c4cb9e43095
tree5f527092e2300d0887087d22c8c0cf2532ad46e7
parent3c76887f91c711636844c413266b8678f557ff90
x86_64: Zero extend all registers after ptrace in 32bit entry path (CVE-2007-4573)

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.

Found by Wojciech Purczynski

Signed-off-by: Andi Kleen <ak@suse.de>
Signed-off-by: Adrian Bunk <bunk@kernel.org>
arch/x86_64/ia32/ia32entry.S
arch/x86_64/kernel/ptrace.c