Bug 1047172

Summary: Iperf pretend to listen on a port even if bind fails
Product: [Fedora] Fedora Reporter: Susant Sahani <ssahani>
Component: iperfAssignee: Gabriel Somlo <somlo>
Status: CLOSED ERRATA QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: medium Docs Contact:
Priority: medium    
Version: 20CC: somlo, ssahani
Target Milestone: ---Flags: ssahani: rhel-rawhide?
Target Release: ---   
Hardware: x86_64   
OS: Linux   
Whiteboard:
Fixed In Version: iperf-2.0.5-11.fc20 Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2014-01-21 05:21:38 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Attachments:
Description Flags
patch for exit gracefully none

Description Susant Sahani 2013-12-29 19:19:52 UTC
Description of problem:

 Iperf pretend to listen on a port even if bind fails
Version-Release number of selected component (if applicable):


How reproducible:
easily

Steps to Reproduce:
1. Run iperf below 1024 in non root
 
./iperf -s -p 10
bind failed: Permission denied
------------------------------------------------------------
Server listening on TCP port 10
TCP window size: 85.3 KByte (default)
------------------------------------------------------------

Actual results:
Iperf faking out the listening port

Expected results:
Iperf should exit gracefully

Additional info:
attached patch

Comment 1 Susant Sahani 2013-12-29 19:21:05 UTC
Created attachment 843157 [details]
patch for exit gracefully

Comment 2 Gwyn Ciesla 2014-01-02 12:50:53 UTC
No SCM request found.

Comment 3 Fedora Update System 2014-01-03 20:21:44 UTC
iperf-2.0.5-11.fc20 has been submitted as an update for Fedora 20.
https://admin.fedoraproject.org/updates/iperf-2.0.5-11.fc20

Comment 4 Fedora Update System 2014-01-03 20:23:50 UTC
iperf-2.0.5-11.el6 has been submitted as an update for Fedora EPEL 6.
https://admin.fedoraproject.org/updates/iperf-2.0.5-11.el6

Comment 5 Fedora Update System 2014-01-03 20:24:41 UTC
iperf-2.0.5-11.fc19 has been submitted as an update for Fedora 19.
https://admin.fedoraproject.org/updates/iperf-2.0.5-11.fc19

Comment 6 Fedora Update System 2014-01-03 22:43:56 UTC
Package iperf-2.0.5-11.el6:
* should fix your issue,
* was pushed to the Fedora EPEL 6 testing repository,
* should be available at your local mirror within two days.
Update it with:
# su -c 'yum update --enablerepo=epel-testing iperf-2.0.5-11.el6'
as soon as you are able to.
Please go to the following url:
https://admin.fedoraproject.org/updates/FEDORA-EPEL-2014-0028/iperf-2.0.5-11.el6
then log in and leave karma (feedback).

Comment 7 Fedora Update System 2014-01-21 05:21:38 UTC
iperf-2.0.5-11.el6 has been pushed to the Fedora EPEL 6 stable repository.  If problems still persist, please make note of it in this bug report.

Comment 8 Fedora Update System 2014-01-21 05:52:23 UTC
iperf-2.0.5-11.fc19 has been pushed to the Fedora 19 stable repository.  If problems still persist, please make note of it in this bug report.

Comment 9 Fedora Update System 2014-01-21 05:53:42 UTC
iperf-2.0.5-11.fc20 has been pushed to the Fedora 20 stable repository.  If problems still persist, please make note of it in this bug report.