From mboxrd@z Thu Jan 1 00:00:00 1970 From: Ido Schimmel Subject: Re: [PATCH net] rtnetlink: ndo_dflt_fdb_dump() only work for ARPHRD_ETHER devices Date: Tue, 4 Dec 2018 19:49:11 +0200 Message-ID: <20181204174911.GA22758@splinter> References: <20181204174035.107587-1-edumazet@google.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Cc: "David S . Miller" , netdev , Eric Dumazet , John Fastabend , Ido Schimmel , David Ahern To: Eric Dumazet Return-path: Received: from out4-smtp.messagingengine.com ([66.111.4.28]:47069 "EHLO out4-smtp.messagingengine.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726056AbeLDRtR (ORCPT ); Tue, 4 Dec 2018 12:49:17 -0500 Content-Disposition: inline In-Reply-To: <20181204174035.107587-1-edumazet@google.com> Sender: netdev-owner@vger.kernel.org List-ID: On Tue, Dec 04, 2018 at 09:40:35AM -0800, Eric Dumazet wrote: > kmsan was able to trigger a kernel-infoleak using a gre device [1] > > nlmsg_populate_fdb_fill() has a hard coded assumption > that dev->addr_len is ETH_ALEN, as normally guaranteed > for ARPHRD_ETHER devices. > > A similar issue was fixed recently in commit da71577545a5 > ("rtnetlink: Disallow FDB configuration for non-Ethernet device") ... > Fixes: d83b06036048 ("net: add fdb generic dump routine") > Signed-off-by: Eric Dumazet > Cc: John Fastabend > Cc: Ido Schimmel > Cc: David Ahern Reviewed-by: Ido Schimmel Thanks!