Re: [PATCH][next] net_sched: Use struct_size() and flex_array_size() helpers

From: Jakub Kicinski
Date: Mon Sep 27 2021 - 20:56:10 EST


On Mon, 27 Sep 2021 17:18:49 -0500 Gustavo A. R. Silva wrote:
> Make use of the struct_size() and flex_array_size() helpers instead of
> an open-coded version, in order to avoid any potential type mistakes
> or integer overflows that, in the worse scenario, could lead to heap
> overflows.
>
> Link: https://github.com/KSPP/linux/issues/160
> Signed-off-by: Gustavo A. R. Silva <gustavoars@xxxxxxxxxx>

Does not apply to net-next, please rebase & resend. Thanks!