kernel_optimize_test/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 The one new feature this time, from Anna Schumaker, is READ_PLUS, which 2020-10-22 09:44:27 -07:00
cache.c sunrpc: raise kernel RPC channel buffer size 2020-10-20 13:21:30 -04:00
clnt.c SUNRPC: Handle low memory situations in call_status() 2022-04-13 21:01:07 +02:00
debugfs.c net: sunrpc: Fix 'snprintf' return value check in 'do_xprt_debugfs' 2020-12-30 11:53:30 +01:00
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 NFSD: Repair misuse of sv_lock in 5.10.16-rt30. 2021-03-25 09:04:08 +01:00
svc.c sunrpc: fix refcount leak for rpc auth modules 2021-03-25 09:04:08 +01:00
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 net/sunrpc: fix useless comparison in proc_do_xprt() 2020-11-08 16:28:25 -05:00
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