[Bug 210316] panic after trying to r/w mount msdosfs on write protected media
bugzilla-noreply at freebsd.org
bugzilla-noreply at freebsd.org
Mon Apr 30 05:18:17 UTC 2018
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=210316
Damjan Jovanovic <damjan.jov at gmail.com> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |damjan.jov at gmail.com
--- Comment #5 from Damjan Jovanovic <damjan.jov at gmail.com> ---
Still a problem on CURRENT. Very easy to reproduce:
dd if=/dev/zero of=/path/to/image bs=1M count=100
newfs_msdos /path/to/image
ggatel create -o ro /path/to/image
mount /dev/ggate0 /mnt
A few seconds later: crash.
I wonder what the best way to fix this is. Should the referenced geom
explicitly be cleared from the buffer after the failed write? Should the
msdosfs driver call fsync() before g_vfs_destroy()-ing the geom on mount
failure, so the dirty buffer is deleted before the geom device it references is
deleted? Should geom devices be reference counted by their buffers and be
forced to live until all buffers that reference them are deleted?
--
You are receiving this mail because:
You are the assignee for the bug.
More information about the freebsd-fs
mailing list