Re: [PATCH v5] checkpatch: Check for 0-length and 1-element arrays

From: Andrew Morton
Date: Thu Jun 01 2023 - 18:15:57 EST


On Thu, 1 Jun 2023 09:07:46 -0700 Kees Cook <keescook@xxxxxxxxxxxx> wrote:

> Fake flexible arrays have been deprecated since last millennium. Proper
> C99 flexible arrays must be used throughout the kernel so
> CONFIG_FORTIFY_SOURCE and CONFIG_UBSAN_BOUNDS can provide proper array
> bounds checking.
>
> Cc: Andy Whitcroft <apw@xxxxxxxxxxxxx>
> Cc: Dwaipayan Ray <dwaipayanray1@xxxxxxxxx>
> Cc: Lukas Bulwahn <lukas.bulwahn@xxxxxxxxx>
> Fixed-by: Joe Perches <joe@xxxxxxxxxxx>

You didn't checkpatch your checkpatch patch!

WARNING: Non-standard signature: Fixed-by:
#248:
Fixed-by: Joe Perches <joe@xxxxxxxxxxx>

I'll do my usual

[joe@xxxxxxxxxxx: handle __packed for srtucts]