]> 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)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 2 Jan 2026 11:57:24 +0000 (12:57 +0100)
commit2a77c8dd49bccf0ca232be7c836cec1209abb8da
treec6bb61f3ae5b648de7390d37384186fe68ff0a05
parent4846a4c6acb98efdefc1274c735746c3c31090e4
svcrdma: use rc_pageoff for memcpy byte offset

commit a8ee9099f30654917aa68f55d707b5627e1dbf77 upstream.

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>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
net/sunrpc/xprtrdma/svc_rdma_rw.c