Re: [PATCH] scsi: scsi_transport_fc: reject truncated FPIN payloads

From: Martin K. Petersen

Date: Sun Nov 08 2026 - 22:25:50 EST



> fc_host_fpin_rcv() computes the length of the TLV area as
>
> bytes_remain = fpin_len - offsetof(struct fc_els_fpin, fpin_desc);
>
> without checking that the payload is at least as large as the fixed
> FC-ELS header.

Applied to 7.5/scsi-staging, thanks!

--
Martin K. Petersen