android_kernel_motorola_sm6375/fs/nfs
Repository files (latest commit first)
Filename Latest commit message Latest commit date
Anthony Iliopoulos 5e4b916024 NFSv4.1: fix backchannel max_resp_sz verification check
[ Upstream commit 191512355e520dfc45c8bc3b56d4de59c3ade33e ]

When the client max_resp_sz is larger than what the server encodes in
its reply, the nfs4_verify_back_channel_attrs() check fails and this
causes nfs4_proc_create_session() to fail, in cases where the client
page size is larger than that of the server and the server does not want
to negotiate upwards.

While this is not a problem with the linux nfs server that will reflect
the proposed value in its reply irrespective of the local page size,
other nfs server implementations may insist on their own max_resp_sz
value, which could be smaller.

Fix this by accepting smaller max_resp_sz values from the server, as
this does not violate the protocol. The server is allowed to decrease
but not increase proposed the size, and as such values smaller than the
client-proposed ones are valid.

Fixes: 43c2e885be ("nfs4: fix channel attribute sanity-checks")
Signed-off-by: Anthony Iliopoulos <[email protected]>
Reviewed-by: Benjamin Coddington <[email protected]>
Signed-off-by: Anna Schumaker <[email protected]>
Signed-off-by: Sasha Levin <[email protected]>
2025-10-29 13:59:49 +01:00
..
blocklayout pNFS: Fix uninited ptr deref in block/scsi layout 2025-08-28 16:21:29 +02:00
filelayout nfs: don't share pNFS DS connections between net namespaces 2025-06-04 14:32:37 +02:00
flexfilelayout NFSv4/flexfiles: Fix handling of NFS level errors in I/O 2025-07-17 18:25:04 +02:00
cache_lib.c
cache_lib.h
callback.c
callback.h
callback_proc.c NFSv4/pnfs: pnfs_set_layout_stateid() should update the layout cred 2025-06-04 14:32:29 +02:00
callback_xdr.c SUNRPC: Fix integer overflow in decode_rc_list() 2024-11-08 16:20:45 +01:00
client.c NFS: Fix the setting of capabilities when automounting a new filesystem 2025-08-28 16:21:34 +02:00
delegation.c
delegation.h
dir.c
direct.c nfs: fix UAF in direct writes 2025-08-28 16:21:37 +02:00
dns_resolve.c
dns_resolve.h
export.c NFS: Fix filehandle bounds checking in nfs_fh_to_dentry() 2025-08-28 16:21:22 +02:00
file.c NFS: Do not report flush errors in nfs_write_end() 2022-06-14 18:11:43 +02:00
fscache-index.c
fscache.c
fscache.h
getroot.c
inode.c NFS: Fix up handling of outstanding layoutcommit in nfs_update_inode() 2025-08-28 16:21:34 +02:00
internal.h NFS: Fix the setting of capabilities when automounting a new filesystem 2025-08-28 16:21:34 +02:00
io.c
iostat.h
Kconfig nfs: add missing selections of CONFIG_CRC32 2025-05-02 07:39:20 +02:00
Makefile
mount_clnt.c
namespace.c
netns.h nfs: make the rpc_stat per net namespace 2024-05-17 11:43:48 +02:00
nfs.h
nfs2super.c
nfs2xdr.c NFS: Guard against READDIR loop when entry names exceed MAXNAMELEN 2023-09-23 10:59:48 +02:00
nfs3_fs.h
nfs3acl.c
nfs3client.c
nfs3proc.c
nfs3super.c
nfs3xdr.c NFS: Guard against READDIR loop when entry names exceed MAXNAMELEN 2023-09-23 10:59:48 +02:00
nfs4_fs.h
nfs4client.c NFS: Fix the setting of capabilities when automounting a new filesystem 2025-08-28 16:21:34 +02:00
nfs4file.c
nfs4getroot.c
nfs4idmap.c NFSv4: Fix races in the legacy idmapper upcall 2022-08-25 11:18:22 +02:00
nfs4idmap.h
nfs4namespace.c
nfs4proc.c NFSv4.1: fix backchannel max_resp_sz verification check 2025-10-29 13:59:49 +01:00
nfs4renewd.c
nfs4session.c
nfs4session.h nfs: add missing selections of CONFIG_CRC32 2025-05-02 07:39:20 +02:00
nfs4state.c NFSv4: Treat ENETUNREACH errors as fatal for state recovery 2025-06-04 14:32:30 +02:00
nfs4super.c
nfs4sysctl.c
nfs4trace.c
nfs4trace.h NFS4: Trace state recovery operation 2023-10-10 21:46:44 +02:00
nfs4xdr.c NFSv4.2: Fix a memory stomp in decode_attr_security_label 2023-01-18 11:41:07 +01:00
nfs42.h
nfs42proc.c
nfs42xdr.c
nfsroot.c NFS: Fix an off by one in root_nfs_cat() 2024-03-26 18:22:24 -04:00
nfstrace.c
nfstrace.h
pagelist.c
pnfs.c pNFS: Handle RPC size limit for layoutcommits 2025-08-28 16:21:29 +02:00
pnfs.h nfs: don't share pNFS DS connections between net namespaces 2025-06-04 14:32:37 +02:00
pnfs_dev.c NFSv4/pnfs: minor fix for cleanup path in nfs4_get_device_info 2023-09-23 10:59:57 +02:00
pnfs_nfs.c nfs: don't share pNFS DS connections between net namespaces 2025-06-04 14:32:37 +02:00
proc.c
read.c nfs: Leave pages in the pagecache if readpage failed 2024-07-05 09:08:32 +02:00
super.c NFSv4: Add missing rescheduling points in nfs_client_return_marked_delegations 2024-09-12 11:03:55 +02:00
symlink.c
sysctl.c
sysfs.c
sysfs.h
unlink.c
write.c nfs: fix UAF in direct writes 2025-08-28 16:21:37 +02:00