Received: by 2002:a05:6a10:8c0a:0:0:0:0 with SMTP id go10csp3572820pxb; Mon, 25 Jan 2021 21:55:55 -0800 (PST) X-Google-Smtp-Source: ABdhPJx3M+l8f83yIFmg9dHE0Xjffow8zoqyKscJo2toJqop2bPU7xODyPqgd+qNcOpQPiMQHAuX X-Received: by 2002:a17:906:494c:: with SMTP id f12mr2532605ejt.56.1611640554796; Mon, 25 Jan 2021 21:55:54 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1611640554; cv=none; d=google.com; s=arc-20160816; b=wqdxSm4VqrN7xbRzROZMvo7oWEUKE7ksVs2lXOFo3mqQX4nxSpE3DFKbIlggYtLDxP bCzU4fFdsibURplG1Auo9tGi/EIcS228oczDA0GnS+KofCgNNK41ZQMK0QWApOWSaHWl FKWwBZiiZe1WpDa0zgF141p5fZknDjBfYip+EVg/aiB47M5jBX6Ou6H+MP3+RqdZSW0V Bsyc+y2t9Du5QVmTsyMl2psKOQUTXQxuzCFA2+0PBZmNIt3w8kEOTBdGs/4rJ5ZEFj+R x986zkAosTsVVZhPNTrArwXKCsVBURZCSd9zcllULzEd/NeWFYUoWPHKCivcEdw5qpIY 7W/Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:content-language :in-reply-to:mime-version:user-agent:date:message-id:from:references :cc:to:subject:dkim-signature; bh=vyJ1k8AoxLtkQF8krVeUnvj4TqKQ2T24Y/tcDxbs1Go=; b=gJNk6SeJX2YVHEnRciqCDLn/pZ8B/B7vdCfHKPY17D11PVxlPIOD0STqTpmCLdcGGw D3baFzKsa3GwBEWdTiRr1b1LWE7K+3iG086/2P3Ss6/sxdv61bhQAiYu163L3HOPHU5V rKIjMC7oePT96GkwRtiXUF1YXrTzJsgZLN6T8nnBJ7Cg4mKz2zgcxXVBwLfz3eCL6/a+ h+ei7pNUCUHn4MCXm+EVKSg/sNMPowuZI9EtKjeXZuQG98wMKiGPEe7LSGkHN+NmGf69 AiRMwUqyCLBiEb7KZb8g5XvRC0p/UM2QcPaXJTommGDyhW4uleV1uO5ffdlQhkmYfx77 l1yQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=Wzml19Dk; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=redhat.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id 39si8457222edr.358.2021.01.25.21.55.31; Mon, 25 Jan 2021 21:55:54 -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; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=Wzml19Dk; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=redhat.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1731727AbhAZFxy (ORCPT + 99 others); Tue, 26 Jan 2021 00:53:54 -0500 Received: from us-smtp-delivery-124.mimecast.com ([63.128.21.124]:55650 "EHLO us-smtp-delivery-124.mimecast.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728370AbhAYNAi (ORCPT ); Mon, 25 Jan 2021 08:00:38 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1611579549; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=vyJ1k8AoxLtkQF8krVeUnvj4TqKQ2T24Y/tcDxbs1Go=; b=Wzml19Dkhc5xoh8kP3SpBd3zSasynXb3DRAmQEDFOujg+7u6gkqn4E1s8oXGuaVN/LvidE /jJ+mV63ZfD7b2A2n61K57Qf9ymx+MO3b/seLufk3HtFzRQg53VjRltM4BdK8PVgdRAe8U JEyhrsljo2DftrQVVbmzkf0qNb/I+QY= Received: from mail-ed1-f70.google.com (mail-ed1-f70.google.com [209.85.208.70]) (Using TLS) by relay.mimecast.com with ESMTP id us-mta-528-HJ1mhWUsPnysnaI7yxOWyQ-1; Mon, 25 Jan 2021 07:59:07 -0500 X-MC-Unique: HJ1mhWUsPnysnaI7yxOWyQ-1 Received: by mail-ed1-f70.google.com with SMTP id j12so7319466edq.10 for ; Mon, 25 Jan 2021 04:59:06 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:subject:to:cc:references:from:message-id:date :user-agent:mime-version:in-reply-to:content-language :content-transfer-encoding; bh=vyJ1k8AoxLtkQF8krVeUnvj4TqKQ2T24Y/tcDxbs1Go=; b=Uun/M+El3B/YULrKHWxVPQ0lHaPyn9ee2S8Ku2GJcyOT61EdfuW90ixd+uqDKLewse mRNyoh4af7Z/0u6z5Nsw5bFbOCE1X/uSbGo3rxMRTQQe8uQNUgdYNJCLlQLAAmop7bkj 8XGAqHjzHugQGC5FnMPBMn4/uOthU4JENeTC1ej7Sy3eJLq1ozOWaMNZNH+c7LEw6nmO E0MC518cfBLgnsBBtUasUC0QybYED0RhwqetS7SN9h6xDoPnSSb4Y3/UmC5lsTQCiaaJ VCGz5vq9hpa8S8H6nJUM1NDI3Zqzoeg2b6bQCWri0u/SaP/9pkIbr6ksxXG6GU0rsIfk KMAA== X-Gm-Message-State: AOAM532LOiHgdmpbtzF9AFOF55W3UrRYLQMHWL3WeqvBabUpT2fee/xa jIY7M4kMso4IZA+oNCRXDtNR1VfJKY9ixFJSj/7QbfPkXrL7pJfBo0IQhXVM7e/bJjQoEnuX16z tTw48yaHaGpYkb5+9kyG9z0BJB10= X-Received: by 2002:a17:906:3781:: with SMTP id n1mr288791ejc.296.1611579545761; Mon, 25 Jan 2021 04:59:05 -0800 (PST) X-Received: by 2002:a17:906:3781:: with SMTP id n1mr288787ejc.296.1611579545625; Mon, 25 Jan 2021 04:59:05 -0800 (PST) Received: from x1.localdomain (2001-1c00-0c1e-bf00-37a3-353b-be90-1238.cable.dynamic.v6.ziggo.nl. [2001:1c00:c1e:bf00:37a3:353b:be90:1238]) by smtp.gmail.com with ESMTPSA id dm1sm10226654edb.72.2021.01.25.04.59.04 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Mon, 25 Jan 2021 04:59:04 -0800 (PST) Subject: Re: pull-request: mac80211 2021-01-18.2 To: Johannes Berg , "Peer, Ilan" , "netdev@vger.kernel.org" Cc: "linux-wireless@vger.kernel.org" , "Coelho, Luciano" 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> <671b0c37867803d7229ef0c4a33baf2c7778df08.camel@sipsolutions.net> From: Hans de Goede Message-ID: <92c434bd-bf79-2b49-2a0a-8e538d55551c@redhat.com> Date: Mon, 25 Jan 2021 13:59:03 +0100 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101 Thunderbird/78.6.0 MIME-Version: 1.0 In-Reply-To: <671b0c37867803d7229ef0c4a33baf2c7778df08.camel@sipsolutions.net> Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 7bit Precedence: bulk List-ID: X-Mailing-List: linux-wireless@vger.kernel.org Hi, On 1/25/21 1:40 PM, Johannes Berg wrote: > 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 Yes this fixes things, thank you that saves me from having to debug the NULL ptr deref. Do you want to submit this to Greg, or shall I (I've already added it to me local tree as a commit with you as the author) ? If you want me to submit it upstream, may I have / add your S-o-b for this ? Regards, Hans