[Bug 390556] Re: openssh-server dos regression in jaunty (oom_adj)

ksuehring suehring at hhi.de
Thu Jun 25 19:01:36 BST 2009


I have done some more investigations on the issue. I found that the
original debian patch still exists in sshd.

The problem is caused by the DHCP initialization of my network interface
during startup. The DHCP request is processed in the background while
the OpenSSH initialization script (and others) are already run. When the
interface comes up,

/etc/network/if-up.d/openssh-server

is run. This scrips restarts sshd using the initialization script.

The problem is that the openssh-server script is run with oom_adj equal
to -17. Thus sshd saves -17 as the target oom_adj value for all child
processes and it appears as if the value would not be reset at all.

I would suggest adding the following line to /etc/network/if-up.d
/openssh-server just before /etc/init.d/sshd restart is invoked:

echo 0 > /proc/self/oom_adj

Please consider adding this fix.

-- 
openssh-server dos regression in jaunty (oom_adj)
https://bugs.launchpad.net/bugs/390556
You received this bug notification because you are a member of Ubuntu
Server Team, which is subscribed to openssh in ubuntu.



More information about the Ubuntu-server-bugs mailing list