From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Date: Thu, 21 Oct 2021 20:16:03 +0200 From: Pablo Neira Ayuso Message-ID: References: <20210928200647.GA266402@embeddedor> <202110210958.6626A30@keescook> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline In-Reply-To: <202110210958.6626A30@keescook> Subject: Re: [Bridge] [PATCH][net-next] netfilter: ebtables: use array_size() helper in copy_{from, to}_user() List-Id: Linux Ethernet Bridging List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Kees Cook Cc: netdev@vger.kernel.org, bridge@lists.linux-foundation.org, Florian Westphal , "Gustavo A. R. Silva" , Jozsef Kadlecsik , coreteam@netfilter.org, netfilter-devel@vger.kernel.org, Nikolay Aleksandrov , Roopa Prabhu , Jakub Kicinski , "David S. Miller" , linux-kernel@vger.kernel.org, linux-hardening@vger.kernel.org On Thu, Oct 21, 2021 at 10:00:34AM -0700, Kees Cook wrote: > On Tue, Sep 28, 2021 at 03:06:47PM -0500, Gustavo A. R. Silva wrote: > > Use array_size() helper instead of the open-coded version in > > copy_{from,to}_user(). These sorts of multiplication factors > > need to be wrapped in array_size(). > > > > Link: https://github.com/KSPP/linux/issues/160 > > Signed-off-by: Gustavo A. R. Silva > > Thanks! > > Reviewed-by: Kees Cook > > I see that this is marked "Awaiting Upstream" (for an ebtables > maintainer ack?) > https://patchwork.kernel.org/project/netdevbpf/patch/20210928200647.GA266402@embeddedor/ I'll route this through the netfilter tree, thanks.