[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-Id: <167366469093.3069139.1897721173635562878.b4-ty@oracle.com>
Date: Fri, 13 Jan 2023 22:06:40 -0500
From: "Martin K. Petersen" <martin.petersen@...cle.com>
To: Adam Radford <aradford@...il.com>,
Kees Cook <keescook@...omium.org>
Cc: "Martin K . Petersen" <martin.petersen@...cle.com>,
"James E.J. Bottomley" <jejb@...ux.ibm.com>,
"Gustavo A. R. Silva" <gustavoars@...nel.org>,
linux-scsi@...r.kernel.org, linux-kernel@...r.kernel.org,
linux-hardening@...r.kernel.org
Subject: Re: [PATCH] scsi: 3w-sas: Replace 1-element arrays with flexible array members
On Wed, 04 Jan 2023 16:48:01 -0800, Kees Cook wrote:
> One-element arrays (and multi-element arrays being treated as
> dynamically sized) are deprecated[1] and are being replaced with
> flexible array members in support of the ongoing efforts to tighten the
> FORTIFY_SOURCE routines on memcpy(), correctly instrument array indexing
> with UBSAN_BOUNDS, and to globally enable -fstrict-flex-arrays=3.
>
> Replace one-element arrays with flexible-array member in TW_Ioctl_Buf_Apache
> and TW_Param_Apache, adjusting the explicit sizing calculations at the
> same time.
>
> [...]
Applied to 6.3/scsi-queue, thanks!
[1/1] scsi: 3w-sas: Replace 1-element arrays with flexible array members
https://git.kernel.org/mkp/scsi/c/45b379f20bc0
--
Martin K. Petersen Oracle Linux Engineering
Powered by blists - more mailing lists