From: David Miller Subject: Re: [PATCH net] rtnetlink: ndo_dflt_fdb_dump() only work for ARPHRD_ETHER devices Date: Tue, 04 Dec 2018 20:29:05 -0800 (PST) Message-ID: <20181204.202905.633135306569599890.davem@davemloft.net> References: <20181204174035.107587-1-edumazet@google.com> Mime-Version: 1.0 Content-Type: Text/Plain; charset=us-ascii Content-Transfer-Encoding: 7bit Cc: netdev@vger.kernel.org, eric.dumazet@gmail.com, john.fastabend@gmail.com, idosch@mellanox.com, dsahern@gmail.com To: edumazet@google.com Return-path: Received: from shards.monkeyblade.net ([23.128.96.9]:54276 "EHLO shards.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725864AbeLEE3G (ORCPT ); Tue, 4 Dec 2018 23:29:06 -0500 In-Reply-To: <20181204174035.107587-1-edumazet@google.com> Sender: netdev-owner@vger.kernel.org List-ID: From: Eric Dumazet Date: Tue, 4 Dec 2018 09:40:35 -0800 > 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 Applied and queued up for -stable, thanks Eric.