I looked into this some more and I think this is a bcachefs bug. It does not do
any escaping for the mountinfo options. This is done by other filesystems like
ext4. The following might fix it:
"""
diff --git a/fs/bcachefs/opts.c b/fs/bcachefs/opts.c
index 8db8096e5ed4..4ebe557dfbaf 100644
--- a/fs/bcachefs/opts.c
+++ b/fs/bcachefs/opts.c
@@ -242,11 +242,11 @@ int bch2_opt_to_text(struct bch_fs *c, char *buf, size_t
len,
if (flags & OPT_SHOW_MOUNT_STYLE) {
if (opt->type == BCH_OPT_BOOL)
- return scnprintf(out, end - out, "%s%s",
+ return scnprintf(out, end - out, "%pEc%s",
v ? "" : "no",
opt->attr.name);
- out += scnprintf(out, end - out, "%s=", opt->attr.name);
+ out += scnprintf(out, end - out, "%pEc=", opt->attr.name);
}
switch (opt->type) {
diff --git a/fs/bcachefs/util.c b/fs/bcachefs/util.c
index fa8537502fed..ca524bac27b0 100644
--- a/fs/bcachefs/util.c
+++ b/fs/bcachefs/util.c
@@ -115,7 +115,7 @@ ssize_t bch2_scnprint_string_list(char *buf, size_t size,
for (i = 0; list[i]; i++)
out += scnprintf(out, buf + size - out,
- i == selected ? "[%s] " : "%s ", list[i]);
+ i == selected ? "[%pEc] " : "%pEc ", list[i]);
if (out != buf)
*--out = '\0';
"""
Or it might crash your kernel. If it helps we should send it to the bcachefs
mailing list. I think this should also be turned an upstream bcachefs bugreport
(probably via the bcachefs mailinglist?).
--
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1763266
Title:
Snapd fails to start (failed to parse /proc/self/mountinfo)
To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/snapd/+bug/1763266/+subscriptions
--
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs