Received: by 10.192.165.156 with SMTP id m28csp1989143imm; Sat, 14 Apr 2018 10:58:40 -0700 (PDT) X-Google-Smtp-Source: AIpwx485sfrKW1i+7u6RVloD45fgO3YhQrTbnCDobzoPl7BoHC2y4DkwHz0w2TZnPrSY5RZvuKpV X-Received: by 10.98.144.205 with SMTP id q74mr15668785pfk.55.1523728720364; Sat, 14 Apr 2018 10:58:40 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1523728720; cv=none; d=google.com; s=arc-20160816; b=Cls0set1n40SytdEtv8kWgvJg/nNAkkY0lbO6rc/zgoqezCK8Fpg0YiMGEtyFdaSyE 8YOInsJFH7VupqZslF4ceI4/d9gVmE+4vR64Ry8HTUaEQzBuwIqMhNeUXFubJlPcHpux CxFZJAMOZrAcU1t7pwW+QjsOIfhOGrb9QAU+sk5rq+PtIxFeUDdtbXbJWmET+UMobqB+ DQMTaXldlGFOd+9+EArhgyrcJCrkaBP6KBdHB5zTKJUHc5uHksvv4ZlSk2ofQUn7iqhR xrJMm7oJuMysPMGNyXcB3FHSMKd3MCrqdT5mOtKu8zlQBDuvnFc69gVXupWIXLyQhZDS KqpA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-language:mime-version:user-agent :date:message-id:subject:from:cc:to:arc-authentication-results; bh=VLMN6vrFa43J5urzUCCaUt0vKNDdjUZ7l9L11xD7l3c=; b=pNGgqjrzw2jj9KmXzRenJuRDwhhAsmQE3fuRBqspS9RVRKuk+YWRq1j/kZ3hVsT1k6 yBENvVprBIGTL526iSFg1ZrLD1jkWJcPco5alBfRhWLp90QmYVDbC0q0vunr8u+b5fo/ SCB3URrQCWdtjO5BTMgryU+3IDx99HohaBOYtzBK3ZnPXoVC+m0XwaS+lSn3e028cfKb 6mw+SUuP0jcXKtX9Z/ByKOcc5D3w3rbB08wn5I2uTgYp8GoGNmU/pEQ8V2+trx3IG5Yw 14NZAOQlaHUESMuhihsZxwvR86UV5dVRh9TLFDEMtze2Ca9BYnak/6BKg0UBdtDdK22Z ZWiQ== 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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=redhat.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id o33-v6si7806999plb.369.2018.04.14.10.58.13; Sat, 14 Apr 2018 10:58:40 -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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=redhat.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751674AbeDNR47 (ORCPT + 99 others); Sat, 14 Apr 2018 13:56:59 -0400 Received: from mail-pf0-f174.google.com ([209.85.192.174]:46180 "EHLO mail-pf0-f174.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751138AbeDNR45 (ORCPT ); Sat, 14 Apr 2018 13:56:57 -0400 Received: by mail-pf0-f174.google.com with SMTP id h69so8520220pfe.13 for ; Sat, 14 Apr 2018 10:56:57 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:to:cc:from:subject:message-id:date:user-agent :mime-version:content-language; bh=VLMN6vrFa43J5urzUCCaUt0vKNDdjUZ7l9L11xD7l3c=; b=paJXQ93Xe4OVTcywNDHSEF977T3ogpWfWXeqi34jcQa0XJANCLHYgoIrjxKW8aP0EY /noWlb8+4Oxlld00lFTXNqOGqwuWPoPtVMmKDSKKTzFbX1C4PTi/KEGAmK91PlGSwemh Xjq7eR+sZLwyJPFPUDL6HJU9AHZfRiKTxc8CpTzOlYjivZu856Y2epnKGz5R6dglF2Fl 2Im9YoF2sNziPHVJqjXNx7yRx06CKhM3HlTPkGXlv0eeh+SGR5WJCLe+dskYlV3kEHoo HYAaKH+fAUrJekgsO5WIHfNQyLiOqC4mlZDkj2Dk5aEI6S89NToFfKw90aIP62qzic5I h4cA== X-Gm-Message-State: ALQs6tBODP7VluJrYp3oVrp+iiTnubb6V0BsHTzFNNE4Yu1GJMQKnipz 8fVms0X6UNHObkmcgXvL8AVbjw== X-Received: by 10.99.110.132 with SMTP id j126mr4999493pgc.188.1523728617299; Sat, 14 Apr 2018 10:56:57 -0700 (PDT) Received: from localhost.localdomain ([2601:602:9802:a8dc::4dc5]) by smtp.gmail.com with ESMTPSA id 27sm19511081pfo.137.2018.04.14.10.56.55 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Sat, 14 Apr 2018 10:56:56 -0700 (PDT) To: Dan Carpenter , "David S. Miller" Cc: Linux Kernel Mailing List , netdev@vger.kernel.org From: Laura Abbott Subject: Regression with 5dcd8400884c ("macsec: missing dev_put() on error in macsec_newlink()") Message-ID: <9a3a84ff-1fd1-c063-0c50-a297d29a692b@redhat.com> Date: Sat, 14 Apr 2018 10:56:55 -0700 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.7.0 MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="------------BE353C688D35B3E385BEA9A3" Content-Language: en-US Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org This is a multi-part message in MIME format. --------------BE353C688D35B3E385BEA9A3 Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit 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? Thanks, Laura --------------BE353C688D35B3E385BEA9A3 Content-Type: application/x-shellscript; name="mac-sec-setup.sh" Content-Transfer-Encoding: base64 Content-Disposition: attachment; filename="mac-sec-setup.sh" IyEvYmluL3NoCgoKIyBTZXR1cAptb2Rwcm9iZSBtYWNzZWMKaXAgbmV0bnMgYWRkIG1hY3Nl Y19ucwppcCBsaW5rIGFkZCBtYWNzZWNfdmV0aCB0eXBlIHZldGggcGVlciBuYW1lIG1hY3Nl Y192ZXRocAppcCBsaW5rIHNldCBtYWNzZWNfdmV0aHAgbmV0bnMgbWFjc2VjX25zCmlwIGxp bmsgc2V0IG1hY3NlY192ZXRoIHVwCmlwIG5ldG5zIGV4ZWMgbWFjc2VjX25zIGlwIGxpbmsg c2V0IG1hY3NlY192ZXRocCB1cAoKCmVjaG8gJ2VhcG9sX3ZlcnNpb249MycgPiAvdG1wL3dw YV9zdXBwbGljYW50LmNvbmYKZWNobyAnYXBfc2Nhbj0wJyA+PiAvdG1wL3dwYV9zdXBwbGlj YW50LmNvbmYKZWNobyAnbmV0d29yaz17JyA+PiAvdG1wL3dwYV9zdXBwbGljYW50LmNvbmYK ZWNobyAnICBrZXlfbWdtdD1OT05FJyA+PiAvdG1wL3dwYV9zdXBwbGljYW50LmNvbmYKZWNo byAnICBlYXBvbF9mbGFncz0wJyA+PiAvdG1wL3dwYV9zdXBwbGljYW50LmNvbmYKZWNobyAn ICBtYWNzZWNfcG9saWN5PTEnID4+IC90bXAvd3BhX3N1cHBsaWNhbnQuY29uZgplY2hvICcg IG1rYV9jYWs9MDAxMTIyMzM0NDU1NjY3Nzg4OTkwMDExMjIzMzQ0NTUnID4+IC90bXAvd3Bh X3N1cHBsaWNhbnQuY29uZgplY2hvICcgIG1rYV9ja249NTU0NDMzMjIxMTAwOTk4ODc3NjY1 NTQ0MzMyMjExMDA1NTQ0MzMyMjExMDA5OTg4Nzc2NjU1NDQzMzIyMTEwMCcgPj4gL3RtcC93 cGFfc3VwcGxpY2FudC5jb25mCmVjaG8gJ30nID4+IC90bXAvd3BhX3N1cHBsaWNhbnQuY29u ZgppcCBuZXRucyBleGVjIG1hY3NlY19ucyB3cGFfc3VwcGxpY2FudCAgLWMgL3RtcC93cGFf c3VwcGxpY2FudC5jb25mIFwKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAg ICAgIC1pIG1hY3NlY192ZXRocCBcCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAg ICAgICAgICAtQiBcCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAt RCBtYWNzZWNfbGludXggXAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAg ICAgLVAgL3RtcC93cGFfc3VwcGxpY2FudF9tcy5waWQKCnNsZWVwIDYKaXAgbmV0bnMgZXhl YyBtYWNzZWNfbnMgaXAgbGluayBzaG93IG1hY3NlYzAKaXAgbmV0bnMgZXhlYyBtYWNzZWNf bnMgaXAgbGluayBzZXQgbWFjc2VjMCB1cAppcCBuZXRucyBleGVjIG1hY3NlY19ucyBpcCBh ZGRyIGFkZCAxNzIuMTYuMTAuMS8yNCBkZXYgbWFjc2VjMAppcCBuZXRucyBleGVjIG1hY3Nl Y19ucyBkbnNtYXNxIC0tcGlkLWZpbGU9L3RtcC9kbnNtYXNxX21zLnBpZCBcCiAgICAgICAg ICAgICAgICAgICAgICAgICAgICAgICAgLS1kaGNwLXJhbmdlPTE3Mi4xNi4xMC4xMCwxNzIu MTYuMTAuMjU0LDYwbSAgXAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIC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