Re: [PATCH v4 4/4] scsi: libiscsi_tcp: do not accept a Data-In for a finished command
From: Yehyeong Lee
Date: Tue Nov 17 2026 - 06:51:11 EST
Both cases need a target that reports a task management function as
complete (ABORT TASK, or a LUN or target reset) and then still sends a
Data-In or a SCSI Response for a command that function covered. The
receive path handles PDUs in order, so a target that follows the protocol
cannot produce either.
Neither is new with this patch. Without it the late PDU is accepted the
same way, and iscsi_eh_abort() says in its TMF_SUCCESS case that it does
not stop the receive side for exactly this reason. The patch narrows the
window rather than widening it: a Data-In whose header arrives after the
task has left ISCSI_TASK_RUNNING is now refused, while one whose copy has
already started when the task is failed behaves as before. That case
belongs in a separate patch.
Best regards,
Yehyeong Lee