Received: by 2002:a05:6a10:206:0:0:0:0 with SMTP id 6csp939287pxj; Fri, 21 May 2021 02:43:30 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzfTgV2hhMur5vpFAaPUiFDsSiSsO6HG7vNoD+Spxb2e7yEmUrRH6UD4B/6/wJMCrGdxBvS X-Received: by 2002:a17:906:3ce9:: with SMTP id d9mr9290165ejh.172.1621590209832; Fri, 21 May 2021 02:43:29 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1621590209; cv=none; d=google.com; s=arc-20160816; b=Aar2/UC2ApymtM0snC1791cWyT9eiBtojcheg5yemwfLYoFw4+vylIzUz5cJIzk9Hz 6wYotioZze00cFwLihF89jCTz/2ugSasDbkxcf7stBlQkshapCBBubK8JBuL6pQRwdrp qjcs19lRqb20Tev8JwK+eBxF+t/91XAsNUajCuXJHpPsyajBBCyRyPvO7d34cgMv8S8m oNOODL01zJOnbbJAXlUskCQoWuPwyJLDMBIZVxxaofw/rpaiE5dGSbVe82T347FvjwaE a1AYd8HdH3WH0pAtAFMLkkScewY9oSMSVUmNtWLQIAF3xzLFOZiiMl82NDd9QhdvOrCx Czxw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=Qc7uo/O5utb2kMIPLWGw9DPKRA9ViOGs5UW6bdPsBTI=; b=BK6paSd9Y/VBGaoYnNdyr4wavTEZtCSCxI+3POU11y+SJ1fGiNcAkuYVtThC2rLT91 vJKW4QH3FGnGaGY56XKlJFSC9Ws4f0GDs1yxiCYVv6dCLxCrkbUhTsk2fQWw6yYlAwrz emExpp6oyL4ShCJWfZZokkFvJeOzLKyCD0252n1kzlSP2ZFu2KfIz1QXCfOXUi9LHZPU J74lhvPgIUYNwcuzsQ8NK0jaG+K5ECpYUJ7URxlqXEfMvfiMQtbwb7St3xsEA1a13YfY QS8WxPyFgYMXt3Ee5OK0a3u/Dq9hUGU84dqZgOnny7MqSI1k4lT3Mt5VezbERKq7UNme dM6w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=WxDQgUlC; 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=linuxfoundation.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id p10si5216222ejo.39.2021.05.21.02.43.06; Fri, 21 May 2021 02:43:29 -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=@linuxfoundation.org header.s=korg header.b=WxDQgUlC; 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=linuxfoundation.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230246AbhEUFNg (ORCPT + 99 others); Fri, 21 May 2021 01:13:36 -0400 Received: from mail.kernel.org ([198.145.29.99]:45138 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230176AbhEUFNf (ORCPT ); Fri, 21 May 2021 01:13:35 -0400 Received: by mail.kernel.org (Postfix) with ESMTPSA id CF625611AB; Fri, 21 May 2021 05:12:10 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1621573932; bh=nDpPIcqQ7tMYokIoZEH1bwudVSb8GzAQ6uewYkXjeYQ=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=WxDQgUlC2Rp5mlqnkYJA6djdfSNQA7S11Zmi9Y6dzNSa3plE8YrC7+vhwYdsDZfHm 4ik08XmAb4RB4dDIdIzUR0xy+VA16c56OODn6+27bil2zm0WeBmfy6/o7rZ1xLkofM 98JJbRXPM0XIHsYx3yX44dU2Ej4z9H25QGdNOXJA= Date: Fri, 21 May 2021 07:12:07 +0200 From: Greg Kroah-Hartman To: Jeff Johnson Cc: linux-wireless@vger.kernel.org, Kalle Valo , "David S. Miller" , Jakub Kicinski , Kees Cook , Jason Gunthorpe , Chao Yu , Leon Romanovsky Subject: Re: [PATCH v2] b43: don't save dentries for debugfs Message-ID: References: <20210518163304.3702015-1-gregkh@linuxfoundation.org> <891f28e4c1f3c24ed1b257de83cbb3a0@codeaurora.org> <2eb3af43025436c0832c8f61fbf519ad@codeaurora.org> <48aea7ae33faaafab388e24c3b8eb199@codeaurora.org> <36d75173b785819a4792ccceb5bf26b8@codeaurora.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <36d75173b785819a4792ccceb5bf26b8@codeaurora.org> Precedence: bulk List-ID: X-Mailing-List: linux-wireless@vger.kernel.org On Thu, May 20, 2021 at 03:16:35PM -0700, Jeff Johnson wrote: > On 2021-05-19 09:03, Greg Kroah-Hartman wrote: > > On Wed, May 19, 2021 at 08:57:00AM -0700, Jeff Johnson wrote: > > > Unless debugfs is disabled, like on Android, which is the real > > > problem I'm > > > trying to solve. > > > > Then use some other filesystem to place your relay file in. A relay > > file is not a file that userspace should rely on for normal operation, > > so why do you need it at all? > > > > What tools/operation requires access to this file that systems without > > debugfs support is causing problems on? > > (trimmed some lists) > > For the ath drivers (as well as the out-of-tree Android driver) it is being > used for RF spectral scan which produces a large amount of data that is > processed by a userspace analysis application. And that application requires root access in order to be able to read from the debugfs file today? That feels risky. And doesn't work for Android systems today, right? So what's wrong with just leaving it as-is, debugfs isn't going away on debug Android kernels, which is when you need to run this type of thing, only on the "user builds". And if it's really an issue, take that up with Google, it's their security policy that is driving this, not the community's requirements :) And note, moving files out of debugfs to elsewhere in the system circumvents the reasons that Google is not allowing debugfs anymore, which defeats the purpose entirely of that decision. Are you _sure_ that's a good idea for your users? > I've been looking for an alternate filesystem to use, but am not finding > anything where it appears easy to get a parent dentry, so any clues for the > clueless (me) would be appreciated. I'm not going to tell you how to abuse other filesystems in the kernel, but it shouldn't be all that hard if you really want to do it... good luck! greg k-h