Received: by 10.192.165.156 with SMTP id m28csp2155976imm; Sat, 14 Apr 2018 15:32:44 -0700 (PDT) X-Google-Smtp-Source: AIpwx48wp7aAfLq6d3ATPj4llFvlbQr+ao1pzuXvFSBvY8LCTgECVfQy3C5Hgg/4YyLmAqI8ryNh X-Received: by 10.99.123.71 with SMTP id k7mr1347275pgn.321.1523745164143; Sat, 14 Apr 2018 15:32:44 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1523745164; cv=none; d=google.com; s=arc-20160816; b=ygmjPDQUGRLTN45LMCZqTc7HlpYuQrRkKM6svkipHBVB6lJ/rjbtgcLXjIv6vomWmj aXQ3OGtM1dyM03zqD3Mczzi1IjU+b9RCXQaPTOLa8eLQ/TfgzW0rdKyyh2TLdJ9cRTD/ B7rN+gZ4tkj7j6wy1FYneXH5XmKqExyUuKduqAhCZOwgdtfAmsy1n2HNYUEnQFa020yT kMXu8EepLHkXKpXeLU4rlWTUHdI+xFhzlMBxm/FpT2M54UwKJq6j8dFgQQssxh9uk7p6 YNbzjse8frMXB2tHhjXdZND5x5NC1nQnVi8kAE9mMDsodIdkjmXJgGQWZ34+TdVUMjgZ Osfw== 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:arc-authentication-results; bh=YV9LaMK6mmIFC+Gi4R39jSpUkWpLjaJT/4LWrYxDKb4=; b=GwtIHBoCVstjC5M3rPX9+WTF6RyaO+ZCYw9/Qkpc+2w8PhHiurk4mEwGBOg16fP/rw 9/c1CEbPj5Kcyfb4YknjihYkEatBIBcKjIX/ck3S+05ISZOGjJnv4LfIuOCkfJPtKQcH iC7i9VSkBBuFpNg7A1DzRTOpjg0RdZT69o8ENgqSlnQT005JJQp+uQCnacZ9igYwLBN+ jEYCV0T8oBt7P6OKYUxyoVDBNxgXXskL6dtbrJemlOowZrtWWQ8u7BIDG/jEAUKSwR6j ptKxdeT/t5Z/a799d/5v0UxtfTwbzr1dc9+1xOnwSTrqf8vtfuoOhlXULXLpFudpAV8F oOqw== ARC-Authentication-Results: i=1; mx.google.com; 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 f5si6423703pgv.668.2018.04.14.15.32.30; Sat, 14 Apr 2018 15:32:44 -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; 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 S1752163AbeDNWbZ (ORCPT + 99 others); Sat, 14 Apr 2018 18:31:25 -0400 Received: from mx3-rdu2.redhat.com ([66.187.233.73]:47886 "EHLO mx1.redhat.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1751946AbeDNWbY (ORCPT ); Sat, 14 Apr 2018 18:31:24 -0400 Received: from smtp.corp.redhat.com (int-mx05.intmail.prod.int.rdu2.redhat.com [10.11.54.5]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mx1.redhat.com (Postfix) with ESMTPS id 67DFF406F96B; Sat, 14 Apr 2018 22:31:23 +0000 (UTC) Received: from bistromath.localdomain (unknown [10.36.118.17]) by smtp.corp.redhat.com (Postfix) with ESMTPS id 7C0D01C710; Sat, 14 Apr 2018 22:31:22 +0000 (UTC) Date: Sun, 15 Apr 2018 00:31:21 +0200 From: Sabrina Dubroca To: Laura Abbott Cc: Dan Carpenter , "David S. Miller" , Linux Kernel Mailing List , netdev@vger.kernel.org Subject: Re: Regression with 5dcd8400884c ("macsec: missing dev_put() on error in macsec_newlink()") Message-ID: <20180414223121.GA7475@bistromath.localdomain> References: <9a3a84ff-1fd1-c063-0c50-a297d29a692b@redhat.com> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline In-Reply-To: <9a3a84ff-1fd1-c063-0c50-a297d29a692b@redhat.com> User-Agent: Mutt/1.9.4 (2018-02-28) X-Scanned-By: MIMEDefang 2.79 on 10.11.54.5 X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.5.16 (mx1.redhat.com [10.11.55.5]); Sat, 14 Apr 2018 22:31:23 +0000 (UTC) X-Greylist: inspected by milter-greylist-4.5.16 (mx1.redhat.com [10.11.55.5]); Sat, 14 Apr 2018 22:31:23 +0000 (UTC) for IP:'10.11.54.5' DOMAIN:'int-mx05.intmail.prod.int.rdu2.redhat.com' HELO:'smtp.corp.redhat.com' FROM:'sd@queasysnail.net' RCPT:'' Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hello Laura, 2018-04-14, 10:56:55 -0700, Laura Abbott wrote: > Hi, > > Fedora got a bug report of a regression when trying to remove the > the macsec module (https://bugzilla.redhat.com/show_bug.cgi?id=1566410). > I did a bisect and found > > commit 5dcd8400884cc4a043a6d4617e042489e5d566a9 > Author: Dan Carpenter > Date: Wed Mar 21 11:09:01 2018 +0300 > > macsec: missing dev_put() on error in macsec_newlink() > We moved the dev_hold(real_dev); call earlier in the function but forgot > to update the error paths. > Fixes: 0759e552bce7 ("macsec: fix negative refcnt on parent link") > Signed-off-by: Dan Carpenter > Signed-off-by: David S. Miller > > The script I used for testing based on the reporter is attached. It > looks like modprobe is stuck in the D state. Any idea? I don't think that reference was actually leaked. It gets released in macsec_free_netdev() when the device is deleted. modprobe getting stuck is just a side-effect of the refcount going negative on the parent device, since removing the module needs to take the lock that is held by device deletion. I'll send a revert tomorrow. Thanks for the report, -- Sabrina