Linux SCSI subsystem development
 help / color / mirror / Atom feed
* [PATCH scsi-fixes 0/3] scsi: target: iscsi: SNACK Reject and range fixes
@ 2026-11-30  6:28 Andrew Stellman
  2026-11-30  6:28 ` [PATCH scsi-fixes 1/3] scsi: target: iscsi: Don't drop live command refs on SNACK Reject Andrew Stellman
                   ` (2 more replies)
  0 siblings, 3 replies; 5+ messages in thread
From: Andrew Stellman @ 2026-11-30  6:28 UTC (permalink / raw)
  To: Martin K. Petersen; +Cc: Mike Christie, target-devel, linux-scsi

From: Andrew Stellman <astellman@stellman-greene.com>

Patch 1 stops the Data and R2T SNACK handlers from rejecting the live
SCSI command and queues the Reject on a separate command without
closing the connection. Patch 2 checks those SNACK ranges without u32
wrap. Patch 3 rejects Status SNACKs for StatSNs the target hasn't sent,
also keeping the connection up. Each patch changes what the initiator
gets in the case it fixes, and each changelog says how.

This series is based on the two patches sent earlier:
https://lore.kernel.org/r/20261129155252.2217-1-bugs@stellman-greene.com
https://lore.kernel.org/r/20261129155252.2217-2-bugs@stellman-greene.com

It was built and tested on mainline bb13fcd7f438 plus both of those
patches, on arm64 QEMU/HVF with generic KASAN, loopback iSCSI, no CHAP
and ERL=1.

Andrew Stellman (3):
  scsi: target: iscsi: Don't drop live command refs on SNACK Reject
  scsi: target: iscsi: Check Data and R2T SNACK ranges without wrap
  scsi: target: iscsi: Reject Status SNACKs beyond sent StatSNs

 drivers/target/iscsi/iscsi_target.c       | 21 +++++++++++-----
 drivers/target/iscsi/iscsi_target.h       |  2 ++
 drivers/target/iscsi/iscsi_target_erl1.c  | 30 ++++++++++++++++-------
 drivers/target/iscsi/iscsi_target_erl1.h  |  5 ++--
 drivers/target/iscsi/iscsi_target_login.c |  1 +
 include/target/iscsi/iscsi_target_core.h  |  1 +
 6 files changed, 43 insertions(+), 17 deletions(-)


base-commit: bb13fcd7f4385fdf64340e5561a26bd951bc3d78
prerequisite-patch-id: cbbf444d664c0e0b3ed7d409e5c4a01980edd2e3
prerequisite-patch-id: 55cbe7d67b368dfb73231720b0adf91b4320a423
-- 
2.53.0


^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2026-11-30  6:42 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-11-30  6:28 [PATCH scsi-fixes 0/3] scsi: target: iscsi: SNACK Reject and range fixes Andrew Stellman
2026-11-30  6:28 ` [PATCH scsi-fixes 1/3] scsi: target: iscsi: Don't drop live command refs on SNACK Reject Andrew Stellman
2026-11-30  6:28 ` [PATCH scsi-fixes 2/3] scsi: target: iscsi: Check Data and R2T SNACK ranges without wrap Andrew Stellman
2026-11-30  6:28 ` [PATCH scsi-fixes 3/3] scsi: target: iscsi: Reject Status SNACKs beyond sent StatSNs Andrew Stellman
2026-11-30  6:42   ` sashiko-bot

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox