Received: by 2002:a25:c593:0:0:0:0:0 with SMTP id v141csp1427689ybe; Thu, 5 Sep 2019 15:33:38 -0700 (PDT) X-Google-Smtp-Source: APXvYqxQszWLplY0Jzo9CxmS9wv6iCXbywX9jZwyXgyhSY8163hwZsmGkFjgKeihKYBGbTwEVtXz X-Received: by 2002:a17:902:4381:: with SMTP id j1mr5817130pld.318.1567722818275; Thu, 05 Sep 2019 15:33:38 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1567722818; cv=none; d=google.com; s=arc-20160816; b=u1MYKsNn88ge9grfLqr5nhw/eJd8FUKDt3tShhhOGd0TKSU6EG9BfODWE6BYUKN22J bfF0KcA/aLcTa17YuGi350h93iixaRmCYcnBoBG2rODSzGEc+4TPU3DVixW39qEFbq6h lgjTjaY641krMB+q/nf7ZT1eNik38pntG6K7ikXwdaJ4k8xNvEWn4bqM67JG2/BQTdLV 6caRQ4zJPoGu8T6sxLj+quXrNwwleRJcXc4n5ZkfDgI+VQHBV/pP6GNFW4dTtUyQR49o kd/XMjkBaFezCb9Cy2wLQUjtb3wCyMAIQ/J85sO8MM/kGteVa64e4IBvRwrzo4saqwFy RYIg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:dkim-signature; bh=6vYh2U5ut/40fTKHx7Q8X7CL0LeoJqrsMheDfRkBOXU=; b=gHFfBSGdQ5XZOqC1XrrjOlwjHeIJYwsLaHt7ktity21gUFC8F/RWHVgpsv0gHbQPwh pLXgJoMLYMPybIVShrzpKc5MSs2eMO0wgcqHlzJWAijejxYcXt46Xh4GjnaIXTsO5kJO 2TLUC8LRG5YxOZGFMBk+a97GB+Q4ARAWF45L4613iFyP5VtkSKN+Qd+MHd2OWghV6Cvy 7QOwWvIM8T4jLoC5/eIOY/bEqxKpmyr8znChY2FLujDylz2BgKbRltkkjPq8daaOCktD 3PphhRZXRlm0sgWdUFCm9hMu7HhpdiiSA/mq001vlWPV2sS8WWTxVlsOI0jmNzE5+rn9 RjYg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=fxm3fKma; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id h17si3182391pjq.34.2019.09.05.15.33.17; Thu, 05 Sep 2019 15:33:38 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=fxm3fKma; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2391334AbfIESrj (ORCPT + 99 others); Thu, 5 Sep 2019 14:47:39 -0400 Received: from mail.kernel.org ([198.145.29.99]:51300 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2388235AbfIESrj (ORCPT ); Thu, 5 Sep 2019 14:47:39 -0400 Received: from localhost (83-86-89-107.cable.dynamic.v4.ziggo.nl [83.86.89.107]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id 20B3C20825; Thu, 5 Sep 2019 18:47:38 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1567709259; bh=eswc6e7PS11qFRA+pb6RWFwrYLnlAocTlT0WwvnKDM8=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=fxm3fKmai5Bwytz32dHXB5bIEOG2oI7Va/HGzhqfV6l83B0/v5L6hnIiKbWFNTcLh sGZK5p6+DxT0g9NnZE9IvZVzbzop1yy4fVgjkMqSH0EIQiXQW4V57XRCEADqatHJ7r tWvQbQgyKQTDewG7961CuN5ov1J6lfntV/BUoVyo= Date: Thu, 5 Sep 2019 20:47:35 +0200 From: Greg Kroah-Hartman To: Sasha Levin Cc: linux-kernel@vger.kernel.org, stable@vger.kernel.org, syzbot+c6167ec3de7def23d1e8@syzkaller.appspotmail.com, Arvid Brodin , Cong Wang , "David S. Miller" Subject: Re: [PATCH 5.2 143/143] hsr: implement dellink to clean up resources Message-ID: <20190905184735.GA24300@kroah.com> References: <20190904175314.206239922@linuxfoundation.org> <20190904175320.090038891@linuxfoundation.org> <20190904212040.GA1616@sasha-vm> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20190904212040.GA1616@sasha-vm> User-Agent: Mutt/1.12.1 (2019-06-15) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, Sep 04, 2019 at 05:20:40PM -0400, Sasha Levin wrote: > On Wed, Sep 04, 2019 at 07:54:46PM +0200, Greg Kroah-Hartman wrote: > > From: Cong Wang > > > > commit b9a1e627405d68d475a3c1f35e685ccfb5bbe668 upstream. > > > > hsr_link_ops implements ->newlink() but not ->dellink(), > > which leads that resources not released after removing the device, > > particularly the entries in self_node_db and node_db. > > > > So add ->dellink() implementation to replace the priv_destructor. > > This also makes the code slightly easier to understand. > > > > Reported-by: syzbot+c6167ec3de7def23d1e8@syzkaller.appspotmail.com > > Cc: Arvid Brodin > > Signed-off-by: Cong Wang > > Signed-off-by: David S. Miller > > Signed-off-by: Greg Kroah-Hartman > > If the airport gods cooperate, I'm going to queue: > > edf070a0fb45a ("hsr: fix a NULL pointer deref in hsr_dev_xmit()") > 311633b604063 ("hsr: switch ->dellink() to ->ndo_uninit()") > > as fixes for this commit. Ugh, sorry about that, I need to fix up my scripts :( greg k-h