Re: [PATCH v3 0/4] scsi: hisi_sas: Some misc fixes

From: Martin K. Petersen (Oracle)

Date: Fri Oct 23 2026 - 23:27:04 EST


On Fri, 09 Oct 2026 11:32:34 +0800, Xingui Yang wrote:

> This series contains three independent fixes for the hisi_sas driver,
> plus a libsas fix found during review.
>
> Patch 1 fixes an out-of-bounds memcpy in sas_ssp_task_response(): a
> device-provided sense_data_len >= 0x80000000 turns negative in the
> min_t(int, ...) clamp and becomes a huge memcpy length.
>
> [...]

Applied to 7.4/scsi-queue, thanks!

[1/4] scsi: libsas: Fix out-of-bounds memcpy in sas_ssp_task_response()
https://git.kernel.org/mkp/scsi/c/4d7f9c3fdce7
[2/4] scsi: hisi_sas: Fix incorrect delay values from magic-number cleanup
https://git.kernel.org/mkp/scsi/c/7307109c92f7
[3/4] scsi: hisi_sas: Clear PHY error counts on phyup
https://git.kernel.org/mkp/scsi/c/7991f33110d2
[4/4] scsi: hisi_sas: Fix spinup failure for SAS SSP devices in Active_Wait state
https://git.kernel.org/mkp/scsi/c/92821c2358c7

--
Martin K. Petersen