Bug 133676 - [smbfs] [panic] umount -f'ing a vnode-based memory disk from off a SMB share caused a reboot
Summary: [smbfs] [panic] umount -f'ing a vnode-based memory disk from off a SMB share ...
Status: Open
Alias: None
Product: Base System
Classification: Unclassified
Component: kern (show other bugs)
Version: 7.1-RELEASE
Hardware: Any Any
: Normal Affects Only Me
Assignee: freebsd-bugs (Nobody)
URL:
Keywords: crash
Depends on:
Blocks:
 
Reported: 2009-04-13 02:10 UTC by Rob Bloom
Modified: 2022-10-17 12:17 UTC (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Rob Bloom 2009-04-13 02:10:05 UTC
I had at some point used mdconfig to mount an HD image (with the image on an SMB partition) with an msdos partition  on it to /dev/md0.

I came back a few days later, noticed the disk was still showing as mounted in df, but when I saw the directory was empty, I figured I must have detached the disk without unmounting first. (though while trying to reproduce the bug, this may not have been the case)

I did "umount /mnt/dos" first, getting "umount of /mnt/dos failed: Bad file descriptor", and followed that up with "umount -f /mnt/dos", after which my system immediately rebooted.

Here is the output from /var/log/messages:
Apr 12 20:27:35 goosebox kernel: g_vfs_done():md0s1[READ(offset=512, length=4096)]error = 9
Apr 12 20:27:37 goosebox sudo:   hadley : TTY=ttyp1 ; PWD=/mnt ; USER=root ; COMMAND=/sbin/umount dos
Apr 12 20:27:37 goosebox kernel: g_vfs_done():md0s1[READ(offset=512, length=4096)]error = 9
Apr 12 20:27:38 goosebox sudo:   hadley : TTY=ttyp1 ; PWD=/mnt ; USER=root ; COMMAND=/sbin/umount -f dos
Apr 12 20:28:47 goosebox syslogd: kernel boot file is /boot/kernel/kernel

How-To-Repeat: Not quite sure...  I know at the very least it involves creating a memory disk based off a disk image mounted over the network.  It seems that maybe leaving the image mounted for a while and probably rebooting the machine the image is on at some point inbetween caused the disk image to no longer be locatable, causing the reboot when I unmounted it.
Comment 1 Mark Linimon freebsd_committer freebsd_triage 2009-04-13 18:31:51 UTC
Responsible Changed
From-To: freebsd-amd64->freebsd-fs

Reclassify and reassign.
Comment 2 Eitan Adler freebsd_committer freebsd_triage 2017-12-31 08:01:45 UTC
For bugs matching the following criteria:

Status: In Progress Changed: (is less than) 2014-06-01

Reset to default assignee and clear in-progress tags.

Mail being skipped
Comment 3 Graham Perrin freebsd_committer freebsd_triage 2022-10-17 12:17:31 UTC
Keyword: 

    crash

– in lieu of summary line prefix: 

    [panic]

* bulk change for the keyword
* summary lines may be edited manually (not in bulk). 

Keyword descriptions and search interface: 

    <https://bugs.freebsd.org/bugzilla/describekeywords.cgi>