From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (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 889B01EBFE0 for ; Sun, 26 Oct 2025 14:37:47 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1761489467; cv=none; b=AEQgBDvV6iUKjUaYo4fiYR/b1f54AsaVEzCnPEsyNN1yW4ilMY6VJwxSJghTT9lZo+8SR53kJyEyyTw3QDZHjDwsTlPAmC3Qsa8dhKuxLDXrMDpTYY7cg+Wv8OLpTNe9jFL0A8PD/YX0rV/IZawSdo0Akzo3sJ1IHSQLlT4Yg7A= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1761489467; c=relaxed/simple; bh=YKpyKJO8HEUUpY4VV8661QMD1VaDKshSAdRExuPGEzE=; h=Subject:To:Cc:From:Date:Message-ID:MIME-Version:Content-Type; b=Yyi8Px2G/u2esUQoCAZ3D8vq1PeIqMZBcEs/WTxhpxmcIZdgomhBqE7FtzBTpwwFAIsVFJc8IXoYHm1hOOQPP3sZjxXs33EJEhFK/eX5gp0E8WzqSKO5xmD03fLeamm//Z9+PKXzPqUxvs0+x6HE/kOBckpTJF1IC+FnlAnUmvM= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=MIzcd7Nl; arc=none smtp.client-ip=10.30.226.201 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b="MIzcd7Nl" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 103FDC4CEE7; Sun, 26 Oct 2025 14:37:46 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1761489467; bh=YKpyKJO8HEUUpY4VV8661QMD1VaDKshSAdRExuPGEzE=; h=Subject:To:Cc:From:Date:From; b=MIzcd7Nl/OyHGHtE/+A3P+JK+WdXg6u3YgKfuMvVo3dZsWd1VtNvyIBSl/DweQr5h 43DE2Rf08KchRYlhab9fvLuz7OGlYbtMztSWSk+6P9foYNfNzhRAhhzRIc0K4UsdyK 4pUnQ0nikUW8wR3Y7tLZ/IQSyQ7E0Z0a4TrtO1X8= Subject: FAILED: patch "[PATCH] xfs: always warn about deprecated mount options" failed to apply to 6.17-stable tree To: djwong@kernel.org,cem@kernel.org,cmaiolino@redhat.com,hch@lst.de Cc: From: Date: Sun, 26 Oct 2025 15:37:44 +0100 Message-ID: <2025102644-leverage-whiny-afee@gregkh> Precedence: bulk X-Mailing-List: stable@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=ANSI_X3.4-1968 Content-Transfer-Encoding: 8bit The patch below does not apply to the 6.17-stable tree. If someone wants it applied there, or to any other stable or longterm tree, then please email the backport, including the original git commit id to . To reproduce the conflict and resubmit, you may use the following commands: git fetch https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git/ linux-6.17.y git checkout FETCH_HEAD git cherry-pick -x 630785bfbe12c3ee3ebccd8b530a98d632b7e39d # git commit -s git send-email --to '' --in-reply-to '2025102644-leverage-whiny-afee@gregkh' --subject-prefix 'PATCH 6.17.y' HEAD^.. Possible dependencies: thanks, greg k-h ------------------ original commit in Linus's tree ------------------ >From 630785bfbe12c3ee3ebccd8b530a98d632b7e39d Mon Sep 17 00:00:00 2001 From: "Darrick J. Wong" Date: Tue, 21 Oct 2025 11:30:12 -0700 Subject: [PATCH] xfs: always warn about deprecated mount options The deprecation of the 'attr2' mount option in 6.18 wasn't entirely successful because nobody noticed that the kernel never printed a warning about attr2 being set in fstab if the only xfs filesystem is the root fs; the initramfs mounts the root fs with no mount options; and the init scripts only conveyed the fstab options by remounting the root fs. Fix this by making it complain all the time. Cc: stable@vger.kernel.org # v5.13 Fixes: 92cf7d36384b99 ("xfs: Skip repetitive warnings about mount options") Signed-off-by: Darrick J. Wong Reviewed-by: Christoph Hellwig Reviewed-by: Carlos Maiolino Signed-off-by: Carlos Maiolino diff --git a/fs/xfs/xfs_super.c b/fs/xfs/xfs_super.c index 9d51186b24dd..c53f2edf92e7 100644 --- a/fs/xfs/xfs_super.c +++ b/fs/xfs/xfs_super.c @@ -1379,16 +1379,25 @@ suffix_kstrtoull( static inline void xfs_fs_warn_deprecated( struct fs_context *fc, - struct fs_parameter *param, - uint64_t flag, - bool value) + struct fs_parameter *param) { - /* Don't print the warning if reconfiguring and current mount point - * already had the flag set + /* + * Always warn about someone passing in a deprecated mount option. + * Previously we wouldn't print the warning if we were reconfiguring + * and current mount point already had the flag set, but that was not + * the right thing to do. + * + * Many distributions mount the root filesystem with no options in the + * initramfs and rely on mount -a to remount the root fs with the + * options in fstab. However, the old behavior meant that there would + * never be a warning about deprecated mount options for the root fs in + * /etc/fstab. On a single-fs system, that means no warning at all. + * + * Compounding this problem are distribution scripts that copy + * /proc/mounts to fstab, which means that we can't remove mount + * options unless we're 100% sure they have only ever been advertised + * in /proc/mounts in response to explicitly provided mount options. */ - if ((fc->purpose & FS_CONTEXT_FOR_RECONFIGURE) && - !!(XFS_M(fc->root->d_sb)->m_features & flag) == value) - return; xfs_warn(fc->s_fs_info, "%s mount option is deprecated.", param->key); }