Re: [PATCH] scsi: target: iscsi: do not reject the command on a Data-Out overflow

From: Yehyeong Lee

Date: Mon Nov 16 2026 - 05:14:19 EST


Thanks - the NULL dereference is real, but it is older than this patch and
does not depend on it.

iscsit_check_dataout_hdr() already answers a Data-Out whose
DataSegmentLength exceeds conn_ops->MaxXmitDataSegmentLength with
iscsit_add_reject() (iscsi_target.c:1573-1578), before it looks the ITT up at
:1580. isert_handle_iscsi_dataout() calls that function, so one Data-Out PDU
after login reaches isert_put_reject() with a command the core allocated, and
isert_post_recv() faults on the NULL rx_desc at ib_isert.c:761. I reproduced
it on unpatched mainline, 5 boots out of 5, with no SCSI command involved and
this patch not applied.

It dates from 4366b19ca5eb ("iser-target: Change the recv buffers posting
logic", v4.3), which gave isert_post_recv() a descriptor argument and made
isert_post_response() pass isert_cmd->rx_desc.

So I have left this patch as it is and fixed isert separately:

https://lore.kernel.org/all/20261116101108.1650132-1-yhlee@xxxxxxxxxxxxxxxxxx/

Best regards,
Yehyeong Lee