Received: by 2002:a05:6a10:a841:0:0:0:0 with SMTP id d1csp4278310pxy; Tue, 27 Apr 2021 00:44:47 -0700 (PDT) X-Google-Smtp-Source: ABdhPJza5dRku7M1Vh01T0ANAerg/nKwfxO42oCREYpBc3xYZ4oCihVGDkprASGZKtv9c+aUg4dl X-Received: by 2002:a17:907:ea7:: with SMTP id ho39mr22326614ejc.315.1619509487328; Tue, 27 Apr 2021 00:44:47 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1619509487; cv=none; d=google.com; s=arc-20160816; b=N6Q21+0cYBzq0d6HkOepdhAPu77bGDjtEMThlBwt/2cQ5WLB2/maUHhCgkSRC4emsD DnXYSKY9PII7gAqKneFemCvlSMY5/s9iZyLn47mwkgipW2KG/0pjmsAmdypuFFhxftqy pSF9eaqyU2dgHTR9/yNDQcruN5N99ARIUhv60yDiYALwOtPe9W2a+guZnWA5cNi0tGMq hJx3j9n0lHK5deQJGP4cSklutYZo4Ji71UWidz6aQLVln+Ss7pOV/w3H5MShAyORJSV/ AXiItjkI4olx8OQ+YY3kpztqk1GMpwaBVqRCEKRZAzkXSlQLTsuo9v1ore4oRWrHtgpp vO6w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:user-agent:organization:in-reply-to :content-disposition:mime-version:message-id:subject:cc:to:from:date; bh=m3tSGeYjjBgqAo5fDWW7vQ2J6+b12NTYc+VDNlNmGvo=; b=iRjOLmRIFG7xeWEksYMi3JKsVy1VXKqSr3/aw0BpbhRxofyS6CE+BsXVM/C7FCCFQc +YkVAUDJdoGN6xQ22tvlxbjByQcrtP7tIqrxQJVA402WEBvRg0wgVOImLejaJCZKY9xl OI8EydvkWfUXsSwrfH6ueTEo3c/1LOEQic2f2+Zz8Xd9qSI/PVF7TmEo40f0PBGJOfmC k4Vigmt8OIJgrBookoiraZkK0x5xPGO6QNgFsIxnzBp8/P+ShVYldB9upLqHW6Di/MY8 5VMy3Ov8fEpBh8saj/wn6DsZa7kWunsFC+WVrG93WXuhQB8n6zU/OiTKlvsf1URc7Iyb Ng6A== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id s13si1880155edr.450.2021.04.27.00.44.24; Tue, 27 Apr 2021 00:44:47 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S235138AbhD0HoR (ORCPT + 99 others); Tue, 27 Apr 2021 03:44:17 -0400 Received: from helcar.hmeau.com ([216.24.177.18]:54430 "EHLO deadmen.hmeau.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234964AbhD0HoP (ORCPT ); Tue, 27 Apr 2021 03:44:15 -0400 Received: from gondobar.mordor.me.apana.org.au ([192.168.128.4] helo=gondobar) by deadmen.hmeau.com with esmtp (Exim 4.89 #2 (Debian)) id 1lbINQ-0008Em-Br; Tue, 27 Apr 2021 15:43:24 +0800 Received: from herbert by gondobar with local (Exim 4.89) (envelope-from ) id 1lbINN-0002DQ-QE; Tue, 27 Apr 2021 15:43:21 +0800 Date: Tue, 27 Apr 2021 15:43:21 +0800 From: Herbert Xu To: Linus Torvalds Cc: harald@skogtun.org, johannes@sipsolutions.net, linux-kernel@vger.kernel.org, netdev@vger.kernel.org Subject: Re: [BISECTED] 5.12 hangs at reboot Message-ID: <20210427074321.callv22dm4drb2jn@gondor.apana.org.au> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: X-Newsgroups: apana.lists.os.linux.kernel Organization: Core User-Agent: NeoMutt/20170113 (1.7.2) Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Linus Torvalds wrote: > > At a guess, there is some other sequence that takes the rtnl lock, and > then takes the wiphy_lock inside of it, and we have a ABBA deadlock. The most common cause of these lockups is a stray reference on some kind of a network object, e.g., a socket or some such. This then causes the underlying network device to be reference counted and triggers a lock-up if that network device needs to be removed. > I _hate_ that stupid rtnl lock. It's come up before. Several times. > It's probably the most broken lock in the kernel. Yes, it's the networking equivalent of the BKL. Cheers, -- Email: Herbert Xu Home Page: http://gondor.apana.org.au/~herbert/ PGP Key: http://gondor.apana.org.au/~herbert/pubkey.txt