From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from smtp-out0.aaront.org (smtp-out0.aaront.org [52.10.12.108]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 3B627220F2A for ; Tue, 2 Dec 2025 07:19:05 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=52.10.12.108 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1764659948; cv=none; b=PT5Kp2WqYJSqjx8+Ev59bkK81O+GVZyMQmugPk76AX1rdznO83VUOuyq1j0qHcwq+lHQwUjx4ATOpw+rCX1yTHag7Ylu7/W7OUJLlxReLa8++aRdT566JVf7bbB6WkxxXWXfnTJkHCJFttLyeRiEWwb8gRnZ3tiQSAd4iUkczY0= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1764659948; c=relaxed/simple; bh=pm7O+EmjM2uZme0rmRAw6lqYJoqPaFac4DKFhjriDoQ=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=VO7GSdHvOaFshLn/REfW5EEGMcq72vAoyT5bq1wBsIYj/tbFDQhY/LTFQdhd5AqeloIl4AgwfL8UaSKtyUd2YFUtbaXwBjYzv5tIhbVNPcXe4fDzhMuk6L3yTnD8tq8QymVG5htOAmdbYIbCwpXO5MqIKXCBV8FCc8T6GeqIMyM= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=aaront.org; spf=pass smtp.mailfrom=aaront.org; dkim=permerror (0-bit key) header.d=aaront.org header.i=@aaront.org header.b=kOu2lAIA; dkim=pass (2048-bit key) header.d=aaront.org header.i=@aaront.org header.b=nac6QGwO; arc=none smtp.client-ip=52.10.12.108 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=aaront.org Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=aaront.org Authentication-Results: smtp.subspace.kernel.org; dkim=permerror (0-bit key) header.d=aaront.org header.i=@aaront.org header.b="kOu2lAIA"; dkim=pass (2048-bit key) header.d=aaront.org header.i=@aaront.org header.b="nac6QGwO" Received: from smtp-send0.aaront.org (localhost [IPv6:::1]) by smtp-out0.aaront.org (Postfix) with ESMTP id 4dLBnP3qPCzFK; Tue, 02 Dec 2025 07:13:13 +0000 (UTC) DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/simple; d=aaront.org; h=from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; s=3r7feyyp; bh=pm7O+EmjM2uZme0rmRAw6 lqYJoqPaFac4DKFhjriDoQ=; b=kOu2lAIAaqka1fPCUvu+kMrUEP6SnwLh0alTs TwAoRPzOdjvUq3pFdjaVvDk0zEdGzHlhX2t6TBgmS02X5MDBQ== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=aaront.org; h= from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; s=4x7dsrm2; bh=pm7O+EmjM2uZme0rmRAw6 lqYJoqPaFac4DKFhjriDoQ=; b=nac6QGwOyNfCW4vBMJJVlwBsZUsUpGc0Q1rVP 0Ez+M9zIo5UNrzIBXQQUGeStlypDbw1L5hpavq84ExTsFoB83OGj8KFrAyOiXMwV cg9msDMZ6vo7nhydYnxS9FzDLvmyUDK7Y226Mp3gYnlHefRpxF8PsH+4lN3bjVT0 DiML/Z84aHbYvqIj2/g7dpmfay9qzB4SBJW4BijjDzsic0xoCbLcM2JBn1puqQ2O NaymjQdn4YL7sNayPnX73AF0L9Ye6kxXWr1Qc3XNH9U6mmL2ewoGwR2chQxNhJ/V I0VHy4aJR2WADLCg+hQDXDQOmWZLsVNs+PmfVTwQVFP1yrvTQ== Received: by smtp-send0.aaront.org (Postfix) id 4dLBnP1qX1zFJ; Tue, 02 Dec 2025 07:13:13 +0000 (UTC) From: Aaron Thompson To: Greg Kroah-Hartman , "Rafael J. Wysocki" , Danilo Krummrich Cc: linux-kernel@vger.kernel.org, Aaron Thompson , Mark Brown , Chen-Yu Tsai Subject: [PATCH] debugfs: Fix default access mode config check Date: Tue, 2 Dec 2025 07:12:40 +0000 Message-ID: <20251202070927.14198-1-dev@null.aaront.org> X-Mailer: git-send-email 2.47.3 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit This typo caused debugfs to always behave as if CONFIG_DEBUG_FS_ALLOW_NONE was selected. Fixes: f278809475f6 ("debugfs: Remove broken no-mount mode") Reported-by: Mark Brown Tested-by: Chen-Yu Tsai Signed-off-by: Aaron Thompson --- fs/debugfs/inode.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/fs/debugfs/inode.c b/fs/debugfs/inode.c index 0284b0256195..3b3713fcbbcb 100644 --- a/fs/debugfs/inode.c +++ b/fs/debugfs/inode.c @@ -35,7 +35,7 @@ static struct vfsmount *debugfs_mount; static int debugfs_mount_count; static bool debugfs_registered; -static bool debugfs_enabled __ro_after_init = IS_ENABLED(DEBUG_FS_ALLOW_ALL); +static bool debugfs_enabled __ro_after_init = IS_ENABLED(CONFIG_DEBUG_FS_ALLOW_ALL); /* * Don't allow access attributes to be changed whilst the kernel is locked down base-commit: f278809475f6835b56de78b28dc2cc0c7e2c20a4 -- 2.47.3