Received: by 2002:a05:6a10:1d13:0:0:0:0 with SMTP id pp19csp269987pxb; Thu, 2 Sep 2021 03:54:47 -0700 (PDT) X-Google-Smtp-Source: ABdhPJx6d62nSeTdTX4yj7szFjcvy1CNnpt4spYqS7pGgv0RBaRRX2BgQgG3OiKjFeOW5PFh3VSK X-Received: by 2002:aa7:de09:: with SMTP id h9mr2950078edv.271.1630580087533; Thu, 02 Sep 2021 03:54:47 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1630580087; cv=none; d=google.com; s=arc-20160816; b=fO3G7BzwJYEiRcO0NhjcIu9mJz3oaAHvlHg2uBT9QFGeA+oOGBKdJ4m0XjZakGCFyi ngHcktHd3HGrOfdxuZZGVmLQVKSH/T2Y1ROkqAheSIe34JHeZCoiGGNs53LPQyWmo4uZ QpMf6VkICOM0u9M1yMP5JjShRpq51OLh/9PvdLoGx1WgCX8ty3De+NYSAJ1QRsT5dZWT BlXgRTEbeoA/t3x0RjdB7SeDRSYHAdpUvirw+6EvaQwx63ySKeWZnbXe9+M1bkwS4zmM oeupPHuv5LlmtalKRe48Py+K59/w3P5abdZ94JqRwnbuItQ3ST1X6otvlhXjzSCktjj+ C07A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:from:subject:cc:to:message-id:date; bh=32cthQT4ItCC5XSiZppUS/As5+Yh2VWXspP/lhRr0xE=; b=CzgBZUkRIDwFaCiz9YLXMlvyLfGuwgmSmBwzG4eOLmMsqJ4v3Sz8X0Hfu3R8hCG5t+ SVEYyQZxEjKQhFgGJUg9CVb8yvWewx5sPen9mEBvsNC4U9CcSYvUUvjn3d+eSEq1A41N 2707t88yNLkaRZE2MVNAo+g/sNcwMAq1W4YKYOkxnVAa1CGhaCd1HvvvDNcUpsF5nKCF UrRRHvW3J8EKj/Lezx/8CA4LgpS/8am9swrJnkMZ7euVJ8lG+XtAJUPbFJ3eAo7/u98D ApiADlXT9AUcQXoF1uNfBQv2KNMPYESygKxai5toK6Gh9AO4E5yEMN6c0IzwJv+XdNTc VuVQ== 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 h22si1744537edt.53.2021.09.02.03.54.24; Thu, 02 Sep 2021 03:54: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 S244522AbhIBKkO (ORCPT + 99 others); Thu, 2 Sep 2021 06:40:14 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:51742 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233714AbhIBKkL (ORCPT ); Thu, 2 Sep 2021 06:40:11 -0400 Received: from mail.monkeyblade.net (shards.monkeyblade.net [IPv6:2620:137:e000::1:9]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id DCC9DC061575; Thu, 2 Sep 2021 03:39:13 -0700 (PDT) Received: from localhost (unknown [149.11.102.75]) by mail.monkeyblade.net (Postfix) with ESMTPSA id E59C44D976A56; Thu, 2 Sep 2021 03:39:09 -0700 (PDT) Date: Thu, 02 Sep 2021 11:39:08 +0100 (BST) Message-Id: <20210902.113908.1070444215922235089.davem@davemloft.net> To: luca@coelho.fi Cc: torvalds@linux-foundation.org, johannes@sipsolutions.net, kuba@kernel.org, kvalo@codeaurora.org, netdev@vger.kernel.org, linux-kernel@vger.kernel.org, gregkh@linuxfoundation.org, miriam.rachel.korenblitz@intel.com Subject: Re: [PATCH] iwlwifi: mvm: add rtnl_lock() in iwl_mvm_start_get_nvm() From: David Miller In-Reply-To: <20210902101101.383243-1-luca@coelho.fi> References: <635201a071bb6940ac9c1f381efef6abeed13f70.camel@intel.com> <20210902101101.383243-1-luca@coelho.fi> X-Mailer: Mew version 6.8 on Emacs 27.1 Mime-Version: 1.0 Content-Type: Text/Plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Greylist: Sender succeeded SMTP AUTH, not delayed by milter-greylist-4.6.2 (mail.monkeyblade.net [0.0.0.0]); Thu, 02 Sep 2021 03:39:12 -0700 (PDT) Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Luca Coelho Date: Thu, 2 Sep 2021 13:11:01 +0300 > From: Luca Coelho > > Due to a rebase damage, we lost the rtnl_lock() when the patch was > sent out. This causes an RTNL imbalance and failed assertions, due to > missing RTNL protection, for instance: > > RTNL: assertion failed at net/wireless/reg.c (4025) > WARNING: CPU: 60 PID: 1720 at net/wireless/reg.c:4025 regulatory_set_wiphy_regd_sync+0x7f/0x90 [cfg80211] > Call Trace: > iwl_mvm_init_mcc+0x170/0x190 [iwlmvm] > iwl_op_mode_mvm_start+0x824/0xa60 [iwlmvm] > iwl_opmode_register+0xd0/0x130 [iwlwifi] > init_module+0x23/0x1000 [iwlmvm] > > Fix this by adding the missing rtnl_lock() back to the code. > > Fixes: eb09ae93dabf ("iwlwifi: mvm: load regdomain at INIT stage") > Signed-off-by: Luca Coelho Linus, please just take this directly, thanks. Acked-by: David S. Miller