Received: by 2002:a05:6a10:8c0a:0:0:0:0 with SMTP id go10csp3572899pxb; Mon, 25 Jan 2021 21:56:12 -0800 (PST) X-Google-Smtp-Source: ABdhPJynTwW2q/k1aXsus4XK7gnSnso/b68jcvePLnSTahBxxy3OD2BV4iEg5q6Yzumq+SXP5m4B X-Received: by 2002:a17:906:384c:: with SMTP id w12mr2525805ejc.140.1611640572413; Mon, 25 Jan 2021 21:56:12 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1611640572; cv=none; d=google.com; s=arc-20160816; b=AIlmbBniJ+FYkHFUSJsCyMTRZJgMlHL9w334Vt8CKbiZfHXdzj35M89ccoEpJQooPC 5yukwbNN0uKa7eY5LxsL/svkdKbMfT4NB5nCcZJ/Jp3YHTzzA+KSMUcay2QAc4Wv81CK oDx8LWipgMlD3L6VWm5H2u8j21j4Jn1gKFqaTr23CebWBcmWLElMvev08F96bUe06DJ7 IfBN1afRq7X1b7MvSCymOR7p2wwY+HbPhKRXa5m+49jydP7ZwX5w+/tJK1Fq2MLLrTc6 NpB5rovTJ2XE99OCvIs4CNfA2OHulVeVwuy2boCv4xpm+qr3yz57Pzutlxv/EkOJZ5al CrxA== 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 :user-agent:references:in-reply-to:date:cc:to:from:subject :message-id; bh=78dAC9H/WvH4XixqtMTTW6AXWyHa77bDBAFv8YOIg8c=; b=IT94/NtHke+HPLVoREK4E3ZF/TycGe/WKcCusG/5pSf3Svfm6H8zNMwsCtqvcFcU7H OY0YXxAaW69bf2shuJptO8JIpQ0378+6eJzt5AmmCEEl/Iv9SdnBGkFBgni3RavWVRrH gPNy80zWVasL4mkIz5kioMmDWE7TJBwce7rivsAxBASo99SaLFvoMCs7wtmpOPI4rkLJ X1FcZf5riy51a5RYoingiXcQaga/L9+CDRBIAl0SBZaQpszWeyOW4Znvt4QwQMyAEWJ8 j9Y3KRIvg5FeE11qxZFhmPTKG/CGzYI0Bs3b53WZPr2meqoFJj9Vnwygm8RKWjN4+pmj mQug== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-wireless-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-wireless-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 c14si8372312edr.53.2021.01.25.21.55.49; Mon, 25 Jan 2021 21:56:12 -0800 (PST) Received-SPF: pass (google.com: domain of linux-wireless-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-wireless-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-wireless-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2388091AbhAZFxc (ORCPT + 99 others); Tue, 26 Jan 2021 00:53:32 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:49758 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728192AbhAYMmZ (ORCPT ); Mon, 25 Jan 2021 07:42:25 -0500 Received: from sipsolutions.net (s3.sipsolutions.net [IPv6:2a01:4f8:191:4433::2]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 921D2C0611C3; Mon, 25 Jan 2021 04:40:22 -0800 (PST) Received: by sipsolutions.net with esmtpsa (TLS1.3:ECDHE_SECP256R1__RSA_PSS_RSAE_SHA256__AES_256_GCM:256) (Exim 4.94) (envelope-from ) id 1l41AK-00BPsj-3w; Mon, 25 Jan 2021 13:40:20 +0100 Message-ID: <671b0c37867803d7229ef0c4a33baf2c7778df08.camel@sipsolutions.net> Subject: Re: pull-request: mac80211 2021-01-18.2 From: Johannes Berg To: Hans de Goede , "Peer, Ilan" , "netdev@vger.kernel.org" Cc: "linux-wireless@vger.kernel.org" , "Coelho, Luciano" Date: Mon, 25 Jan 2021 13:40:19 +0100 In-Reply-To: <6c949dbe-5593-2274-7099-c2768b770aad@redhat.com> References: <20210118204750.7243-1-johannes@sipsolutions.net> <77c606d4-a78a-1fa3-5937-b270c3d0bbd3@redhat.com> <348210d8-6940-ca8d-e3b1-f049330a2087@redhat.com> <666b3449fe33d34123255cc69da3aa46fc276dcb.camel@sipsolutions.net> <6c949dbe-5593-2274-7099-c2768b770aad@redhat.com> Content-Type: text/plain; charset="UTF-8" User-Agent: Evolution 3.36.5 (3.36.5-2.fc32) MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-malware-bazaar: not-scanned Precedence: bulk List-ID: X-Mailing-List: linux-wireless@vger.kernel.org Hi, > > I don't have that much sympathy for a staging driver that's clearly > > doing things differently than it was intended (the documentation states > > that the function should be called only before wiphy_register(), not > > during ndo_open). :-) > > I completely understand and I already was worried that this might be > a staging-driver issue, which is why I mentioned this was with a > staging driver in the more detailed bug-report email. I guess I missed that, but no worries. > > But OTOH, that fix to the driver is simple and looks correct to me since > > it only ever has a static regdomain, and the notifier does the work of > > applying it to the channels as well. > > So I've given your fix a quick try and it leads to a NULL pointer deref. Ouch. Oh. I see, that driver is *really* stupid, trying to get to the wiphy from the adapter, but going through the wdev instead ... ouch. Wow are these pointers a mess in that driver ... Something like this, perhaps? https://p.sipsolutions.net/4400d9a3b7b800bb.txt johannes