Skip to content

Commit 5817b78

Browse files
committed
Fix vfork_done test on Aarch64 by checking orig_arg1() for clone parameters
1 parent 18f05b2 commit 5817b78

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/record_syscall.cc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6404,7 +6404,7 @@ static void rec_process_syscall_arch(RecordTask* t,
64046404
case Arch::fork:
64056405
case Arch::clone:
64066406
if ((syscallno == Arch::vfork ||
6407-
(syscallno == Arch::clone && (t->regs().arg1() & CLONE_VFORK))) &&
6407+
(syscallno == Arch::clone && (t->regs().orig_arg1() & CLONE_VFORK))) &&
64086408
(t->emulated_ptrace_options & PTRACE_O_TRACEVFORKDONE)) {
64096409
t->emulate_ptrace_stop(
64106410
WaitStatus::for_ptrace_event(PTRACE_EVENT_VFORK_DONE));

0 commit comments

Comments
 (0)