HomeFreeBSD

proc0_post: Fix some locking issues

Description

proc0_post: Fix some locking issues

  • Filter out PRS_NEW procs as rufetch() tries taking the thread lock which may not yet be initialized.
  • Hold PROC_LOCK to ensure stability of iterating the threads.
  • p_rux fields are protected by the process statlock as well.

MFC after: 2 weeks
Reviewed by: kib
Sponsored by: Dell EMC
Differential Revision: https://reviews.freebsd.org/D15809

Details

Provenance
bdreweryAuthored on
Reviewer
kib
Differential Revision
D15809: proc0_post: Fix some locking issues
Parents
rS335182: Use M_EXEC when calling malloc() to allocate the memory to store the module,
Branches
Unknown
Tags
Unknown