Page MenuHomeFreeBSD

ktrace: do not enqueue request if the process' ktrioparams are freed
ClosedPublic

Authored by kib on Jan 20 2026, 7:38 PM.
Tags
None
Referenced Files
Unknown Object (File)
Sat, Mar 14, 1:57 PM
Unknown Object (File)
Fri, Mar 13, 2:09 AM
Unknown Object (File)
Mon, Mar 2, 4:06 PM
Unknown Object (File)
Feb 10 2026, 1:43 AM
Unknown Object (File)
Feb 8 2026, 3:07 PM
Unknown Object (File)
Feb 2 2026, 6:18 PM
Unknown Object (File)
Feb 2 2026, 2:00 AM
Unknown Object (File)
Feb 1 2026, 3:47 AM
Subscribers

Details

Summary
The p_ktrioparms are freed on termination of tracing.  Any ktr requests
added to the queue after that would hang there and leak on the struct
proc recycling, or trigger an assert in the process destructor for debug
builds.

Reported and tested by: pho

Diff Detail

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