Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 16 Jun 2016 08:47:29 +0000
From:      bugzilla-noreply@freebsd.org
To:        freebsd-fs@FreeBSD.org
Subject:   [Bug 210316] panic after trying to r/w mount msdosfs on write protected media
Message-ID:  <bug-210316-3630-RxmnyCvFHm@https.bugs.freebsd.org/bugzilla/>
In-Reply-To: <bug-210316-3630@https.bugs.freebsd.org/bugzilla/>
References:  <bug-210316-3630@https.bugs.freebsd.org/bugzilla/>

next in thread | previous in thread | raw e-mail | index | archive | help
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D210316

--- Comment #1 from Andriy Gapon <avg@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 di=
rty
buffer later on g_vfs_strategy9) accessed the destroyed consumer / geom and
that resulted in a crash.

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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?bug-210316-3630-RxmnyCvFHm>