Re: [PATCH] scsi: aacraid: Allocate cmd_priv with scsicmd

From: Martin K. Petersen
Date: Wed Feb 08 2023 - 18:16:40 EST



Kees,

> The aac_priv() helper assumes that the private cmd area immediately
> follows struct scsi_cmnd. Allocate this space as part of scsicmd, else
> there is a risk of heap overflow. Seen with GCC 13:

Applied to 6.3/scsi-staging, thanks!

--
Martin K. Petersen Oracle Linux Engineering