HomeFreeBSD

vfs: keep the mount point referenced across sys_quotactl

Description

vfs: keep the mount point referenced across sys_quotactl

Otherwise we risk running into use-after-free.

In particular this codepath ends up dropping all protection before
suspending writes:

ufs_quotactl -> quotaoff_inchange -> vfs_write_suspend_umnt

Reported by: pho

Details

Provenance
mjgAuthored on
Parents
rS357306: Fix a bug in r357199.
Branches
Unknown
Tags
Unknown