Re: [PATCH v2] scsi: mpt3sas: validate data_out size before SMP link-reset check
From: Martin K. Petersen (Oracle)
Date: Fri Nov 20 2026 - 22:25:32 EST
On Thu, 29 Oct 2026 15:33:16 +0800, Weibin Liu wrote:
> _ctl_do_mpt_command() handles MPI2_FUNCTION_SMP_PASSTHROUGH by reading
> data[1] and data[10] of the data_out buffer to detect SMP link-reset
> requests. The non-IMMEDIATE path sets data = data_out after checking only
> for a NULL pointer, so a payload shorter than 11 bytes can read past the
> end of the buffer, and out-of-bounds bytes can unexpectedly set
> ioc_link_reset_in_progress and ignore_loginfos.
>
> [...]
Applied to 7.4/scsi-fixes, thanks!
[1/1] scsi: mpt3sas: validate data_out size before SMP link-reset check
https://git.kernel.org/mkp/scsi/c/efd68f17acca
--
Martin K. Petersen