]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
Fix a bug in r357199.
authorKonstantin Belousov <kib@FreeBSD.org>
Thu, 30 Jan 2020 19:34:37 +0000 (19:34 +0000)
committerKonstantin Belousov <kib@FreeBSD.org>
Thu, 30 Jan 2020 19:34:37 +0000 (19:34 +0000)
commitdc1d2cc648cd65c6bbf8b2d2b75084820208d9ae
tree2b25eb342563cc11e5468ef938f45b8b7243d98b
parent03178616604d5d0806fffd46a547c67f1eac54e5
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