sshd stops accepting new connections after configuration reload
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
openssh (Ubuntu) |
Fix Released
|
Critical
|
Robie Basak |
Bug Description
When upstart is enabled, sshd stops accepting new connections after reloading configuration by "initctl reload ssh".
It looks like sshd is frozen with SIGSTOP after receiving SIGHUP.
[nya@sora ~]% ps auxww | grep sshd
root 10557 0.0 0.1 61364 3056 ? Ss 13:46 0:00 /usr/sbin/sshd -D
[nya@sora ~]% sudo strace -p 10557
Process 10557 attached
select(7, [3 4], NULL, NULL, NULL^CProcess 10557 detached
<detached ...>
[nya@sora ~]% sudo reload ssh
[nya@sora ~]% sudo strace -p 10557
Process 10557 attached
--- stopped by SIGSTOP ---
I guess it's caused by a Debian-specific patch: debian/
Reproduced under Ubuntu 14.04 Trusty
Package version: openssh 1:6.6p1-2
Changed in openssh (Ubuntu): | |
assignee: | nobody → Robie Basak (racb) |
Changed in openssh (Ubuntu): | |
status: | Triaged → Fix Committed |
tags: | added: patch |
This is the change I mentioned above: /github. com/nya3jp/ openssh- debian/ commit/ 0334ce32304e9ba 2a10ee5ca49ca6e 8ff3ba6cf4
https:/
As a workaround, I commented out these two lines in /etc/init/ssh.conf:
# env SSH_SIGSTOP=1
# expect stop
Now "initctl reload ssh" works fine, though I'm not really sure I'm doing a "right" thing.