Re: [RFC net-next v4 0/7] introduce DEFINE_FLEX() macro

From
Kees Cook <kees@kernel.org>
Date
2023-09-05 03:53:31
Also in
intel-wired-lan, linux-hardening
Reply to
Przemek Kitszel, 2023-09-04
On September 4, 2023 5:31:00 AM PDT, Przemek Kitszel [off-list ref] 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
Thread (11 messages) 11 messages, 2 authors, last reply 2023-09-05
Keyboard shortcuts
hback out one level
jnext message in thread / next series-diff position
kprevious message in thread / previous series-diff position
ldrill in
Escclose help / fold thread tree
?toggle this help