diff options
| author | 2026-09-29 00:38:11 +0900 | |
|---|---|---|
| committer | 2026-10-13 08:34:25 -0700 | |
| commit | 909307cea08aff4e486cdb7491de5c76a2c31341 (patch) | |
| tree | 7a25c3ec838ae2020ac04fd628d543adc47cad4b /scripts/Makefile.thinlto | |
| parent | nvmet: fix use-after-free in passthru I/O hotpath (diff) | |
nvme-rdma: don't complete a request after a bogus remote invalidation
When a remote invalidation names an rkey that is not the one we handed out
for this request, nvme_rdma_process_nvme_rsp() logs and schedules error
recovery, then falls through to nvme_rdma_end_request(). The request is
completed with req->mr never invalidated, and nvme_rdma_unmap_data() hands
it back with ib_mr_pool_put(), which only puts it on a list. The rkey
stays valid and still maps the pages the completed read filled, so a
controller that sent the bogus invalidation can write into those pages
after pread() has returned.
Return instead, the way the local invalidation path below already does,
and leave the request for error recovery to cancel.
Fixes: 3ef0279bb0031 ("nvme-rdma: Check remotely invalidated rkey matches our expected rkey")
Cc: stable@vger.kernel.org
Reviewed-by: Christoph Hellwig <hch@lst.de>
Signed-off-by: Yehyeong Lee <yhlee@isslab.korea.ac.kr>
Signed-off-by: Keith Busch <kbusch@kernel.org>
Diffstat (limited to 'scripts/Makefile.thinlto')
0 files changed, 0 insertions, 0 deletions
