]> git.kernelconcepts.de Git - karo-tx-linux.git/commit
Fix compat sys_ipc() on sparc64
authorDavid Miller <davem@davemloft.net>
Tue, 17 Apr 2007 21:40:46 +0000 (14:40 -0700)
committerGreg Kroah-Hartman <gregkh@suse.de>
Wed, 2 May 2007 00:05:57 +0000 (17:05 -0700)
commita95330df8145de41acdf84a7aa267b4ba0d0d410
treee2e084152b95deb6aaf28955d6378ad63aabd4e3
parentd3bf6f8a58459b7aefc10591807846b0b5697244
Fix compat sys_ipc() on sparc64

The 32-bit syscall trampoline for sys_ipc() on sparc64
was sign extending various arguments, which is bogus when
using compat_sys_ipc() since that function expects zero
extended copies of all the arguments.

This bug breaks the sparc64 kernel when built with gcc-4.2.x
among other things.

[SPARC64]: Fix arg passing to compat_sys_ipc().

Do not sign extend args using the sys32_ipc stub, that is
buggy and unnecessary.

Based upon an excellent report by Mikael Pettersson.

Signed-off-by: David S. Miller <davem@davemloft.net>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
arch/sparc64/kernel/sys32.S
arch/sparc64/kernel/systbls.S