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

"Greg A. Woods via gnats" <[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: "Greg A. Woods" <[email protected]>
To: Taylor R Campbell <[email protected]>
Cc: NetBSD GNATS <[email protected]>
Subject: Re: kern/60568: panic locking against myself (p->p_lock) in NFS from sysctl_vmproc
Date: Mon, 10 Aug 2026 14:59:19 -0700

 --pgp-sign-Multipart_Mon_Aug_10_14:59:10_2026-1
 Content-Type: text/plain; charset=US-ASCII
 
 At Mon, 10 Aug 2026 02:40:04 +0000, Taylor R Campbell <[email protected]> wrote:
 Subject: Re: kern/60568: panic locking against myself (p->p_lock) in NFS from sysctl_vmproc
 >
 > [1  <text/plain (7bit)>]
 > Can you please try the attached patch?
 
 New and different panic:
 
 [ 256.3450500] panic: kernel diagnostic assertion "error != 0 || pid != -1 || mutex_owned((*p)->p_lock)" failed: file "/Volumes/work/woods/g-NetBSD-src/sys/kern/kern_proc.c", line 2992
 [ 256.3450500] cpu1: Begin traceback...
 [ 256.3450500] vpanic() at netbsd:vpanic+0x164
 [ 256.3450500] kern_assert() at netbsd:kern_assert+0x4b
 [ 256.3450500] proc_find_locked() at netbsd:proc_find_locked+0x141
 [ 256.3450500] sysctl_kern_proc_args() at netbsd:sysctl_kern_proc_args+0x2ab
 [ 256.3450500] sysctl_dispatch() at netbsd:sysctl_dispatch+0xb3
 [ 256.3450500] sys___sysctl() at netbsd:sys___sysctl+0xca
 [ 256.3450500] syscall() at netbsd:syscall+0x98
 [ 256.3450500] --- syscall (number 202) ---
 [ 256.3450500] netbsd:syscall+0x98:
 [ 256.3450500] cpu1: End traceback...
 
 
 That's the final KASSERT() at the end of proc_find_locked()
 
 But this time it did reboot cleanly at least!
 
 --
 					Greg A. Woods <[email protected]>
 
 Kelowna, BC     +1 250 762-7675           RoboHack <[email protected]>
 Planix, Inc. <[email protected]>     Avoncote Farms <[email protected]>
 
 --pgp-sign-Multipart_Mon_Aug_10_14:59:10_2026-1
 Content-Type: application/pgp-signature
 Content-Transfer-Encoding: 7bit
 Content-Description: OpenPGP Digital Signature
 
 -----BEGIN PGP SIGNATURE-----
 
 iF0EABECAB0WIQRuK6dmwVAucmRxuh9mfXG3eL/0fwUCanpJsQAKCRBmfXG3eL/0
 f5YDAJ92HM7X9YKLPzPSHIEsmKA3DN3UowCg0r0pHMnHFmmlXF31ab2Pog91pZk=
 =yzPs
 -----END PGP SIGNATURE-----
 
 --pgp-sign-Multipart_Mon_Aug_10_14:59:10_2026-1--
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.