Re: [PATCH] RDMA/srp: fix use-after-free of a request in srp_destroy_qp()
From: Yehyeong Lee
Date: Fri Nov 20 2026 - 09:59:57 EST
On Thu, Aug 13, 2026 at 04:04:18AM +0900, Yehyeong Lee wrote:
> srp_destroy_qp() drains the send queue before destroying the queue pair.
> For the fast registration and invalidation work requests, the wr_cqe it
> finds there is &req->reg_cqe, which lives in the blk-mq request pool.
> srp_remove_target() frees that pool first, through scsi_remove_host():
> page_owner records the page freed by blk_mq_free_tags_callback() while
> that call is running. __ib_process_cq() then calls wc->wr_cqe->done on
This is superseded by v2:
https://lore.kernel.org/all/20260818035229.505098-1-yhlee@xxxxxxxxxxxxxxxxxx/
Best regards,
Yehyeong Lee