]> git.baikalelectronics.ru Git - kernel.git/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)
commit177a3d505c50ce74b7d5348b00cb8fdea7604906
tree795f1f62a04754a6a81a69be73233906692ffe44
parent21a55edbe52ac05d3944400c1245d40049596374
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: a3226b361810 ("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