| Summary: | ssh-agent enters busy loop when running out of fds | ||||||||
|---|---|---|---|---|---|---|---|---|---|
| Product: | Portable OpenSSH | Reporter: | Jakub Jelen <jjelen> | ||||||
| Component: | ssh-agent | Assignee: | Damien Miller <djm> | ||||||
| Status: | CLOSED FIXED | ||||||||
| Severity: | minor | CC: | djm, dtucker | ||||||
| Priority: | P5 | ||||||||
| Version: | 7.2p1 | ||||||||
| Hardware: | Other | ||||||||
| OS: | Linux | ||||||||
| Bug Depends on: | |||||||||
| Bug Blocks: | 2852 | ||||||||
| Attachments: |
|
||||||||
|
Description
Jakub Jelen
2016-05-30 21:37:38 AEST
Created attachment 2818 [details]
avoid busy-wait on per-process fd exhaustion
This patch should fix the bad behaviour on per-process fd exhaustion, but AFAIK ssh-agent will still spin if the system is globally exhausted.
Thank you for a prompt comment and patch. I build a package and tested successfully. I didn't see any more busy loop nor hang. retarget unfinished bugs to next release retarget unfinished bugs to next release retarget unfinished bugs to next release retarget unfinished bugs to next release OpenSSH 7.4 release is closing; punt the bugs to 7.5 Move incomplete bugs to openssh-7.6 target since 7.5 shipped a while back. To calibrate expectations, there's little chance all of these are going to make 7.6. remove 7.5 target Move to OpenSSH 7.8 tracking bug Created attachment 3142 [details]
updated to current
I rewrote ssh-agent's mainloop from select(2) to poll(2) a little while ago. It makes this diff quite a bit simpler.
Fix committed and will be in OpenSSH 7.8 - thanks Close RESOLVED bugs with the release of openssh-8.0 |