[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <20210927175604.66ec0cff@kicinski-fedora-pc1c0hjn.dhcp.thefacebook.com>
Date: Mon, 27 Sep 2021 17:56:04 -0700
From: Jakub Kicinski <kuba@...nel.org>
To: "Gustavo A. R. Silva" <gustavoars@...nel.org>
Cc: Jamal Hadi Salim <jhs@...atatu.com>,
Cong Wang <xiyou.wangcong@...il.com>,
Jiri Pirko <jiri@...nulli.us>,
"David S. Miller" <davem@...emloft.net>, netdev@...r.kernel.org,
linux-kernel@...r.kernel.org, linux-hardening@...r.kernel.org
Subject: Re: [PATCH][next] net_sched: Use struct_size() and
flex_array_size() helpers
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@...nel.org>
Does not apply to net-next, please rebase & resend. Thanks!
Powered by blists - more mailing lists