Re: [PATCH] scsi: check that the tag map is still there in scsi_host_find_tag()

From: Yehyeong Lee

Date: Tue Aug 18 2026 - 00:52:19 EST


On 8/15/26 2:27 AM, Bart Van Assche wrote:
> Thanks for the detailed report but I think this is the wrong way to fix
> the reported crash. Please help with testing this patch:

Tested. With the replay target that reposts an SRP_RSP for a command it
has already answered, the crash appears in 5 of 5 runs on an unpatched
kernel and in 0 of 5 with your patch. The target still delivered about
2680 unsolicited responses per run either way, so what went away is the
window, not the traffic.

I have sent your patch as 2/2 of a v2 series on linux-rdma:

https://lore.kernel.org/linux-rdma/20260818035229.505098-1-yhlee@xxxxxxxxxxxxxxxxxx/

Martin, please drop this patch. The lookup it guards is not reachable
once srp_remove_target() is fixed, and the review point that the check is
lockless stands.

Tested-by: Yehyeong Lee <yhlee@xxxxxxxxxxxxxxxxxx>

Best regards,

Yehyeong Lee