From mboxrd@z Thu Jan 1 00:00:00 1970 From: David Miller Subject: Re: [PATCH net] netlink: extack needs to be reset each time through loop Date: Mon, 15 Jan 2018 13:50:31 -0500 (EST) Message-ID: <20180115.135031.2251496604167847341.davem@davemloft.net> References: <20180110210039.4763-1-dsahern@gmail.com> Mime-Version: 1.0 Content-Type: Text/Plain; charset=us-ascii Content-Transfer-Encoding: 7bit Cc: netdev@vger.kernel.org, johannes.berg@intel.com To: dsahern@gmail.com Return-path: Received: from shards.monkeyblade.net ([184.105.139.130]:50696 "EHLO shards.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751356AbeAOSud (ORCPT ); Mon, 15 Jan 2018 13:50:33 -0500 In-Reply-To: <20180110210039.4763-1-dsahern@gmail.com> Sender: netdev-owner@vger.kernel.org List-ID: From: David Ahern Date: Wed, 10 Jan 2018 13:00:39 -0800 > syzbot triggered the WARN_ON in netlink_ack testing the bad_attr value. > The problem is that netlink_rcv_skb loops over the skb repeatedly invoking > the callback and without resetting the extack leaving potentially stale > data. Initializing each time through avoids the WARN_ON. > > Fixes: 2d4bc93368f5a ("netlink: extended ACK reporting") > Reported-by: syzbot+315fa6766d0f7c359327@syzkaller.appspotmail.com > Signed-off-by: David Ahern Applied and queued up for -stable, thanks David.