[Bug 295453] loading virtio_p9fs driver, then mounting a directory then calling kldunload causes kernel panic
Date: Wed, 20 May 2026 18:35:15 UTC
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=295453
Bug ID: 295453
Summary: loading virtio_p9fs driver, then mounting a directory
then calling kldunload causes kernel panic
Product: Base System
Version: CURRENT
Hardware: Any
OS: Any
Status: New
Severity: Affects Some People
Priority: ---
Component: kern
Assignee: bugs@FreeBSD.org
Reporter: njain15@protonmail.com
Created attachment 270961
--> https://bugs.freebsd.org/bugzilla/attachment.cgi?id=270961&action=edit
Suggested fix
using:
FreeBSD 16.0-CURRENT (src c028080749c09e68c555155df0e9f681ba63c6ae)
To reproduce:
# kldload virtio_p9fs
# mount -t p9fs sharename /mnt_dir
# kldunload virtio_p9fs
On 14.4-rel and 15.0-rel this causes a panic immediately. In current, the P9
device is detached but a panic occurs on reboot.
Suggested fix is to return EBUSY to prevent unloading until umount is called
(or shutdown).
--
You are receiving this mail because:
You are the assignee for the bug.