[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <78830434-CCE0-4DF5-829C-F0D78AE35E79@kernel.org>
Date: Mon, 04 Sep 2023 20:53:27 -0700
From: Kees Cook <kees@...nel.org>
To: Przemek Kitszel <przemyslaw.kitszel@...el.com>, netdev@...r.kernel.org
CC: Kees Cook <keescook@...omium.org>, Jacob Keller <jacob.e.keller@...el.com>,
intel-wired-lan@...ts.osuosl.org,
Alexander Lobakin <aleksander.lobakin@...el.com>,
linux-hardening@...r.kernel.org, Steven Zou <steven.zou@...el.com>,
Jakub Kicinski <kuba@...nel.org>,
Anthony Nguyen <anthony.l.nguyen@...el.com>,
David Laight <David.Laight@...LAB.COM>
Subject: Re: [RFC net-next v4 0/7] introduce DEFINE_FLEX() macro
On September 4, 2023 5:31:00 AM PDT, Przemek Kitszel <przemyslaw.kitszel@...el.com> wrote:
>Add DEFINE_FLEX() macro, that helps on-stack allocation of structures
>with trailing flex array member.
>Expose __struct_size() macro which reads size of data allocated
>by DEFINE_FLEX().
>
>Accompany new macros introduction with actual usage,
>in the ice driver - hence targeting for netdev tree
>- please me know if it is best approach here?
Yes, I'm fine with this. The changes to the string headers are relatively localized.
--
Kees Cook
Powered by blists - more mailing lists