HomeFreeBSD

iscsi: Validate DataSN values in Data-In PDUs in the initiator.

Description

iscsi: Validate DataSN values in Data-In PDUs in the initiator.

As is done in the target, require that DataSN values are consecutive
and in-order. If an out of order Data-In PDU is received, force a
session reconnect. In addition, when a SCSI Response PDU is received,
verify that the ExpDataSN field matches the count of Data-In PDUs
received for this command. If not, force a session reconnect.

Reviewed by: mav
Sponsored by: Chelsio Communications
Differential Revision: https://reviews.freebsd.org/D31594

(cherry picked from commit 4f0f5bf99591ad9907822082270523ac919e3b8c)

Details

Provenance
jhbAuthored on Aug 24 2021, 9:58 PM
Reviewer
mav
Differential Revision
D31594: iscsi: Validate DataSN values in Data-In PDUs in the initiator.
Parents
rGb3d02f0be3ec: ctld: Always declare MaxRecvDataSegmentLength.
Branches
Unknown
Tags
Unknown