From 7674006eed0a3c4de34fac89fc3592520c728637 Mon Sep 17 00:00:00 2001 From: "Dmitry V. Levin" Date: Fri, 18 Sep 2009 11:30:14 +0000 Subject: [PATCH] Fix follow fork/vfork on Linux ARM OABI __NR_SYSCALL_BASE eis 0 for EABI and is 0x900000 for OABI. * process (change_syscall) [LINUX && ARM]: Mask off the high order bits when changing syscall. Signed-off-by: Steve Bennett Reviewed-by: Kirill A. Shutemov --- process.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/process.c b/process.c index 23bd4132..5d956b03 100644 --- a/process.c +++ b/process.c @@ -792,7 +792,7 @@ change_syscall(struct tcb *tcp, int new) # define PTRACE_SET_SYSCALL 23 # endif - if (ptrace (PTRACE_SET_SYSCALL, tcp->pid, 0, new) != 0) + if (ptrace (PTRACE_SET_SYSCALL, tcp->pid, 0, new & 0xffff) != 0) return -1; return 0;