Re: [PATCH] scsi: mpt3sas: Convert to flexible arrays

From: Kees Cook
Date: Wed Mar 09 2022 - 12:18:53 EST


On Tue, Mar 08, 2022 at 10:20:28PM -0500, Martin K. Petersen wrote:
>
> Sreekanth,
>
> > I am observing below kernel panic when I load the driver with this
> > patch changes. After reverting this patch changes then the driver is
> > getting loaded successfully.
>
> I am puzzled. The driver loads fine for me. I have verified that the
> generated object file is identical before and after Kees' patch.

I've double-checked this again myself; I don't see any binary
difference. Can you share your .config? I was using defconfig with
these added:

SCSI_LOWLEVEL=y
SCSI_MPT3SAS=y

--
Kees Cook