]> git.itanic.dy.fi Git - linux-stable/commit
NFSv4.2: Update mode bits after ALLOCATE and DEALLOCATE
authorAnna Schumaker <Anna.Schumaker@Netapp.com>
Wed, 7 Sep 2022 20:34:21 +0000 (16:34 -0400)
committerTrond Myklebust <trond.myklebust@hammerspace.com>
Thu, 8 Sep 2022 15:11:23 +0000 (11:11 -0400)
commitd7a5118635e725d195843bda80cc5c964d93ef31
tree795f1f62a04754a6a81a69be73233906692ffe44
parent2a9d683b48c8a87e61a4215792d44c90bcbbb536
NFSv4.2: Update mode bits after ALLOCATE and DEALLOCATE

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: Yue Cui <cuiyue-fnst@fujitsu.com>
Fixes: 913eca1aea87 ("NFS: Fallocate should use the nfs4_fattr_bitmap")
Signed-off-by: Anna Schumaker <Anna.Schumaker@Netapp.com>
Signed-off-by: Trond Myklebust <trond.myklebust@hammerspace.com>
fs/nfs/internal.h
fs/nfs/nfs42proc.c
fs/nfs/write.c