On Mon, May 04, 2020 at 06:10:29PM -0700, Darrick J. Wong wrote: > From: Darrick J. Wong <darrick.wong@xxxxxxxxxx> > > Currently, xfs_swap_extents neither checks for sufficient quota > reservation nor does it actually update quota counts when swapping the > extent forks. While the primary known user of extent swapping (xfs_fsr) > is careful to ensure that the user/group/project ids of both files > match, this is not required by the kernel. Consequently, unprivileged > userspace can cause the quota counts to be incorrect. Wouldn't be the right fix to enforce an id match? I think that is a very sensible limitation.