[Bug 3598] Dead lock of sshd and Defunct of sshd

bugzilla-daemon at mindrot.org bugzilla-daemon at mindrot.org
Fri Aug 4 10:17:37 AEST 2023


https://bugzilla.mindrot.org/show_bug.cgi?id=3598

--- Comment #4 from Darren Tucker <dtucker at dtucker.net> ---
(In reply to Damien Miller from comment #3)
> IMO the problem is fundamentally that we're doing operations in a
> signal handler that are unsafe on some platforms.

That's true but I don't think it's the problem here, unless they just
happen to be hitting a signal race at exactly 90s.

> We should probably
> make sigdie() a noop anywhere snprintf()+syslog() are not guaranteed
> to be safe, which AFAIK is everything other than OpenBSD.

Now that privsep is mandatory we could move the LoginGraceTime signal
handler into the privsep child and just have it _exit(somenumber), then
have the monitor read that exit code in its normal event loop and log
from there.  I have most of the code for the monitor side written as
part of another thing.

-- 
You are receiving this mail because:
You are watching someone on the CC list of the bug.
You are watching the assignee of the bug.


More information about the openssh-bugs mailing list