HomeFreeBSD

vfs_domount_update(): postpone setting MNT_UNION until VFS_MOUNT() is done

Description

vfs_domount_update(): postpone setting MNT_UNION until VFS_MOUNT() is done

The file system that handles updating the mount point might do lookups
during the update, in which case it could find the flag MNT_UNION set on
the mp while mount point is still not updated. In particular, the
rootvp->v_mount->mnt_vnodecovered is not yet set.

Delay setting MNT_UNION until the mount is performed.

PR: 265311
Reported by: Robert Morris <[email protected]>
Reviewed by: mckusick, olce
Sponsored by: The FreeBSD Foundation
MFC after: 1 week
Differential revision: https://reviews.freebsd.org/D45208

Details

Provenance
kibAuthored on May 15 2024, 9:54 AM
Reviewer
mckusick
Differential Revision
D45208: vfs_domount_update(): postpone setting MNT_UNION until VFS_MOUNT() is done
Parents
rG5a061a38cdfa: vfs_domount_update(): style, use space instead of tab
Branches
Unknown
Tags
Unknown
OSZAR »