Skip to contentSkip to conversation

FAILED: patch "[PATCH] debugfs show actual source in /proc/mounts" failed to apply to 6.10-stable tree

PATCH [email protected] 2 participants 4 messages Oct 1, 2024 – Oct 2, 2024

Subsystems (2)
lore
Share & tools
lore

[email protected]

author maintainer
#0 lore raw

The patch below does not apply to the 6.10-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 <[email protected]>.

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.10.y
git checkout FETCH_HEAD
git cherry-pick -x 3a987b88a42593875f6345188ca33731c7df728c
# <resolve conflicts, build, test, etc.>
git commit -s
git send-email --to '<[email protected]>' --in-reply-to '2024100128-prison-ploy-dfd6@gregkh' --subject-prefix 'PATCH 6.10.y' HEAD^..

Possible dependencies:

3a987b88a425 ("debugfs show actual source in /proc/mounts") 49abee5991e1 ("debugfs: Convert to new uid/gid option parsing helpers")

thanks,

greg k-h

------------------ original commit in Linus's tree ------------------

From 3a987b88a42593875f6345188ca33731c7df728c Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Marc=20Aur=C3=A8le=20La=20France?= <[email protected]>
Date: Sat, 10 Aug 2024 13:25:27 -0600
Subject: [PATCH] debugfs show actual source in /proc/mounts
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit

After its conversion to the new mount API, debugfs displays "none" in /proc/mounts instead of the actual source. Fix this by recognising its "source" mount option.

Fixes a20971c18752 ("vfs: Convert debugfs to use the new mount API")
Cc [email protected] # 6.10.x: 49abee5991e1: debugfs: Convert to new uid/gid option parsing helpers
fs/debugfs/inode.c +8 -0
index 91521576f500..66d9b3b4c588 100644
@@ -89,12 +89,14 @@ enum {
 	Opt_uid,
 	Opt_gid,
 	Opt_mode,
+	Opt_source,
 };
 
 static const struct fs_parameter_spec debugfs_param_specs[] = {
 	fsparam_gid	("gid",		Opt_gid),
 	fsparam_u32oct	("mode",	Opt_mode),
 	fsparam_uid	("uid",		Opt_uid),
+	fsparam_string	("source",	Opt_source),
 	{}
 };
 
