]> git.baikalelectronics.ru Git - kernel.git/commit
SUNRPC: Trap RDMA segment overflows
authorChuck Lever <chuck.lever@oracle.com>
Wed, 1 Jun 2022 16:46:52 +0000 (12:46 -0400)
committerChuck Lever <chuck.lever@oracle.com>
Thu, 2 Jun 2022 17:05:58 +0000 (13:05 -0400)
commitf28d4fb7c0d432c1ee83a930e1fb2183f24d2930
tree00852c3bb9488472f8ac2aca2afb8a9d01399e98
parent7fc41325d36497c74c2b43b3a28deedcfc349f3c
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: c8c6964e1783 ("svcrdma: Use parsed chunk lists to construct RDMA Writes")
Signed-off-by: Chuck Lever <chuck.lever@oracle.com>
net/sunrpc/xprtrdma/svc_rdma_rw.c