using ptrace to cancel a syscall on sparc
Mike Frysinger
vapier at gentoo.org
Tue Jan 19 20:56:08 UTC 2016
On 19 Jan 2016 15:10, David Miller wrote:
> From: Mike Frysinger <vapier at gentoo.org>
> Date: Mon, 18 Jan 2016 06:32:30 -0500
>
> > looks like the bug is in arch/sparc/kernel/syscalls.S:linux_syscall_trace32
> > (and linux_syscall_trace). they don't reload the args from the pt_regs
> > struct after calling syscall_trace_enter. i put in a small hack:
>
> Mike, please give this patch a test, thanks!
it fixes my reduced test case, and seems to fix my original testcase
(a program that uses ptrace to monitor fs behavior in static progs).
thanks !
Tested-by: Mike Frysinger <vapier at gentoo.org>
-mike
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 819 bytes
Desc: Digital signature
URL: <http://lists.strace.io/pipermail/strace-devel/attachments/20160119/41c487e0/attachment.bin>
More information about the Strace-devel
mailing list