linux-stable/include/linux/sunrpc
Chuck Lever 47e035f42e SUNRPC: Fix svcxdr_init_encode's buflen calculation
[ Upstream commit 1242a87da0 ]

Commit 2825a7f907 ("nfsd4: allow encoding across page boundaries")
added an explicit computation of the remaining length in the rq_res
XDR buffer.

The computation appears to suffer from an "off-by-one" bug. Because
buflen is too large by one page, XDR encoding can run off the end of
the send buffer by eventually trying to use the struct page address
in rq_page_end, which always contains NULL.

Fixes: bddfdbcddb ("NFSD: Extract the svcxdr_init_encode() helper")
Reviewed-by: Jeff Layton <jlayton@kernel.org>
Signed-off-by: Chuck Lever <chuck.lever@oracle.com>
Signed-off-by: Sasha Levin <sashal@kernel.org>
2022-10-21 12:38:01 +02:00
..
addr.h
auth.h
auth_gss.h
bc_xprt.h treewide: Replace GPLv2 boilerplate/reference with SPDX - gpl-2.0_149.RULE 2022-06-10 14:51:35 +02:00
cache.h SUNRPC: Make cache_req::thread_wait an unsigned long 2022-05-19 12:25:39 -04:00
clnt.h SUNRPC create a function that probes only offline transports 2022-07-25 10:06:04 -04:00
debug.h
gss_api.h
gss_asn1.h
gss_err.h
gss_krb5.h
gss_krb5_enctypes.h
metrics.h
msg_prot.h
rpc_pipe_fs.h
rpc_rdma.h
rpc_rdma_cid.h
sched.h SUNRPC: Shrink size of struct rpc_task 2022-07-23 14:47:28 -04:00
stats.h
svc.h SUNRPC: Fix svcxdr_init_encode's buflen calculation 2022-10-21 12:38:01 +02:00
svc_rdma.h
svc_rdma_pcl.h
svc_xprt.h
svcauth.h
svcauth_gss.h
svcsock.h
timer.h
types.h
xdr.h NFS client updates for Linux 5.20 2022-08-10 14:04:32 -07:00
xprt.h SUNRPC: Don't reuse bvec on retransmission of the request 2022-07-27 16:26:17 -04:00
xprtmultipath.h SUNRPC export xprt_iter_rewind function 2022-07-25 10:06:04 -04:00
xprtrdma.h
xprtsock.h