@@ -126,6 +128,12 @@ static int debugfs_parse_param(struct fs_context *fc, struct fs_parameter *param
 	case Opt_mode:
 		opts->mode = result.uint_32 & S_IALLUGO;
 		break;
+	case Opt_source:
+		if (fc->source)
+			return invalfc(fc, "Multiple sources specified");
+		fc->source = param->string;
+		param->string = NULL;
+		break;
 	/*
 	 * We might like to report bad mount options here;
 	 * but traditionally debugfs has ignored all mount options
#1 lore raw
Quoted 37 lines · On Tue, 2024-Oct-01, [email protected] wrote:

The patch below does not apply to the 6.10-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 <[email protected]>.

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.10.y
git checkout FETCH_HEAD
git cherry-pick -x 3a987b88a42593875f6345188ca33731c7df728c
# <resolve conflicts, build, test, etc.>
git commit -s
git send-email --to '<[email protected]>' --in-reply-to '2024100128-prison-ploy-dfd6@gregkh' --subject-prefix 'PATCH 6.10.y' HEAD^..

Possible dependencies:

3a987b88a425 ("debugfs show actual source in /proc/mounts") 49abee5991e1 ("debugfs: Convert to new uid/gid option parsing helpers")

thanks,

greg k-h

------------------ original commit in Linus's tree ------------------

From 3a987b88a42593875f6345188ca33731c7df728c Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Marc=20Aur=C3=A8le=20La=20France?= <[email protected]>
Date: Sat, 10 Aug 2024 13:25:27 -0600
Subject: [PATCH] debugfs show actual source in /proc/mounts
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit

After its conversion to the new mount API, debugfs displays "none" in /proc/mounts instead of the actual source. Fix this by recognising its "source" mount option.

Quoted 5 lines
Fixes a20971c18752 ("vfs: Convert debugfs to use the new mount API")
Cc [email protected] # 6.10.x: 49abee5991e1: debugfs: Convert to new uid/gid option parsing helpers

... elided.

This is because the commit message should have instead read ...

After commit 0c07c273a5fe ("debugfs: continue to ignore unknown mount options"), debugfs displays "none" in /proc/mounts instead of the actual source. Fix this by recognising its "source" mount option.

Fixes 0c07c273a5fe ("debugfs: continue to ignore unknown mount options")
Cc [email protected] # 6.10.x: 9f111059e725: fs_parse: add uid & gid option option parsing helpers
Cc [email protected] # 6.10.x: 49abee5991e1: debugfs: Convert to new uid/gid option parsing helpers

... along with ...

Marc.

#2 lore raw
Quoted 65 lines · Marc Aurèle La France
Quoted 40 lines · On Tue, 2024-Oct-01, [email protected] wrote:

The patch below does not apply to the 6.10-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 <[email protected]>.

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.10.y
git checkout FETCH_HEAD
git cherry-pick -x 3a987b88a42593875f6345188ca33731c7df728c
# <resolve conflicts, build, test, etc.>
git commit -s
git send-email --to '<[email protected]>' --in-reply-to '2024100128-prison-ploy-dfd6@gregkh' --subject-prefix 'PATCH 6.10.y' HEAD^..

Possible dependencies:

3a987b88a425 ("debugfs show actual source in /proc/mounts") 49abee5991e1 ("debugfs: Convert to new uid/gid option parsing helpers")

thanks,

greg k-h

------------------ original commit in Linus's tree ------------------

From 3a987b88a42593875f6345188ca33731c7df728c Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Marc=20Aur=C3=A8le=20La=20France?= <[email protected]>
Date: Sat, 10 Aug 2024 13:25:27 -0600
Subject: [PATCH] debugfs show actual source in /proc/mounts
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit

After its conversion to the new mount API, debugfs displays "none" in /proc/mounts instead of the actual source. Fix this by recognising its "source" mount option.

Quoted 7 lines

Link:
https://lore.kernel.org/r/[email protected]

Fixes a20971c18752 ("vfs: Convert debugfs to use the new mount API")
Cc [email protected] # 6.10.x: 49abee5991e1: debugfs: Convert to new

uid/gid option parsing helpers

... elided.

This is because the commit message should have instead read ...

After commit 0c07c273a5fe ("debugfs: continue to ignore unknown mount options"), debugfs displays "none" in /proc/mounts instead of the actual source. Fix this by recognising its "source" mount option.

Fixes 0c07c273a5fe ("debugfs: continue to ignore unknown mount options")
Cc [email protected] # 6.10.x: 9f111059e725: fs_parse: add uid & gid

option option parsing helpers
Cc: [email protected] # 6.10.x: 49abee5991e1: debugfs: Convert to new uid/gid option parsing helpers

Quoted 5 lines

... along with ...

Link:
https://lore.kernel.org/r/[email protected]

Oops. That link should be ...

Marc.

author maintainer
#3 lore raw
Quoted 68 lines · Marc Aurèle La France
Quoted 66 lines · Marc Aurèle La France
Quoted 40 lines · On Tue, 2024-Oct-01, [email protected] wrote:

The patch below does not apply to the 6.10-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 <[email protected]>.

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.10.y
git checkout FETCH_HEAD
git cherry-pick -x 3a987b88a42593875f6345188ca33731c7df728c
# <resolve conflicts, build, test, etc.>
git commit -s
git send-email --to '<[email protected]>' --in-reply-to '2024100128-prison-ploy-dfd6@gregkh' --subject-prefix 'PATCH 6.10.y' HEAD^..

Possible dependencies:

3a987b88a425 ("debugfs show actual source in /proc/mounts") 49abee5991e1 ("debugfs: Convert to new uid/gid option parsing helpers")

thanks,

greg k-h

------------------ original commit in Linus's tree ------------------

From 3a987b88a42593875f6345188ca33731c7df728c Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Marc=20Aur=C3=A8le=20La=20France?= <[email protected]>
Date: Sat, 10 Aug 2024 13:25:27 -0600
Subject: [PATCH] debugfs show actual source in /proc/mounts
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit

After its conversion to the new mount API, debugfs displays "none" in /proc/mounts instead of the actual source. Fix this by recognising its "source" mount option.

Quoted 7 lines

Link:
https://lore.kernel.org/r/[email protected]

Fixes a20971c18752 ("vfs: Convert debugfs to use the new mount API")
Cc [email protected] # 6.10.x: 49abee5991e1: debugfs: Convert to new

uid/gid option parsing helpers

... elided.

This is because the commit message should have instead read ...

After commit 0c07c273a5fe ("debugfs: continue to ignore unknown mount options"), debugfs displays "none" in /proc/mounts instead of the actual source. Fix this by recognising its "source" mount option.

Fixes 0c07c273a5fe ("debugfs: continue to ignore unknown mount options")
Cc [email protected] # 6.10.x: 9f111059e725: fs_parse: add uid & gid

option option parsing helpers
Cc: [email protected] # 6.10.x: 49abee5991e1: debugfs: Convert to new uid/gid option parsing helpers

... along with ...

Quoted 7 lines
Quoted 3 lines

Link:
https://lore.kernel.org/r/[email protected]

Oops. That link should be ...

Thanks, looks like Sasha picked these up now.

greg k-h