Received: by 2002:a25:1985:0:0:0:0:0 with SMTP id 127csp1600955ybz; Thu, 23 Apr 2020 01:58:37 -0700 (PDT) X-Google-Smtp-Source: APiQypKKVSTmVQl2xX7QNh+aSe0pZnMF6BzoZewJOa6mMqb2UTgvVQdqBLVhBdnbLDVpD7mqYkMd X-Received: by 2002:a50:9f8f:: with SMTP id c15mr1669270edf.377.1587632317477; Thu, 23 Apr 2020 01:58:37 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1587632317; cv=none; d=google.com; s=arc-20160816; b=Za6pCa+TZ1eVcYrewHx2qdZkGlHwt5O0DI4No8+J7WIivye8boSvIyJsNlbIuOMlim Tg0rlX+Dyh8SkNwcDp+o9ZnFwWeSuuAYE4xsuZV8ZEHGqas3c3mCviEP9fwUut2FwgpB F9s18crSZaH1QdV/yNzn+RnhYAqGDewzMLBrjZSVhYE5ety7VPPaJKHimvbgkBUng0of 3RdeOJXvIkNpiFlb4UU3QrZz+ufhmTacGMdUwvRN+bo2hYNbS0jMeC4RsGPNk/wKtQFq U7SsUmVr+AxZd5QY9MY6tDveiUp+UNYK2UjDXvTlx0Yda/o4pbDiAVThdpAgOTuAntJj /XZA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:dkim-signature; bh=6fxS0sRpVzeKpCQ9DZnK+D9PrkbIMQB8wAa4rtLJMqE=; b=ioozVwpCp09ERukwZ2bZBMiITotDeYGODOQPg7JhSWQpEXkTfqzcMxmYC8oJOhtPho Hkb1beHliOh8jZlELr/dkH7pH3wR+v0YkidV+t6LjyA4BUbsVqhSgTwP0EMcg4rojukT RSCpiwcqjADX/lvzY/Yg5iUY5lUjVPMk3rf/Elvrrn1/BV1/4OHE/2OZundbMfCI+x6p A+/kM0qMsA8oSb/NiplJyO7smPvHtAgwCZMXCsy/VoSgsdergEIPlFDZDf9iy4XO/ezM l9tQfhIdb+sU2aP+V4dO2GnCtvaegOrfQsNcrnTNWbQkRPUXD85E8m/dIffV/O+M+m5/ 4jcA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=lXNwYcxS; 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=linaro.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id l20si895841ejr.179.2020.04.23.01.58.04; Thu, 23 Apr 2020 01:58:37 -0700 (PDT) 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=@linaro.org header.s=google header.b=lXNwYcxS; 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=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726420AbgDWI5u (ORCPT + 99 others); Thu, 23 Apr 2020 04:57:50 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:48552 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726375AbgDWI5u (ORCPT ); Thu, 23 Apr 2020 04:57:50 -0400 Received: from mail-lj1-x241.google.com (mail-lj1-x241.google.com [IPv6:2a00:1450:4864:20::241]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id CF684C08C5F2 for ; Thu, 23 Apr 2020 01:57:49 -0700 (PDT) Received: by mail-lj1-x241.google.com with SMTP id e25so5389155ljg.5 for ; Thu, 23 Apr 2020 01:57:49 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=6fxS0sRpVzeKpCQ9DZnK+D9PrkbIMQB8wAa4rtLJMqE=; b=lXNwYcxSWOrjXhcUeHFZcVlJZq8SpERhMm4ytefHKx+nnKvdqFjIvzm+rBilHJXWp2 Tk1wX3ZuyWvaqpyZoWhpekIvt/xq1e1DkUaybqHXx4pcAb0HFqgkwmEUeoKgSFieYXdd CbYbFpoQ7KtPXjKvVXFFXULBd7BJJzSTM6X5D+bY6SkcfGetjPkdlONG7JnsJs65yD9T EtQ2C2hfg7atxbRVbIHNxzx70P43AnMkYAHP9AxGE8DUmYsOz/q4auqeUSIT3mnIDuit 268kEZdcWCAnLwkb2K7SjdmiC9fcGPCfgA9beulLNMRcIzwhIiWjMwvhpNRT7US4BrAR 9gNA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=6fxS0sRpVzeKpCQ9DZnK+D9PrkbIMQB8wAa4rtLJMqE=; b=XORoaq2CaS37omtVzQxJyH/E8DRAKS/MUc3DttQNkjsHf6hzuyLnSFapHL3bbyDx7t lV8Zdv2JeFdioCLoF+FyM2BmsC3sbbXILl770f0m369yQMuADiTIGDciJq+hLxtdqRDU 1sWmsRobuyzyYnr8blbhShD849sN7z5C6qksjOeD5Aa5RKqUGxp3kIV2uRXSRPnSrshQ m5wY3m5khRdgYiGUZDLoirXB+PAO1htqBVz9PIiSHAP2+zWOS29tmhBV27HnbTjYO1CP /145+yQQKI6Se8r/m75xGAwDakDsGAAeBCAU+JmTc2oE9hr92hax3bOPvzGtaWcT5uBr U+aQ== X-Gm-Message-State: AGi0PubVkvAMlHuXiMMgTrXKGmAoBI2Iw/y7bJybE0bFlEV5XuQ1TD+E wTxvyqcp9YtXKsrUQAjN+ZJ68iBvA1TdLJDMZN6XRQ== X-Received: by 2002:a2e:b8c1:: with SMTP id s1mr1880474ljp.0.1587632268278; Thu, 23 Apr 2020 01:57:48 -0700 (PDT) MIME-Version: 1.0 References: <885ae3bffad315445be3fc70cccade9067ee6937.camel@sipsolutions.net> In-Reply-To: <885ae3bffad315445be3fc70cccade9067ee6937.camel@sipsolutions.net> From: Sumit Garg Date: Thu, 23 Apr 2020 14:27:36 +0530 Message-ID: Subject: Re: Commit "mac80211: fix race in ieee80211_register_hw()" breaks mac80211 debugfs To: Johannes Berg Cc: Hauke Mehrtens , linux-wireless , Felix Fietkau , stable Content-Type: text/plain; charset="UTF-8" Sender: linux-wireless-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-wireless@vger.kernel.org Hi Johannes, On Thu, 23 Apr 2020 at 13:29, Johannes Berg wrote: > > Hi Hauke, Sumit, > > > > Felix reported that the file /sys/kernel/debug/ieee80211/phy0/rc is now > > > located at /sys/kernel/debug/rc. > > Yeah, we noticed this the other day too. > > > +++ b/net/wireless/core.c > > @@ -473,6 +473,10 @@ struct wiphy *wiphy_new_nm(const struct > > cfg80211_ops *ops, int sizeof_priv, > > } > > } > > > > + /* add to debugfs */ > > + rdev->wiphy.debugfsdir = debugfs_create_dir(wiphy_name(&rdev->wiphy), > > + ieee80211_debugfs_dir); > > This cannot work, we haven't committed to the name of the wiphy yet at > this point. Maybe I am missing something, can you please elaborate here? Looking at the code, the default or requested wiphy name is configured just above this and the rename API "cfg80211_dev_rename()" takes care of renaming wiphy debugfs directory too. -Sumit > > I have some fixes, I'll send them out asap. > > johannes >