kernel_samsung_a53x/include/linux/sunrpc
Chuck Lever 320a55f22e SUNRPC: Fix svcxdr_init_encode's buflen calculation
[ Upstream commit 1242a87da0d8cd2a428e96ca68e7ea899b0f4624 ]

Commit 2825a7f90753 ("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: bddfdbcddbe2 ("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>
2024-11-19 14:19:31 +01:00
..
addr.h
auth.h
auth_gss.h
bc_xprt.h
cache.h
clnt.h
debug.h
gss_api.h
gss_asn1.h
gss_err.h
gss_krb5.h
gss_krb5_enctypes.h
metrics.h
msg_prot.h SUNRPC: Move definition of XDR_UNIT 2024-11-19 12:27:28 +01:00
rpc_pipe_fs.h
rpc_rdma.h
rpc_rdma_cid.h
sched.h
stats.h
svc.h SUNRPC: Fix svcxdr_init_encode's buflen calculation 2024-11-19 14:19:31 +01:00
svc_rdma.h
svc_xprt.h SUNRPC: Remove svc_shutdown_net() 2024-11-19 12:27:54 +01:00
svcauth.h SUNRPC: Add svc_rqst::rq_auth_stat 2024-11-19 12:27:45 +01:00
svcauth_gss.h
svcsock.h nfsd: fix double fget() bug in __write_ports_addfd() 2024-11-19 12:28:32 +01:00
timer.h
types.h
xdr.h NFSD: Refactor common code out of dirlist helpers 2024-11-19 12:28:23 +01:00
xprt.h
xprtmultipath.h
xprtrdma.h
xprtsock.h