-
-
Notifications
You must be signed in to change notification settings - Fork 14.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
root coredumps warn "Cannot resolve systemd-coredump user" #120803
Comments
Can you reproduce this with a simple c binary you interactively run as root user? |
yes, addendum: if you want a minimal C example that causes it: #include <signal.h>
#include <unistd.h>
int main() {
kill(getpid(), SIGABRT);
} |
still happening regularly due to a bug in openssh (race conditions in process shutdown can cause seccomp filters to trigger) |
I am also observing this problem, both sshd dumping core and the systemd-coredump error when it happens. I can also reproduce it with |
I can confirm I see the log messages:
I looked at
I opened #131948, which does that. |
systemd-coredump tries to drop privileges to a systemd-coredump user if present (and falls back to the root user if it's not available). Create that user, and recycle uid 151 for it. We don't really care about the gid. Fixes NixOS#120803.
Describe the bug
when a root-owned process dumps core (eg recent sshd, due to a known bug) and coredumps are enabled, systemd-coredump warns
Cannot resolve systemd-coredump user. Proceeding to dump core as root: No such process
(but proceeds successfully).To Reproduce
Steps to reproduce the behavior:
timeout -s ABRT 1s cat
)Expected behavior
coredumps succeeds with proper privsep
Screenshots
Additional context
Notify maintainers
@andir @edolstra @flokli @kloenk
Metadata
"x86_64-linux"
Linux 5.10.29, NixOS, 21.05pre282878.652749c4ca7 (Okapi)
yes
yes
nix-env (Nix) 2.3.10
"nixos-21.05pre282878.652749c4ca7"
/nix/var/nix/profiles/per-user/root/channels/nixos
Maintainer information:
The text was updated successfully, but these errors were encountered: