kern/60632: vfs_getvfs races with unmount

"[email protected] via gnats" <[email protected]>
Newsgroups gmane.os.netbsd.bugs
Message-ID <[email protected]>
>Number:         60632
>Category:       kern
>Synopsis:       vfs_getvfs races with unmount
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    kern-bug-people
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Sat Aug 22 18:00:01 +0000 2026
>Originator:     Taylor R Campbell
>Release:        current, 11, 10, 9, ...
>Organization:
The NetUAF Mountation, Inc.
>Environment:
>Description:

	By the time vfs_getvfs has returned a struct mount pointer, a
	concurrent unmount may have freed it.

>How-To-Repeat:

	code inspection

>Fix:

	1. Make vfs_getvfs do vfs_busy while the struct mount pointer
	   is still stable (between mountlist_iterator_next and
	   mountlist_iterator_destroy).

	2. Teach all the callers to do vfs_rele.
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.