All of lore.kernel.org
 help / color / mirror / Atom feed
From: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
To: Aaron Thompson <dev@aaront.org>
Cc: Mark Brown <broonie@kernel.org>,
	"Rafael J. Wysocki" <rafael@kernel.org>,
	Danilo Krummrich <dakr@kernel.org>,
	Jonathan Corbet <corbet@lwn.net>,
	Andrew Morton <akpm@linux-foundation.org>,
	linux-doc@vger.kernel.org, linux-kernel@vger.kernel.org,
	Aishwarya.TCV@arm.com
Subject: Re: [PATCH 2/2] debugfs: Remove broken no-mount mode
Date: Tue, 2 Dec 2025 06:19:32 +0100	[thread overview]
Message-ID: <2025120215-resent-bountiful-0e00@gregkh> (raw)
In-Reply-To: <0101019adbfd6b56-c13ab9c4-a0dd-483c-a6fd-a6ea0d110604-000000@us-west-2.amazonses.com>

On Mon, Dec 01, 2025 at 10:16:49PM +0000, Aaron Thompson wrote:
> On 12/1/25 09:15, Mark Brown wrote:
> > On Thu, Nov 20, 2025 at 10:26:33AM +0000, Aaron Thompson wrote:
> > 
> > > debugfs access modes were added in Linux 5.10 (Dec 2020) [1], but the
> > > no-mount mode has behaved effectively the same as the off mode since
> > > Linux 5.12 (Apr 2021) [2]. The only difference is the specific error
> > > code returned by the debugfs_create_* functions, which is -ENOENT in
> > > no-mount mode and -EPERM in off mode.
> > 
> > I'm seeing regressions in -next in a lot of testing stuff which bisect
> > to this patch.  I've got a test that looks at the deferred probe list to
> > see if it's empty, and the mm split_huge_page_test which uses a debugfs
> > file called split_huge_pages.  Neither of these mount debugfs for
> > themselves, they just assume it'll be there - it looks like that's not
> > happening any more but I didn't investigate properly.
> > 
> > I don't immediately see what's getting confused, DEBUG_FS_ALLOW_ALL is
> > the default and not overridden by anything in any defconfig so
> > debugfs_enabled still ought to be being set, but I didn't actually try
> > to debug this yet.
> > 
> > Sample bisect:
> > 
> > git bisect start
> > # status: waiting for both good and bad commits
> > ...
> > # bad: [f278809475f6835b56de78b28dc2cc0c7e2c20a4] debugfs: Remove broken no-mount mode
> > git bisect bad f278809475f6835b56de78b28dc2cc0c7e2c20a4
> > # first bad commit: [f278809475f6835b56de78b28dc2cc0c7e2c20a4] debugfs: Remove broken no-mount mode
> 
> I am terribly sorry, this was a sloppy mistake on my part. The IS_ENABLED()
> check is missing the CONFIG_ prefix. The fix patch is attached.
> 
> Greg, should I send a v2 of the patch series, or a separate patch with just
> the fix? Or something else? Again, sorry for the trouble.

Just the fix please, I can't rebase my tree.

thanks,

greg k-h

  reply	other threads:[~2025-12-02  5:19 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2025-11-20 10:26 [PATCH 0/2] debugfs: Remove broken no-mount mode Aaron Thompson
2025-11-20 10:26 ` [PATCH 1/2] debugfs: Remove redundant access mode checks Aaron Thompson
2025-11-20 10:26 ` [PATCH 2/2] debugfs: Remove broken no-mount mode Aaron Thompson
2025-12-01 17:15   ` Mark Brown
2025-12-01 22:16     ` Aaron Thompson
2025-12-02  5:19       ` Greg Kroah-Hartman [this message]
2025-12-02  6:01       ` Chen-Yu Tsai

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=2025120215-resent-bountiful-0e00@gregkh \
    --to=gregkh@linuxfoundation.org \
    --cc=Aishwarya.TCV@arm.com \
    --cc=akpm@linux-foundation.org \
    --cc=broonie@kernel.org \
    --cc=corbet@lwn.net \
    --cc=dakr@kernel.org \
    --cc=dev@aaront.org \
    --cc=linux-doc@vger.kernel.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=rafael@kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.