CVS commit: src/sys/kern

"Taylor R Campbell" <[email protected]>
Newsgroups gmane.os.netbsd.devel.cvs
Message-ID <[email protected]>
Module Name:	src
Committed By:	riastradh
Date:		Fri Aug 14 03:03:41 UTC 2026

Modified Files:
	src/sys/kern: kern_proc.c

Log Message:
sysctl kern.proc_args.*.cwd/pathname: Use p_reflock, not p_lock.

- Avoid holding p_lock across copyout; this risks deadlock or panic
  if memory is exhausted and the uvm fault handler during copyout
  tries to deliver SIGKILL, which requires p_lock.

- Avoid holding p_lock across vnode_to_path: this risks deadlock or
  panic if the file system, such as nfs, tries to check for pending
  signals, which requires p_lock.

PR kern/60568: panic locking against myself (p->p_lock) in NFS from
sysctl_vmproc


To generate a diff of this commit:
cvs rdiff -u -r1.284 -r1.285 src/sys/kern/kern_proc.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.