x86: zero-extend 32-bit args in syscall entry instead of sign-extension
authorDenys Vlasenko <vda.linux@googlemail.com>
Fri, 15 Feb 2013 14:01:38 +0000 (15:01 +0100)
committerDenys Vlasenko <vda.linux@googlemail.com>
Fri, 15 Feb 2013 14:01:38 +0000 (15:01 +0100)
commit6cf36057b3abedf527809fee34df202c71891bce
treef0fa4f86d280e4d76515cae377257841924cfcc4
parente015d2d331c75b912e3dd96532e2c31ae0e06554
x86: zero-extend 32-bit args in syscall entry instead of sign-extension

Zero-extension is slightly more common that sign-extension:
all pointers are zero-extended, and some other params are unsigned.

Whereas signed ones (fds, pids, etc) are often treated as
_32-bit ints_ even by kernel, so just unconditionally casting
such tcp->u_arg[N] to int works.

* syscall.c (get_syscall_args): [X86] Zero-extend 32-bit args
instead of sign-extension.

Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
syscall.c