Wind River Support Network

HomeOther DownloadsPatch for a race condition, vsftpd fails to process PASV request from clients.
Optional Type: Patch

Patch for a race condition, vsftpd fails to process PASV request from clients.

Released: Oct 11, 2007     Updated: Oct 11, 2007

Description

Problem Description:
--------------------
A symptom is observed when only one PASV request is successful if vsftpd Server receives multiple requests in a very short period.

Analysis suspects the port number randomly generated by the "gettimeofday" returns the same port number and causing the second port for listening fails.


Steps to Reproduce:
-------------------

1. Adjust the command path as needed in bftp.c
2. Start multiple client sessions.
( you can start with 3 clients )

3. Then in the syslog, the error is reported.


# The errorno = 98 is reported in listen error.
# The result of vsf_sysutil_get_random_byte is the

same when the error occurs.

Fix Description:
----------------

The attached source patch should fix the problem. IDENTIFIER = WIND00102563


Product Version

Linux Platforms 1.x

Downloads


Installation Notes

Installation Notes

Installation Instructions:
--------------------------

1. Copy the patch zip file to your /updates directory
2. Unzip the patch file
3. Go to your /updates/ directory
4. Run setup_linux and install the patch
5. This is a source patch so you will have to rebuild get the patch applied.


Live chat
Online