]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
vfs: keep the mount point referenced across sys_quotactl
authorMateusz Guzik <mjg@FreeBSD.org>
Thu, 30 Jan 2020 19:38:12 +0000 (19:38 +0000)
committerMateusz Guzik <mjg@FreeBSD.org>
Thu, 30 Jan 2020 19:38:12 +0000 (19:38 +0000)
commitd53d924f60b476dc34b419763a99bce1394780e2
treedff097f6bd642d22764f95f20c7240d402000a2c
parentdc1d2cc648cd65c6bbf8b2d2b75084820208d9ae
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