Re: [PATCH] scsi: target: tcm_fc: reject overlapping write-data frames
From: Yehyeong Lee
Date: Mon Oct 12 2026 - 13:01:43 EST
Thanks. You are right - v1 extended a tracked range but didn't re-check
whether it had become adjacent to another, so a reordered write could fill
the small array with ranges that were really contiguous and then reject a
later frame as a repeat. v2 coalesces adjacent ranges after each frame, so
that no longer happens; I reproduced the spurious drop with a reordered
16-frame write and confirmed v2 accepts it. A write split into more
simultaneous gaps than the array holds is still dropped, but that is a
misbehaving initiator and the exchange just aborts.
v2: https://lore.kernel.org/linux-scsi/20261012153502.2435483-1-yhlee@xxxxxxxxxxxxxxxxxx/
Thanks,
Yehyeong