[S390] ptrace: fix return value of do_syscall_trace_enter()
authorGerald Schaefer <gerald.schaefer@de.ibm.com>
Wed, 12 May 2010 07:32:12 +0000 (09:32 +0200)
committerMartin Schwidefsky <sky@mschwide.boeblingen.de.ibm.com>
Wed, 12 May 2010 07:32:26 +0000 (09:32 +0200)
commit545c174d1f093a462b4bb9131b23d5ea72a600e1
tree29bcee32c34714f5a6b377bbb54bf791853937af
parent1c1e093cbf6d3a7576ba0bd10363362a1c5c74ee
[S390] ptrace: fix return value of do_syscall_trace_enter()

strace may change the system call number, so regs->gprs[2] must not
be read before tracehook_report_syscall_entry(). This fixes a bug
where "strace -f" will hang after a vfork().

Cc: <stable@kernel.org>
Signed-off-by: Gerald Schaefer <gerald.schaefer@de.ibm.com>
Signed-off-by: Martin Schwidefsky <schwidefsky@de.ibm.com>
arch/s390/kernel/ptrace.c