]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
svcrdma: use rc_pageoff for memcpy byte offset
authorJoshua Rogers <linux@joshua.hu>
Fri, 7 Nov 2025 15:09:47 +0000 (10:09 -0500)
committerChuck Lever <chuck.lever@oracle.com>
Mon, 8 Dec 2025 15:51:26 +0000 (10:51 -0500)
commita8ee9099f30654917aa68f55d707b5627e1dbf77
treeac91906fc69947e8875fa1d91a0b9cecb907e69c
parentd4b69a6186b215d2dc1ebcab965ed88e8d41768d
svcrdma: use rc_pageoff for memcpy byte offset

svc_rdma_copy_inline_range added rc_curpage (page index) to the page
base instead of the byte offset rc_pageoff. Use rc_pageoff so copies
land within the current page.

Found by ZeroPath (https://zeropath.com)

Fixes: 8e122582680c ("svcrdma: Move svc_rdma_read_info::ri_pageno to struct svc_rdma_recv_ctxt")
Cc: stable@vger.kernel.org
Signed-off-by: Joshua Rogers <linux@joshua.hu>
Signed-off-by: Chuck Lever <chuck.lever@oracle.com>
net/sunrpc/xprtrdma/svc_rdma_rw.c