[Bug 210316] panic after trying to r/w mount msdosfs on write protected media

bugzilla-noreply at freebsd.org bugzilla-noreply at freebsd.org
Thu Jun 16 08:47:29 UTC 2016


https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=210316

--- Comment #1 from Andriy Gapon <avg at FreeBSD.org> ---
My preliminary analysis of the problem.
mountmsdosfs() calls markvoldirty() near the end.  markvoldirty() failed
because of the read-only media.  bwrite() called brelse() which marked the
buffer as dirty because of the write error.  Because of the markvoldirty()
failure mountmsdosfs() failed over all and, thus, it called g_vfs_destroy()
which destroyed the filesystem's geom. When the syncer tried to sync the dirty
buffer later on g_vfs_strategy9) accessed the destroyed consumer / geom and
that resulted in a crash.

-- 
You are receiving this mail because:
You are the assignee for the bug.


More information about the freebsd-fs mailing list