[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-Id: <163971367435.637.14441712327828336248.b4-ty@oracle.com>
Date: Thu, 16 Dec 2021 23:04:42 -0500
From: "Martin K. Petersen" <martin.petersen@...cle.com>
To: James Smart <james.smart@...adcom.com>,
Kees Cook <keescook@...omium.org>
Cc: "Martin K . Petersen" <martin.petersen@...cle.com>,
linux-scsi@...r.kernel.org,
"James E.J. Bottomley" <jejb@...ux.ibm.com>,
linux-kernel@...r.kernel.org,
Dick Kennedy <dick.kennedy@...adcom.com>,
linux-hardening@...r.kernel.org
Subject: Re: [PATCH] scsi: lpfc: Use struct_group() to initialize struct lpfc_cgn_info
On Wed, 8 Dec 2021 11:59:57 -0800, Kees Cook wrote:
> In preparation for FORTIFY_SOURCE performing compile-time and run-time
> field bounds checking for memset(), avoid intentionally writing across
> neighboring fields.
>
> Add struct_group() to mark "stat" region of struct lpfc_cgn_info that
> should be initialized to zero, and refactor the "data" region memset()
> to wipe everything up to the cgn_stats region.
>
> [...]
Applied to 5.17/scsi-queue, thanks!
[1/1] scsi: lpfc: Use struct_group() to initialize struct lpfc_cgn_info
https://git.kernel.org/mkp/scsi/c/532adda9f405
--
Martin K. Petersen Oracle Linux Engineering
Powered by blists - more mailing lists