Bug 61221 - [maintainer update] ftp/bsdftpd-ssl: the problem with sendfile(2)
Summary: [maintainer update] ftp/bsdftpd-ssl: the problem with sendfile(2)
Status: Closed FIXED
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s) (show other bugs)
Version: Latest
Hardware: Any Any
: Normal Affects Only Me
Assignee: freebsd-ports-bugs (Nobody)
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2004-01-11 22:50 UTC by Nick Leuta
Modified: 2004-01-11 23:03 UTC (History)
0 users

See Also:


Attachments
file.diff (1.61 KB, patch)
2004-01-11 22:50 UTC, Nick Leuta
no flags Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Nick Leuta 2004-01-11 22:50:13 UTC
A bug in the sendfile(2) system call has been fixed in FreeBSD at
1 December 2003. The synopsis of the bug is: the data sent with help of
sendfile(2) would be corrupted due to sendfile(2) being erroneously
automatically restarted after a signal is delivered. The fixed sendfile(2)
system call returns the EINTR error, which was not documented earlier.

BSDftpd-ssl 1.0.0 will send the corrupted data in all FreeBSD versions before
1 December 2003 (include RELENG_4_9 and RELENG_5_1 Security Branches). In
FreeBSD versions after 1 December 2003 the data transfer may be aborted with
the next message, because the EINTR error isn't handled:
"426 Data connection: Interrupted system call".

References:
CVS log for src/sys/kern/uipc_syscalls.c:
http://www.freebsd.org/cgi/cvsweb.cgi/src/sys/kern/uipc_syscalls.c
URL for BSDftpd-ssl's Bug Fix Advisory:
http://bsdftpd-ssl.sc.ru/news/bfa_20040112.txt
Comment 1 Kirill Ponomarev freebsd_committer freebsd_triage 2004-01-11 23:03:50 UTC
State Changed
From-To: open->closed

Committed, thanks!