Re: [PATCH] scsi: target: tcm_fc: reject overlapping write-data frames

From: Yehyeong Lee

Date: Fri Nov 20 2026 - 10:01:45 EST


On Mon, Oct 12, 2026 at 10:51:59PM +0900, Yehyeong Lee wrote:
> ft_recv_write_data() executes a WRITE once the received byte count reaches
> se_cmd->data_length. Frames are placed by their FCP relative offset but
> nothing tracks which offsets were filled, so an initiator that sends two
> frames at the same offset reaches data_length with part of the buffer never
> written: two 4096-byte frames at offset 0 of an 8192-byte write get the
> count to 8192 and leave the second half untouched.

This is superseded by v2:
https://lore.kernel.org/all/20261012153502.2435483-1-yhlee@xxxxxxxxxxxxxxxxxx/

Best regards,
Yehyeong Lee