From mboxrd@z Thu Jan 1 00:00:00 1970 From: David Miller Subject: Re: [net 1/1] tipc: fix missing initializer in tipc_sendmsg() Date: Thu, 12 Apr 2018 21:56:11 -0400 (EDT) Message-ID: <20180412.215611.1943039987123231371.davem@davemloft.net> References: <1523488548-28520-1-git-send-email-jon.maloy@ericsson.com> Mime-Version: 1.0 Content-Type: Text/Plain; charset=us-ascii Content-Transfer-Encoding: 7bit Cc: netdev@vger.kernel.org, mohan.krishna.ghanta.krishnamurthy@ericsson.com, tung.q.nguyen@dektech.com.au, hoang.h.le@dektech.com.au, canh.d.luu@dektech.com.au, ying.xue@windriver.com, tipc-discussion@lists.sourceforge.net To: jon.maloy@ericsson.com Return-path: Received: from shards.monkeyblade.net ([184.105.139.130]:60538 "EHLO shards.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752391AbeDMB4N (ORCPT ); Thu, 12 Apr 2018 21:56:13 -0400 In-Reply-To: <1523488548-28520-1-git-send-email-jon.maloy@ericsson.com> Sender: netdev-owner@vger.kernel.org List-ID: From: Jon Maloy Date: Thu, 12 Apr 2018 01:15:48 +0200 > The stack variable 'dnode' in __tipc_sendmsg() may theoretically > end up tipc_node_get_mtu() as an unitilalized variable. > > We fix this by intializing the variable at declaration. We also add > a default else clause to the two conditional ones already there, so > that we never end up in the named function if the given address > type is illegal. > > Reported-by: syzbot+b0975ce9355b347c1546@syzkaller.appspotmail.com > Signed-off-by: Jon Maloy Applied, thanks Jon.