lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  PHC 
Open Source and information security mailing list archives
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Date:   Tue, 28 Jun 2022 09:27:21 +0200
From:   Geert Uytterhoeven <>
To:     "Gustavo A. R. Silva" <>
Cc:     Kees Cook <>,
        Linux Kernel Mailing List <>,
        "the arch/x86 maintainers" <>,,
        linux-m68k <>,
        "open list:BROADCOM NVRAM DRIVER" <>,
        linux-s390 <>,
        KVM list <>,
        Intel Graphics Development <>,
        DRI Development <>,
        netdev <>, bpf <>,
        linux-btrfs <>,,
        Linux FS Devel <>,,,,
        MTD Maling List <>,
        kasan-dev <>,
        Linux MMC List <>,,
        NetFilter <>,,,,,,
        Linux ARM <>,
        scsi <>,
        target-devel <>,
        USB list <>,,
        V9FS Developers <>,
        linux-rdma <>,
        ALSA Development Mailing List <>,
Subject: Re: [PATCH][next] treewide: uapi: Replace zero-length arrays with
 flexible-array members

Hi Gustavo,

Thanks for your patch!

On Mon, Jun 27, 2022 at 8:04 PM Gustavo A. R. Silva
<> wrote:
> There is a regular need in the kernel to provide a way to declare
> having a dynamically sized set of trailing elements in a structure.
> Kernel code should always use “flexible array members”[1] for these
> cases. The older style of one-element or zero-length arrays should
> no longer be used[2].

These rules apply to the kernel, but uapi is not considered part of the
kernel, so different rules apply.  Uapi header files should work with
whatever compiler that can be used for compiling userspace.



Geert Uytterhoeven -- There's lots of Linux beyond ia32 --

In personal conversations with technical people, I call myself a hacker. But
when I'm talking to journalists I just say "programmer" or something like that.
                                -- Linus Torvalds

Powered by blists - more mailing lists