NetBSD-Bugs archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

PR/60568 CVS commit: src/sys/uvm



The following reply was made to PR kern/60568; it has been noted by GNATS.

From: "Taylor R Campbell" <riastradh%netbsd.org@localhost>
To: gnats-bugs%gnats.NetBSD.org@localhost
Cc: 
Subject: PR/60568 CVS commit: src/sys/uvm
Date: Fri, 14 Aug 2026 03:02:41 +0000

 Module Name:	src
 Committed By:	riastradh
 Date:		Fri Aug 14 03:02:41 UTC 2026
 
 Modified Files:
 	src/sys/uvm: uvm_map.c
 
 Log Message:
 sysctl vm.proc.*: 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.431 -r1.432 src/sys/uvm/uvm_map.c
 
 Please note that diffs are not public domain; they are subject to the
 copyright notices on the relevant files.
 



Home | Main Index | Thread Index | Old Index