Created attachment 527202 [details] tool to reproduce problem Description of problem: systemd-logind goes into an infinite loop in an error path if more than 1024 SSH connections are opened to the machine. Version-Release number of selected component (if applicable): systemd-36-4.fc16.x86_64 How reproducible: Always Steps to Reproduce: 1. sudo java -Xmx1024m -jar bork.jar hostname username password Actual results: After 1024 connections, system-logind goes into a loop, consumes a large amount of CPU and logging in to the system takes about a minute Expected results: systemd-logind shouldn't run into problems with 1024 connections. Additional info: Discussed here: http://lists.freedesktop.org/archives/systemd-devel/2011-October/003560.html Code for the bork program: package bork; import java.io.IOException; import java.util.ArrayList; import ch.ethz.ssh2.Connection; public final class Bork { public static void main(String[] args) throws IOException, InterruptedException { if (args.length != 3) { System.err.println("Usage: java -jar bork.jar hostname username password"); System.exit(1); } String hostname = args[0]; String user = args[1]; String password = args[2]; ArrayList<Connection> conns = new ArrayList<Connection>(); for (int i = 0; i < 2048; i++) { Connection conn = new Connection(hostname); conn.connect(); conn.authenticateWithPassword(user, password); conns.add(conn); } } }
systemd-37-1.fc16 has been submitted as an update for Fedora 16. https://admin.fedoraproject.org/updates/systemd-37-1.fc16
Package systemd-37-1.fc16: * should fix your issue, * was pushed to the Fedora 16 testing repository, * should be available at your local mirror within two days. Update it with: # su -c 'yum update --enablerepo=updates-testing systemd-37-1.fc16' as soon as you are able to, then reboot. Please go to the following url: https://admin.fedoraproject.org/updates/FEDORA-2011-14239 then log in and leave karma (feedback).
Package systemd-37-2.fc16: * should fix your issue, * was pushed to the Fedora 16 testing repository, * should be available at your local mirror within two days. Update it with: # su -c 'yum update --enablerepo=updates-testing systemd-37-2.fc16' as soon as you are able to, then reboot. Please go to the following url: https://admin.fedoraproject.org/updates/FEDORA-2011-14239 then log in and leave karma (feedback).
This package has changed ownership in the Fedora Package Database. Reassigning to the new owner of this component.
Package systemd-37-3.fc16: * should fix your issue, * was pushed to the Fedora 16 testing repository, * should be available at your local mirror within two days. Update it with: # su -c 'yum update --enablerepo=updates-testing systemd-37-3.fc16' as soon as you are able to, then reboot. Please go to the following url: https://admin.fedoraproject.org/updates/FEDORA-2011-14239 then log in and leave karma (feedback).
systemd-37-3.fc16 has been pushed to the Fedora 16 stable repository. If problems still persist, please make note of it in this bug report.