Received: by 2002:a05:6902:102b:0:0:0:0 with SMTP id x11csp2995592ybt; Mon, 22 Jun 2020 12:10:07 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwsXko5VVJvOp217NXgXNq1+acm1FwWZWy+GdYlLvFAwOk4NbLf53KO2EwRS4T/20l5mYTX X-Received: by 2002:a50:d302:: with SMTP id g2mr18605103edh.312.1592853007223; Mon, 22 Jun 2020 12:10:07 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1592853007; cv=none; d=google.com; s=arc-20160816; b=m4QHZ636H72rfogex00RSmLEKzJPP1uBuhEyofZTJ3/tjfmCiVcv49kBtfWfHU2LPp kK2gplM1q5oL6aQITaTcn0M18zuIBcZj62Djx5vDvJxSZoGlGUsNCk2Q/Qu/9R78neaV X6euyffP4h70xwShQFAmO9N9wBpwIw0GzdPZPybMtHpTbvDVTbTQpPYoUL99mgswMOF6 CFsP7CJ9b5keR+uomLMU2z2JlBiiSrsANlcRRr/Q78W1OlTqYQaX3/mRqn5haQ7wsHW4 7fIuMER9r6BQYej4R5TGklkL5QVmossTmLMukYnMIFfvmfPXkUZ392wwdRdd6S7YIn5l KIfg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:in-reply-to:content-disposition :mime-version:references:message-id:subject:cc:to:from:date :dkim-signature; bh=UjmGbAWKNXWdXTcha081qQYJ1I51k5Rq2yKhZ0UwpxY=; b=aPs4dytDVxk46/s4w/ZP6xA90S1dMuurJS5sBbTwaEtJA8IzhlTV5TQPtdEzuJq4/m Z+avjJhjIRW7HUPDlMiMP8Ja2dgATKZ3l4crkLVJy4kh8U86LweWd9vMe89r+OpnoX8e C05k/NBNXIl9Yj3pZ/ji9JHrTuvW0k3IEE9KcLzW1XLgj95aUJWwhY+NKMdQuU+qUvCE zo2y/S+kb29EZvAysfoGz2nwZVYc/l7g7dg/zsYzeGLXFg45sH2+5KoXD/ZSNSht6x6t cNIcr1cFqtSfMY0AbJGSH1BuerRx11+0zAKWEBsP0pa+RgthRpqyhEXhF+aUAW26zbvP j29A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=qzasOlcG; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-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 cy17si992623edb.152.2020.06.22.12.09.43; Mon, 22 Jun 2020 12:10:07 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-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=@kernel.org header.s=default header.b=qzasOlcG; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726854AbgFVJSP (ORCPT + 99 others); Mon, 22 Jun 2020 05:18:15 -0400 Received: from mail.kernel.org ([198.145.29.99]:46218 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726128AbgFVJSP (ORCPT ); Mon, 22 Jun 2020 05:18:15 -0400 Received: from localhost (83-86-89-107.cable.dynamic.v4.ziggo.nl [83.86.89.107]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id 599BB206D7; Mon, 22 Jun 2020 09:18:14 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1592817494; bh=WT5Ahyyx8i42ZQ7qRM232RE91svh9/PZCmdTtWCUiG8=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=qzasOlcGl3Chi6UQVFm+8GxPrhmg34NRNqqxRvAJDF+mrMVGxHk2JgTsil1So0K0a 1PrNabfWAVL7Wu3jLCpHvgz5njoAbyZvMx3Z3CMpRKf6wI9SGnn/+DupyqSlWD2Ewl If6SAZMB1EZFLX4VnIMb6DabtSLKgqmMPHVyxKLI= Date: Mon, 22 Jun 2020 11:18:09 +0200 From: Greg Kroah-Hartman To: Peter Enderborg Cc: linux-kernel@vger.kernel.org, "Rafael J . Wysocki" , Andrew Morton , Jonathan Corbet , linux-doc@vger.kernel.org, Randy Dunlap , Steven Rostedt , Ingo Molnar Subject: Re: [PATCH 1/2] tracefs: Remove unnecessary debug_fs checks. Message-ID: <20200622091809.GA3396796@kroah.com> References: <20200617133738.6631-1-peter.enderborg@sony.com> <20200622083019.15479-1-peter.enderborg@sony.com> <20200622083019.15479-2-peter.enderborg@sony.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20200622083019.15479-2-peter.enderborg@sony.com> Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, Jun 22, 2020 at 10:30:18AM +0200, Peter Enderborg wrote: > This is a preparation for debugfs restricted mode. > We don't need debugfs to trace, the removed check stop tracefs to work > if debugfs is not initialised. We instead tries to automount within > debugfs and relay on it's handling. The code path is to create a > backward compatibility from when tracefs was part of debugfs, it is now > standalone and does not need debugfs. When debugfs is in restricted > it is compiled in but not active and return EPERM to clients and > tracefs wont work if it assumes it is active it is compiled in > kernel. I'm sorry, but I can't parse this changelog text at all. Why exactly are you doing this? > > Reported-by: kernel test robot > Signed-off-by: Peter Enderborg > --- > kernel/trace/trace.c | 4 +--- > 1 file changed, 1 insertion(+), 3 deletions(-) > > diff --git a/kernel/trace/trace.c b/kernel/trace/trace.c > index ec44b0e2a19c..34ed82364edb 100644 > --- a/kernel/trace/trace.c > +++ b/kernel/trace/trace.c > @@ -8946,9 +8946,7 @@ struct dentry *tracing_init_dentry(void) > if (tr->dir) > return NULL; > > - if (WARN_ON(!tracefs_initialized()) || > - (IS_ENABLED(CONFIG_DEBUG_FS) && > - WARN_ON(!debugfs_initialized()))) > + if (WARN_ON(!tracefs_initialized())) > return ERR_PTR(-ENODEV); > This change makes sense to me anyway, so: Reviewed-by: Greg Kroah-Hartman