#1086194 user-mode-linux version 6.11um1 breaks fakemachine -b uml --show-boot

Package:
user-mode-linux
Source:
user-mode-linux
Description:
User-mode Linux (kernel)
Submitter:
Jochen Sprickerhof
Date:
2024-11-06 11:57:01 UTC
Severity:
normal
Tags:
#1086194#5
Date:
2024-10-28 18:34:38 UTC
From:
To:
Hi,

the latest user-mode-linux breaks fakemachine and thus debos. Reverting
to 6.10um1 fixes it:

$ fakemachine -b uml --show-boot
[..]
systemd[1]: systemd-remount-fs.service: Main process exited, code=exited, status=1/FAILURE
systemd[1]: systemd-remount-fs.service: Failed with result 'exit-code'.
systemd-journald[763]: Collecting audit messages is disabled.
systemd[1]: Failed to start systemd-remount-fs.service - Remount Root and Kernel File Systems.
[FAILED] Failed to start systemd-remount-fs.service - Remount Root and Kernel File Systems.
[..]
         Mounting scratch.mount - /scratch...
[FAILED] Failed to mount etc-alternatives.mount - /etc/alternatives.
See 'systemctl status etc-alternatives.mount' for details.
[DEPEND] Dependency failed for local-fs.target - Local File Systems.
[FAILED] Failed to mount etc-dbus\x2d1.mount - /etc/dbus-1.
See 'systemctl status "etc-dbus\\x2d1.mount"' for details.
[FAILED] Failed to mount etc-java.mount - /etc/java.
See 'systemctl status etc-java.mount' for details.
[FAILED] Failed to mount etc-java\x2d21\x2dopenjdk.mount - /etc/java-21-openjdk.
See 'systemctl status "etc-java\\x2d21\\x2dopenjdk.mount"' for details.
[FAILED] Failed to mount etc-ssl.mount - /etc/ssl.
See 'systemctl status etc-ssl.mount' for details.
[FAILED] Failed to mount run-fakemachine.mount - /run/fakemachine.
See 'systemctl status run-fakemachine.mount' for details.
[FAILED] Failed to mount etc-ca\x2dcertificates.mount - /etc/ca-certificates.
See 'systemctl status "etc-ca\\x2dcertificates.mount"' for details.
[..]
You are in emergency mode. After logging in, type "journalctl -xb" to view
system logs, "systemctl reboot" to reboot, or "exit"
to continue bootup.
Give root password for maintenance
(or press Control-D to continue):

Cheers Jochen

#1086194#10
Date:
2024-10-29 05:35:50 UTC
From:
To:
I'd need more information. I'm presuming it isn't happening on just UML ?

In your logs, there's not much information other than the mount failures
from within.

It'd be helpful if you could dig some more details

s3nt fr0m a $martph0ne, excuse typ0s

#1086194#15
Date:
2024-10-29 05:35:50 UTC
From:
To:
I'd need more information. I'm presuming it isn't happening on just UML ?

In your logs, there's not much information other than the mount failures
from within.

It'd be helpful if you could dig some more details

s3nt fr0m a $martph0ne, excuse typ0s

#1086194#20
Date:
2024-10-29 12:09:53 UTC
From:
To:
No, "fakemachine -b kvm" works fine.  It's just UML.

(I see this too, and it broke part of debusine's CI the day that the new
user-mode-linux landed in testing.)

Jochen dug out https://pastebin.mozilla.org/iRqZcQLd from fakemachine,
although I'm not sure exactly how he did that.  It looks as though
virtfs mounts are broken with the new UML.

#1086194#25
Date:
2024-10-29 16:21:27 UTC
From:
To:
Hi Ritesh,

* Colin Watson <cjwatson@debian.org> [2024-10-29 12:09]:

I think it is hostfs and I guess it is related to the new mount API
discussed here:

https://lore.kernel.org/all/CANP3RGceNzwdb7w=vPf5=7BCid5HVQDmz1K5kC9JG42+HVAh_g@mail.gmail.com/

A minimal reproduce is:

$ mmdebstrap --variant=essential --include=init --customize-hook='passwd -d --root "$1" root' unstable unstable.ext4
$ linux ubd0=unstable.ext4 systemd.unit=rescue.target

# inside UML

Press Enter for maintenance
(or press Control-D to continue):
root@host:~# mount none /mnt/host -t hostfs
mount: /mnt/host: fsconfig system call failed: Bad address.
        dmesg(1) may have more information after failed mount system call.
root@host:~# mount none /mnt/home -t hostfs -o /home
mount: /mnt/home: fsconfig system call failed: hostfs: Unknown parameter '/home'.
        dmesg(1) may have more information after failed mount system call.

Cheers Jochen

#1086194#30
Date:
2024-10-30 06:02:17 UTC
From:
To:
Control: tags -1 +confirmed
Thank you. I can confirm the same on my local setup as well.


```
[  OK  ] Finished systemd-journal-flush.service - Flush Journal to
Persistent Storage.
[FAILED] Failed to mount usr-lib-modules.mount - /usr/lib/modules.
See 'systemctl status usr-lib-modules.mount' for details.
[DEPEND] Dependency failed for local-fs.target - Local File Systems.
[FAILED] Failed to mount var-tmp-Debian\x2dBuild.mount -
/var/tmp/Debian-Build.
See 'systemctl status "var-tmp-Debian\\x2dBuild.mount"' for details.
```

and

```
Oct 30 05:57:41 uml systemd[1]: Mounting usr-lib-modules.mount -
/usr/lib/modules...
Oct 30 05:57:42 uml systemd[1]: usr-lib-modules.mount: Mount process
exited, code=exited, status=32/n/a
Oct 30 05:57:42 uml mount[814]: mount: /usr/lib/modules: fsconfig
system call failed: hostfs: Unknown parameter '/usr/lib/uml/modules'.
Oct 30 05:57:42 uml mount[814]:        dmesg(1) may have more
information after failed mount system call.
Oct 30 05:57:42 uml systemd[1]: usr-lib-modules.mount: Failed with
result 'exit-code'.
Oct 30 05:57:42 uml systemd[1]: Failed to mount usr-lib-modules.mount -
/usr/lib/modules.

```

I will check on what is the path ahead.

Thanks,
Ritesh