NetBSD-Bugs archive

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

PR/60986 CVS commit: src/sys



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

From: "Taylor R Campbell" <riastradh%netbsd.org@localhost>
To: gnats-bugs%gnats.NetBSD.org@localhost
Cc: 
Subject: PR/60986 CVS commit: src/sys
Date: Mon, 16 Nov 2026 20:30:07 +0000

 Module Name:	src
 Committed By:	riastradh
 Date:		Mon Nov 16 20:30:07 UTC 2026
 
 Modified Files:
 	src/sys/kern: kern_drvctl.c subr_autoconf.c
 	src/sys/sys: device.h
 
 Log Message:
 autoconf(9): Take device references in iteration for detach.
 
 This avoids a race with concurrent detach that can lead to tripping
 KASSERT(!dv->dv_detach_done) in config_detach -> device_acquire, even
 if the device_t itself remains stable while the device iteration is
 ongoing (because alldev_nwrite or alldev_nread is raised).
 
 While here, add:
 
 - deviter_first_acquire
 - deviter_next_acquire
 - device_find_by_xname_acquire
 - device_find_by_driver_unit_acquire
 
 Prompted by:
 
 PR kern/60986: fssconfig panics on bad backing store type
 
 
 To generate a diff of this commit:
 cvs rdiff -u -r1.53 -r1.54 src/sys/kern/kern_drvctl.c
 cvs rdiff -u -r1.321 -r1.322 src/sys/kern/subr_autoconf.c
 cvs rdiff -u -r1.194 -r1.195 src/sys/sys/device.h
 
 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