aboutsummaryrefslogtreecommitdiffstats
path: root/tools/perf/scripts/python/failed-syscalls-by-pid.py
diff options
context:
space:
mode:
authorBenjamin Coddington <[email protected]>2023-08-22 18:22:38 +0000
committerAnna Schumaker <[email protected]>2023-08-30 15:08:27 +0000
commitf67b55b6588bcf9316a1e6e8d529100a5aa3ebe6 (patch)
treec790d554977c94f9a4eda281a195dd9174872c1f /tools/perf/scripts/python/failed-syscalls-by-pid.py
parentNFSv4.1: use EXCHGID4_FLAG_USE_PNFS_DS for DS server (diff)
downloadkernel-f67b55b6588bcf9316a1e6e8d529100a5aa3ebe6.tar.gz
kernel-f67b55b6588bcf9316a1e6e8d529100a5aa3ebe6.zip
NFS: Guard against READDIR loop when entry names exceed MAXNAMELEN
Commit 64cfca85bacd asserts the only valid return values for nfs2/3_decode_dirent should not include -ENAMETOOLONG, but for a server that sends a filename3 which exceeds MAXNAMELEN in a READDIR response the client's behavior will be to endlessly retry the operation. We could map -ENAMETOOLONG into -EBADCOOKIE, but that would produce truncated listings without any error. The client should return an error for this case to clearly assert that the server implementation must be corrected. Fixes: 64cfca85bacd ("NFS: Return valid errors from nfs2/3_decode_dirent()") Signed-off-by: Benjamin Coddington <[email protected]> Signed-off-by: Anna Schumaker <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/failed-syscalls-by-pid.py')
0 files changed, 0 insertions, 0 deletions