linux-stable/net/sunrpc/xprtrdma
Chuck Lever ea26bf5eca SUNRPC: Trap RDMA segment overflows
[ Upstream commit f012e95b37 ]

Prevent svc_rdma_build_writes() from walking off the end of a Write
chunk's segment array. Caught with KASAN.

The test that this fix replaces is invalid, and might have been left
over from an earlier prototype of the PCL work.

Fixes: 7a1cbfa180 ("svcrdma: Use parsed chunk lists to construct RDMA Writes")
Signed-off-by: Chuck Lever <chuck.lever@oracle.com>
Signed-off-by: Sasha Levin <sashal@kernel.org>
2022-06-14 18:36:16 +02:00
..
backchannel.c xprtrdma: Eliminate rpcrdma_post_sends() 2021-08-09 16:42:25 -04:00
frwr_ops.c xprtrdma: Add an xprtrdma_post_send_err tracepoint 2021-08-09 16:42:18 -04:00
Makefile svcrdma: Add a "parsed chunk list" data structure 2020-11-30 13:00:22 -05:00
module.c SUNRPC: xprt_load_transport() needs to support the netid "rdma6" 2020-12-02 14:05:52 -05:00
rpc_rdma.c xprtrdma: treat all calls not a bcall when bc_serv is NULL 2022-06-14 18:36:16 +02:00
svc_rdma.c svcrdma: Deprecate stat variables that are no longer used 2021-01-25 09:36:28 -05:00
svc_rdma_backchannel.c svcrdma: Normalize Send page handling 2021-03-22 13:22:13 -04:00
svc_rdma_pcl.c svcrdma: Add a "parsed chunk list" data structure 2020-11-30 13:00:22 -05:00
svc_rdma_recvfrom.c SUNRPC: Fix NFSD's request deferral on RDMA transports 2022-04-20 09:34:18 +02:00
svc_rdma_rw.c SUNRPC: Trap RDMA segment overflows 2022-06-14 18:36:16 +02:00
svc_rdma_sendto.c svcrdma: Relieve contention on sc_send_lock. 2021-08-17 11:47:53 -04:00
svc_rdma_transport.c svcrdma: xpt_bc_xprt is already clear in __svc_rdma_free() 2021-08-19 08:29:32 -04:00
transport.c SUNRPC/xprt: async tasks mustn't block waiting for memory 2022-04-13 20:59:12 +02:00
verbs.c xprtrdma: fix pointer derefs in error cases of rpcrdma_ep_create 2022-02-23 12:03:19 +01:00
xprt_rdma.h xprtrdma: Eliminate rpcrdma_post_sends() 2021-08-09 16:42:25 -04:00