From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id D5EB9C433FE for ; Sat, 26 Mar 2022 00:12:35 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230190AbiCZAOI (ORCPT ); Fri, 25 Mar 2022 20:14:08 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:49988 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230097AbiCZAOH (ORCPT ); Fri, 25 Mar 2022 20:14:07 -0400 Received: from mail-pg1-x529.google.com (mail-pg1-x529.google.com [IPv6:2607:f8b0:4864:20::529]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 1111A1753B6 for ; Fri, 25 Mar 2022 17:12:33 -0700 (PDT) Received: by mail-pg1-x529.google.com with SMTP id c11so7673752pgu.11 for ; Fri, 25 Mar 2022 17:12:33 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20210112; h=date:from:to:cc:subject:message-id:references:mime-version :content-disposition:in-reply-to; bh=Iovdo5gFW3lzHAF30oHCSlnhp9HGhN02yXG4gTQEzBo=; b=IFxbrtw6MX2TzbzPUVW0OZVJ60JT3UsTUf7o84Lwn974qsIPRA2qCnz2AIm3i7ESQ8 AnkP997VGJGbxPrru5B+NrOjHm1pxfwjmGmXLN58bOL6b07IqcO91WmgoMoAmPFWddaH TY5AbGT/zqRrPa9VdHwPq3ebX7UVVx4eZpkEP4nVSMq3bagk1iqieC1TBgJc9hEFdT0e bf1/9DM3ZpDF5+mr1ImJYtt+e1Qo5CJvIJAf6SSEJ5eI2YgahFOcmIveR2IhUtrjiv7y T8MsRFfG/uVLki2FNxm0zZV6afAvOzMYFgt2DVHL0ttdcqAWcKhR80mOobAOwid26BtA U2yg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to; bh=Iovdo5gFW3lzHAF30oHCSlnhp9HGhN02yXG4gTQEzBo=; b=tdinAvKxpqSJ5t0/r+BIKn5szsWbafLVfN8OZYR32HWDbbEYzvkxcauhvxipuZc3sL o8itlHK4y3JpUcqK+9TiL/Hb6H5koiuWaydxpx46Wq8AuvFj4NWNMPyF2HQ6++JsVLub KdqFej0wtfBas5cE6rKFifmERgHM/nTP4DfzXFOZxmWPLrj5Nt6qiq016jBbzzerw83c CWCYn7lxGYI8LJXlie/E0j2nKuUNT3bl5XxP85OIjM5MrcENKhGxUVBpGBxOn70CBuVR iRGTScFTXGHGeYBSzc95/ZrWEsD3auLP1B7fJMHHU7QnPKPAptr5sV/jIdjj9NHVVylP zkEA== X-Gm-Message-State: AOAM531P57ncLLqAZ+1cHOeA41dpYJkD4gJage8uzcYEB8WTlUpJKQAr 7/HL/w6Zwt2uEc/swUCzkwy/gw== X-Google-Smtp-Source: ABdhPJxb+QHc1qDnE+bUQ6UG68K0+VneJg5AtSaOi5mGuIUAaFCbZcanO833Lxs5xzdX6+b4ZdaKeQ== X-Received: by 2002:a05:6a00:4198:b0:4fa:8591:5456 with SMTP id ca24-20020a056a00419800b004fa85915456mr12630644pfb.81.1648253552353; Fri, 25 Mar 2022 17:12:32 -0700 (PDT) Received: from google.com (249.189.233.35.bc.googleusercontent.com. [35.233.189.249]) by smtp.gmail.com with ESMTPSA id o3-20020a056a0015c300b004fb24adc4b8sm1269851pfu.159.2022.03.25.17.12.31 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 25 Mar 2022 17:12:31 -0700 (PDT) Date: Sat, 26 Mar 2022 00:12:28 +0000 From: William McVicker To: Jakub Kicinski Cc: Johannes Berg , linux-wireless@vger.kernel.org, Marek Szyprowski , Kalle Valo , "David S. Miller" , netdev@vger.kernel.org, Amitkumar Karwar , Ganapathi Bhat , Xinming Hu , kernel-team@android.com, Paolo Abeni Subject: Re: [BUG] deadlock in nl80211_vendor_cmd Message-ID: References: <19e12e6b5f04ba9e5b192001fbe31a3fc47d380a.camel@sipsolutions.net> <20220325094952.10c46350@kicinski-fedora-pc1c0hjn.dhcp.thefacebook.com> <976e8cf697c7e5bc3a752e758a484b69a058710a.camel@sipsolutions.net> <20220325170712.69c2c8d3@kicinski-fedora-pc1c0hjn.dhcp.thefacebook.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20220325170712.69c2c8d3@kicinski-fedora-pc1c0hjn.dhcp.thefacebook.com> Precedence: bulk List-ID: X-Mailing-List: netdev@vger.kernel.org On 03/25/2022, Jakub Kicinski wrote: > On Fri, 25 Mar 2022 23:57:33 +0000 William McVicker wrote: > > Instead of open coding it, we could just pass the internal_flags via struct > > genl_info to nl80211_vendor_cmds() and then handle the rtnl_unlock() there if > > the vendor command doesn't request it. I included the patch below in case > > there's any chance you would consider this for upstream. This would at least > > add backwards compatibility to the vendor ops API so that existing drivers that > > depend on the RTNL being held don't need to be fully refactored. > > Sorry to step in, Johannes may be AFK already. There's no asterisk next > to the "we don't cater to out of tree code" rule, AFAIK. We change > locking often, making a precedent like this would be ill-advised. Yeah I understand. I'll talk to Broadcom about this to see why they didn't use the existing upstream NAN interface. This sounds like it's going to be a problem for all the Android out-of-tree drivers. Thanks for the help! --Will