aboutsummaryrefslogtreecommitdiff
path: root/tools/testing/selftests/net/lib/py/utils.py
diff options
context:
space:
mode:
authorJeff Layton <[email protected]>2023-05-17 12:26:44 -0400
committerChuck Lever <[email protected]>2023-05-23 09:46:26 -0400
commitd53d70084d27f56bcdf5074328f2c9ec861be596 (patch)
treefb02ea1cb60c5bb716fcdd0fea3bac06b9c3cceb /tools/testing/selftests/net/lib/py/utils.py
parent21a3f3328972bdb774c62b301a715b5cebf03fa2 (diff)
nfsd: make a copy of struct iattr before calling notify_change
notify_change can modify the iattr structure. In particular it can end up setting ATTR_MODE when ATTR_KILL_SUID is already set, causing a BUG() if the same iattr is passed to notify_change more than once. Make a copy of the struct iattr before calling notify_change. Reported-by: Zhi Li <[email protected]> Link: https://bugzilla.redhat.com/show_bug.cgi?id=2207969 Tested-by: Zhi Li <[email protected]> Fixes: 34b91dda7124 ("NFSD: Make nfsd4_setattr() wait before returning NFS4ERR_DELAY") Signed-off-by: Jeff Layton <[email protected]> Signed-off-by: Chuck Lever <[email protected]>
Diffstat (limited to 'tools/testing/selftests/net/lib/py/utils.py')
0 files changed, 0 insertions, 0 deletions