aboutsummaryrefslogtreecommitdiffstats
path: root/net/unix/af_unix.c
diff options
context:
space:
mode:
authorNeilBrown <[email protected]>2024-05-28 23:11:36 +0000
committerTrond Myklebust <[email protected]>2024-05-30 20:12:11 +0000
commit296f4ce81d08e73c22408c49f4938a85bd075e5c (patch)
treee2d91022a7ea26069219b0dc4a547e0e7b5877e3 /net/unix/af_unix.c
parentnfs: don't invalidate dentries on transient errors (diff)
downloadkernel-296f4ce81d08e73c22408c49f4938a85bd075e5c.tar.gz
kernel-296f4ce81d08e73c22408c49f4938a85bd075e5c.zip
NFS: abort nfs_atomic_open_v23 if name is too long.
An attempt to open a file with a name longer than NFS3_MAXNAMLEN will trigger a WARN_ON_ONCE in encode_filename3() because nfs_atomic_open_v23() doesn't have the test on ->d_name.len that nfs_atomic_open() has. So add that test. Reported-by: James Clark <[email protected]> Closes: https://lore.kernel.org/all/[email protected]/ Fixes: 7c6c5249f061 ("NFS: add atomic_open for NFSv3 to handle O_TRUNC correctly.") Signed-off-by: NeilBrown <[email protected]> Reviewed-by: Christoph Hellwig <[email protected]> Signed-off-by: Trond Myklebust <[email protected]>
Diffstat (limited to 'net/unix/af_unix.c')
0 files changed, 0 insertions, 0 deletions