PR/60568 CVS commit: src/sys/kern

"Taylor R Campbell" <[email protected]>
Newsgroups gmane.os.netbsd.bugs
Message-ID <[email protected]>
The following reply was made to PR kern/60568; it has been noted by GNATS.

From: "Taylor R Campbell" <[email protected]>
To: [email protected]
Cc: 
Subject: PR/60568 CVS commit: src/sys/kern
Date: Fri, 14 Aug 2026 03:03:41 +0000

 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.