freebsd-src/sys/dev/iscsi
John Baldwin cdbc4a074b Further refine the ExpDataSN checks for SCSI Response PDUs.
According to 11.4.8 in RFC 7143, ExpDataSN MUST be 0 if the response
code is not Command Completed, but we were requiring it to always be
the count of DataIn PDUs regardless of the response code.

In addition, at least one target (OCI Oracle iSCSI block device)
returns an ExpDataSN of 0 when returning a valid completion with an
error status (Check Condition) in response to a SCSI Inquiry.  As a
workaround for this target, only warn without resetting the connection
for a 0 ExpDataSN for responses with a non-zero error status.

PR:		259152
Reported by:	dch
Reviewed by:	dch, mav, emaste
Fixes:		4f0f5bf995 iscsi: Validate DataSN values in Data-In PDUs in the initiator.
Sponsored by:	Chelsio Communications
Differential Revision:	https://reviews.freebsd.org/D32650
2021-10-26 14:50:05 -07:00
..
icl.c Drop "All rights reserved" from all my stuff. This includes 2020-10-28 13:46:11 +00:00
icl.h iscsi: Teach the iSCSI stack about "large" received PDUs. 2021-08-18 10:56:28 -07:00
icl_conn_if.m Drop "All rights reserved" from all my stuff. This includes 2020-10-28 13:46:11 +00:00
icl_soft.c iscsi: Remove icl_soft-only fields from struct icl_conn. 2021-08-05 12:05:30 -07:00
icl_soft_proxy.c Drop "All rights reserved" from all my stuff. This includes 2020-10-28 13:46:11 +00:00
icl_wrappers.h Drop "All rights reserved" from all my stuff. This includes 2020-10-28 13:46:11 +00:00
iscsi.c Further refine the ExpDataSN checks for SCSI Response PDUs. 2021-10-26 14:50:05 -07:00
iscsi.h iscsi: Validate DataSN values in Data-In PDUs in the initiator. 2021-08-24 14:58:34 -07:00
iscsi_ioctl.h Drop "All rights reserved" from all my stuff. This includes 2020-10-28 13:46:11 +00:00
iscsi_proto.h Drop "All rights reserved" from all my stuff. This includes 2020-10-28 13:46:11 +00:00