Commit 4d9f296e authored by Anna Schumaker's avatar Anna Schumaker Committed by Greg Kroah-Hartman
Browse files

NFSv4.2: Update mode bits after ALLOCATE and DEALLOCATE



[ Upstream commit d7a51186 ]

The fallocate call invalidates suid and sgid bits as part of normal
operation. We need to mark the mode bits as invalid when using fallocate
with an suid so these will be updated the next time the user looks at them.

This fixes xfstests generic/683 and generic/684.

Reported-by: default avatarYue Cui <cuiyue-fnst@fujitsu.com>
Fixes: 913eca1a ("NFS: Fallocate should use the nfs4_fattr_bitmap")
Signed-off-by: default avatarAnna Schumaker <Anna.Schumaker@Netapp.com>
Signed-off-by: default avatarTrond Myklebust <trond.myklebust@hammerspace.com>
Signed-off-by: default avatarSasha Levin <sashal@kernel.org>
parent 2f0a154b
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment