Received: by 2002:a25:c593:0:0:0:0:0 with SMTP id v141csp22472ybe; Wed, 4 Sep 2019 14:21:59 -0700 (PDT) X-Google-Smtp-Source: APXvYqyx36/3/tdSmGtQzO1dwyce/ZFZpdL98xil9rIEP9l6pevJB25gYKWEdQNTm39zg/cSF/Mu X-Received: by 2002:a62:ab13:: with SMTP id p19mr48605207pff.20.1567632119893; Wed, 04 Sep 2019 14:21:59 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1567632119; cv=none; d=google.com; s=arc-20160816; b=SvnmoAnZI1lm4nUemPwP9Xap+LYi8fwQ2RzF89BAdjY14q0z2ofDXkZl3sdnfK8OCS s8ncLfyY0x1IA5ICoakoeg0zjfg2SUUPDK2qzmiicOMoyV3yvyp2enqgXKDiphRR4154 ilJ/A7ZuqMKGMAsM3tqhCMfLtlmb5QVgm8SunDb3Ttz8ccDI6jYvn0NQTe9i3rBbDcDm l43RMZkTpThX14ZouEWwiNgZo9A5VrTYleOj5TAk1Aa+VDvtdudwHiquIz6PtuY3p/Vc doiTDmcG4n8hkj/jvlY6OtCGd39ikS8MvLk+wIwIRn6SkxQdkZHcElL+dK4qzX8P6/k2 QWxA== 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=Ojqy8ivmyKF5BkwEZLUHZkZNdboqGhLpouawdNXUclQ=; b=w0n5NieKRWZx4zVGueFSkQwk6AfUicA62J93Pz6jnLvZ0lv6Eoa/PP0W8u8jXy3F3Q hrEg0kC3vObkUD9HvkKDzXQ995rTdE40yORcP315zKd0PiDD9cWwWTXYlZYttz+SdFgX Z1uHUolSDLl4bsbUXzyuooqZXbp98QCzv9yRsFY9XPyCGeWWbe63GszTjIyVfl6rlrx6 reuh/dB33dZyWfkdyBLl81EuMWabB0UOHSC7n7dVR3VDyfOGXqIQLQgCJSJVpy+/OuLq PEbupBrSl/uli0ZXb7yoQh5Pm8mRrAKh58EXg6mM7635+yaTNial2OQpGxkoNT6V51tW F4oQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b="To9BkXo/"; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id i6si165705pjs.13.2019.09.04.14.21.43; Wed, 04 Sep 2019 14:21:59 -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="To9BkXo/"; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1729740AbfIDVUo (ORCPT + 99 others); Wed, 4 Sep 2019 17:20:44 -0400 Received: from mail.kernel.org ([198.145.29.99]:45018 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726358AbfIDVUo (ORCPT ); Wed, 4 Sep 2019 17:20:44 -0400 Received: from localhost (unknown [209.117.102.182]) (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 C354F20828; Wed, 4 Sep 2019 21:20:42 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1567632043; bh=Ojqy8ivmyKF5BkwEZLUHZkZNdboqGhLpouawdNXUclQ=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=To9BkXo/HIhtWlCLEliRLzA2HuJEM6u4Mxb8PHP8wPNMzVKs9a+iU650d2oxPR7aV J2/LL4Tx9YRHFlGHovgPjTlm17Rd0axoECwDoSveJpTfOHePAfJJPOjy+X/rlV1S1p /YrWcJgOY5A00o4poMoD5XjBXIZHZJMLNgSpEVm4= Date: Wed, 4 Sep 2019 17:20:40 -0400 From: Sasha Levin To: Greg Kroah-Hartman 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: <20190904212040.GA1616@sasha-vm> References: <20190904175314.206239922@linuxfoundation.org> <20190904175320.090038891@linuxfoundation.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii; format=flowed Content-Disposition: inline In-Reply-To: <20190904175320.090038891@linuxfoundation.org> User-Agent: Mutt/1.10.1 (2018-07-13) 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 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. -- Thanks, Sasha