From mboxrd@z Thu Jan 1 00:00:00 1970 From: David Miller Subject: Re: [PATCH net 0/8] net: fix uninit-values in networking stack Date: Sat, 07 Apr 2018 22:40:25 -0400 (EDT) Message-ID: <20180407.224025.1923207101579714958.davem@davemloft.net> References: <20180407204243.176626-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 To: edumazet@google.com Return-path: Received: from shards.monkeyblade.net ([184.105.139.130]:33730 "EHLO shards.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752553AbeDHCk3 (ORCPT ); Sat, 7 Apr 2018 22:40:29 -0400 In-Reply-To: <20180407204243.176626-1-edumazet@google.com> Sender: netdev-owner@vger.kernel.org List-ID: From: Eric Dumazet Date: Sat, 7 Apr 2018 13:42:35 -0700 > It seems syzbot got new features enabled, and fired some interesting > reports. Oh well. Series applied, however in patch #7 the condition syzbot detects cannot happen. In all code paths that lead to __mkroute_output() with res->type uninitialized, __mkroute_output() will reassign the local variable 'type' before reading it. Furthermore, by doing a full structure initialization lots of unrelated things will be initialized now as well. We explicitly are only setting up the "inputs" of the fib_result object before we call fib_lookup(). The prefixlen and other members have no business being initialized there.