lkml.org 
[lkml]   [2023]   [Jan]   [13]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
From
SubjectRe: [PATCH] scsi: mvumi: Replace 1-element arrays with flexible array members
Date
On Wed, 04 Jan 2023 17:11:50 -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 struct
> mvumi_msg_frame, struct mvumi_rsp_frame, and struct mvumi_hs_header,
> adjusting the explicit sizing calculations at the same time.
>
> [...]

Applied to 6.3/scsi-queue, thanks!

[1/1] scsi: mvumi: Replace 1-element arrays with flexible array members
https://git.kernel.org/mkp/scsi/c/201e0a7c7f36

--
Martin K. Petersen Oracle Linux Engineering

\
 
 \ /
  Last update: 2023-03-26 23:41    [W:0.041 / U:0.776 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site