[Bug 204949] panic: mtx_lock of spin mutex @ /usr/src/head/sys/kern/vfs_subr.c:512

bugzilla-noreply at freebsd.org bugzilla-noreply at freebsd.org
Thu Dec 3 02:11:34 UTC 2015


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

--- Comment #12 from Kirk McKusick <mckusick at 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.


More information about the freebsd-bugs mailing list