Date: Thu, 03 Dec 2015 02:11:34 +0000 From: bugzilla-noreply@freebsd.org To: freebsd-bugs@FreeBSD.org Subject: [Bug 204949] panic: mtx_lock of spin mutex @ /usr/src/head/sys/kern/vfs_subr.c:512 Message-ID: <bug-204949-8-pNwUPPgVLn@https.bugs.freebsd.org/bugzilla/> In-Reply-To: <bug-204949-8@https.bugs.freebsd.org/bugzilla/> References: <bug-204949-8@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=204949 --- Comment #12 from Kirk McKusick <mckusick@FreeBSD.org> --- The proposed fix by Mateusz Guzik is correct. Prior to my changes to vfs_subr.c the v_mountedhere union element was always zero'ed. Following my changes it was not. In the lookup function, it checks to see if v_mountedhere != NULL, and if it is not NULL assumes that it points to a struct mount and passes it to vfs_busy. If it contains a pointer to some other structure from a previous use of the vnode, the call to vfs_busy chokes when it attempts to dereference a mount mutex. I have committed the fix as noted in the above comment. -- 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-204949-8-pNwUPPgVLn>