]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
vfs: keep the mount point referenced across sys_quotactl
authormjg <mjg@FreeBSD.org>
Thu, 30 Jan 2020 19:38:12 +0000 (19:38 +0000)
committermjg <mjg@FreeBSD.org>
Thu, 30 Jan 2020 19:38:12 +0000 (19:38 +0000)
commit23e6779681973127f401f95fbd3117e4ffc08e1c
treedff097f6bd642d22764f95f20c7240d402000a2c
parentb642d4098be0ac09edd15dcf6534ddc413166748
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
sys/kern/vfs_syscalls.c