You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
systemd-sysusers fails with "systemd-sysusers.service: Failed to set up credentials: Invalid argument"
Steps to reproduce the problem
Try to boot a s390x mkosi container
Additional program output to the terminal or log subsystem illustrating the issue
Failed to fork: Invalid argument
systemd-sysusers.service: Failed to set up credentials: Invalid argument
This happens using qemu user mode emulation. Can't say for sure it also happens on a real s390x machine. I confirmed it's clone() that fails with EINVAL when CLONE_NEWNS is set. If I remove CLONE_NEWNS the call to clone() succeeds.
The text was updated successfully, but these errors were encountered:
uh, user mode emulation in qemu is notoriously poor. They need to hook up every single syscall individually for each arch, and there are plenty of mistakes. I'd always assume it's a problem in qemu rather than our code unless proven otherwise...
They should just add a fallback: if the flags combo looks like something that glibc doesn't support they should just call the syscall directly anyway, since apparently that's what the app did.
systemd version the issue has been seen with
Used distribution
Linux kernel version used (
uname -a
)CPU architecture issue was seen on
Expected behaviour you didn't see
Unexpected behaviour you saw
Steps to reproduce the problem
Additional program output to the terminal or log subsystem illustrating the issue
This happens using qemu user mode emulation. Can't say for sure it also happens on a real s390x machine. I confirmed it's clone() that fails with EINVAL when CLONE_NEWNS is set. If I remove CLONE_NEWNS the call to clone() succeeds.
The text was updated successfully, but these errors were encountered: