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

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
rG71fbc6faed62: bhyve: Fix vq_getchain() error handling bugs in various device models
Branches
Unknown
Tags
Unknown