Page MenuHomeFreeBSD

kern/sys_ptrace: do not skip P2_PTRACEREQ wait for PT_CLEARSTEP/PT_GET_CHILDREN
ClosedPublic

Authored by kib on Jul 20 2026, 10:13 PM.
Tags
None
Referenced Files
Unknown Object (File)
Tue, Oct 6, 4:04 PM
Unknown Object (File)
Mon, Oct 5, 9:07 PM
Unknown Object (File)
Sun, Oct 4, 8:31 PM
Unknown Object (File)
Sun, Oct 4, 6:55 PM
Unknown Object (File)
Sun, Oct 4, 5:53 PM
Unknown Object (File)
Sun, Oct 4, 3:41 PM
Unknown Object (File)
Sun, Oct 4, 3:56 AM
Unknown Object (File)
Fri, Oct 2, 6:18 AM
Subscribers

Details

Summary
Reported by:    markj
Fixes:  d3b7bbee9275 ("ptrace(2): add PT_GET_CHILDREN")

Diff Detail

Repository
rG FreeBSD src repository
Lint
Lint Not Applicable
Unit
Tests Not Applicable

Event Timeline

kib requested review of this revision.Jul 20 2026, 10:13 PM
This revision is now accepted and ready to land.Jul 20 2026, 10:15 PM
sys/kern/sys_process.c
1244

Actually, this will re-check proc_can_ptrace() even though you tried to skip it above.

kib marked an inline comment as done.

Add a control variable for proc_can_ptrace() calls.

This revision now requires review to proceed.Jul 20 2026, 10:37 PM
This revision is now accepted and ready to land.Jul 21 2026, 2:52 AM