Skip to content
Commit f012e95b authored by Chuck Lever's avatar Chuck Lever
Browse files

SUNRPC: Trap RDMA segment overflows

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: 7a1cbfa1

 ("svcrdma: Use parsed chunk lists to construct RDMA Writes")
Signed-off-by: default avatarChuck Lever <chuck.lever@oracle.com>
parent b6c71c66
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment