]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
Fix a bug in r357199.
authorkib <kib@FreeBSD.org>
Thu, 30 Jan 2020 19:34:37 +0000 (19:34 +0000)
committerkib <kib@FreeBSD.org>
Thu, 30 Jan 2020 19:34:37 +0000 (19:34 +0000)
commitb642d4098be0ac09edd15dcf6534ddc413166748
tree2b25eb342563cc11e5468ef938f45b8b7243d98b
parenta62df3ebfecc37a3b13bd12b4235a6bcefc76a4f
Fix a bug in r357199.

Around a generic call to null_nodeget(), there is nothing that would
prevent the unmount of the nullfs mp until we process to the
insmntque1() point.  Calculate the VV_ROOT flag after insmntque1() to
not access mp->mnt_data before we have an exclusively locked vnode
from this mount point on the mp vnode list.

Reported and tested by: pho
Sponsored by: The FreeBSD Foundation
MFC after: 1 week
sys/fs/nullfs/null_subr.c