tmp_suning_uos_patched/net/sunrpc
Chuck Lever 6a0b9512a6 SUNRPC: Fix READ_PLUS crasher
commit a23dd544debcda4ee4a549ec7de59e85c3c8345c upstream.

Looks like there are still cases when "space_left - frag1bytes" can
legitimately exceed PAGE_SIZE. Ensure that xdr->end always remains
within the current encode buffer.

Reported-by: Bruce Fields <bfields@fieldses.org>
Reported-by: Zorro Lang <zlang@redhat.com>
Link: https://bugzilla.kernel.org/show_bug.cgi?id=216151
Fixes: 6c254bf3b637 ("SUNRPC: Fix the calculation of xdr->end in xdr_get_next_encode_buffer()")
Signed-off-by: Chuck Lever <chuck.lever@oracle.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2022-07-07 17:52:16 +02:00
..
auth_gss SUNRPC: fix sign error causing rpcsec_gss drops 2021-10-13 10:04:24 +02:00
xprtrdma xprtrdma: treat all calls not a bcall when bc_serv is NULL 2022-06-14 18:32:39 +02:00
addr.c nfsd: don't alloc under spinlock in rpc_parse_scope_id 2021-11-18 14:04:22 +01:00
auth_null.c
auth_unix.c
auth.c
backchannel_rqst.c
cache.c
clnt.c SUNRPC: Handle low memory situations in call_status() 2022-04-13 21:01:07 +02:00
debugfs.c
Kconfig
Makefile
netns.h
rpc_pipe.c SUNRPC: Fix fall-through warnings for Clang 2022-05-18 10:23:49 +02:00
rpcb_clnt.c
sched.c SUNRPC: remove scheduling boost for "SWAPPER" tasks. 2022-04-13 21:01:02 +02:00
socklib.c
socklib.h
stats.c
sunrpc_syms.c
sunrpc.h
svc_xprt.c
svc.c
svcauth_unix.c
svcauth.c
svcsock.c SUNRPC: svc_tcp_sendmsg() should handle errors from xdr_alloc_bvec() 2022-04-13 21:01:07 +02:00
sysctl.c
timer.c
xdr.c SUNRPC: Fix READ_PLUS crasher 2022-07-07 17:52:16 +02:00
xprt.c SUNRPC: Ensure we flush any closed sockets before xs_xprt_free() 2022-05-18 10:23:48 +02:00
xprtmultipath.c
xprtsock.c SUNRPC: Fix fall-through warnings for Clang 2022-05-18 10:23:49 +02:00