Skip to content

Commit

Permalink
Fix vfork_done test on Aarch64 by checking orig_arg1() for clone pa…
Browse files Browse the repository at this point in the history
…rameters
  • Loading branch information
rocallahan committed Sep 13, 2023
1 parent 18f05b2 commit 5817b78
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/record_syscall.cc
Original file line number Diff line number Diff line change
Expand Up @@ -6404,7 +6404,7 @@ static void rec_process_syscall_arch(RecordTask* t,
case Arch::fork:
case Arch::clone:
if ((syscallno == Arch::vfork ||
(syscallno == Arch::clone && (t->regs().arg1() & CLONE_VFORK))) &&
(syscallno == Arch::clone && (t->regs().orig_arg1() & CLONE_VFORK))) &&
(t->emulated_ptrace_options & PTRACE_O_TRACEVFORKDONE)) {
t->emulate_ptrace_stop(
WaitStatus::for_ptrace_event(PTRACE_EVENT_VFORK_DONE));
Expand Down

0 comments on commit 5817b78

Please sign in to comment.