linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Mark Lord <lkml@rtr.ca>
To: Jeff Garzik <jeff@garzik.org>
Cc: "Rafael J. Wysocki" <rjw@sisk.pl>,
	Linux Kernel Mailing List <linux-kernel@vger.kernel.org>,
	Linux Network <linux-net@vger.kernel.org>
Subject: Re: 2.6.25-rc8: FTP transfer errors
Date: Wed, 09 Apr 2008 13:16:13 -0400	[thread overview]
Message-ID: <47FCF9DD.6080007@rtr.ca> (raw)
In-Reply-To: <47FCF2DD.30705@garzik.org>

Jeff Garzik wrote:
> Mark Lord wrote:
>> Mark Lord wrote:
>>> Today I've been using 2.6.25-rc8 with an old embedded build system here
>>> for my empegs.  One shell script calls out to /usr/bin/ftp to transfer
>>> an image to a remote system, and then read it back again and compare.
>>>
>>> The compare is failing, most (but not all) of the time,
>>> but only on 2.6.25-rc8, not on 2.6.24.  Verified by switching
>>> back and forth between kernel versions for a short spell.
>>>
>>> The ftp client is netkit-ftp 0.17-16 on Kubuntu feisty.
>>>
>>> Switching to ncftpput/ncftpget avoids it on 2.6.25,
>>> but I wonder where the problem is.
>> ..
>>
>> Now verified that the data loss occurs in the outbound direction.
>> The readback data is the same, regardless of which client s/w is used.
>>
>> So something in 2.6.25 is incompatible with the ftp client binary, or 
>> libs, that are installed here.  Or some other problem.
> 
> Or maybe it uses sendfile, and that is broken?
..

No, it uses read()/write() calls (from the strace).
Here's the most recent update:

> Recap, with more info:
> 
> The host system is running 2.6.25-rc8-git.  It uses netkit-ftp to
> send a file to the remote system.  Using strace shows that the
> entire file was read, and passed to write() for the outbound socket.
> 
> The remote system is running linux-2.2.xx, and is reporting -EPIPE
> from net/socket.c::sock_recvmsg() before all of the data has been received,
> and thus ends up with a short file, missing data at the end.
> 
> This exact sequence, with the exact same software,
> works fine when the host system is NOT running 2.6.25-*,
> (eg. 2.6.11 through 2.6.24 are fine).
> 
> Something may be broken here.
..

The failing FTP client software issues a close() on the socket after
the final data write().  This close seems to be propagated to the other
end before the data is fully received.

I suppose a wireshark capture is next, once I dig out my ancient hub
so we can sniff it from an independent box.

-ml 


  reply	other threads:[~2008-04-09 17:16 UTC|newest]

Thread overview: 158+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-04-08 23:02 [Bug #10391] 2.6.25-rc7/8: Another resume regression Rafael J. Wysocki
2008-04-09  4:49 ` Mark Lord
2008-04-09  4:56 ` 2.6.25-rc8: FTP transfer errors Mark Lord
2008-04-09 13:37   ` Mark Lord
2008-04-09 14:06     ` Regression: " Mark Lord
2008-04-09 16:46     ` Jeff Garzik
2008-04-09 17:16       ` Mark Lord [this message]
2008-04-09 17:27         ` Regression: " Mark Lord
2008-04-09 17:30         ` YOSHIFUJI Hideaki / 吉藤英明
2008-04-09 19:05           ` Mark Lord
2008-04-09 19:08             ` Jeff Garzik
2008-04-09 22:29             ` David Miller
2008-04-10  0:02               ` Mark Lord
2008-04-10  0:37                 ` Harvey Harrison
2008-04-10 13:52                   ` Gerhard Mack
2008-04-10 15:15                     ` Mark Lord
2008-04-10 15:58                       ` Gerhard Mack
2008-04-10  1:22                 ` David Miller
2008-04-10 15:07                   ` Mark Lord
2008-04-10 15:20                   ` Tilman Schmidt
2008-04-10 22:09                     ` Jesper Juhl
2008-04-10 22:46                       ` David Miller
2008-04-10 22:52                         ` Charlie Brady
2008-04-10 23:02                         ` Jesper Juhl
2008-04-10 23:05                           ` David Miller
2008-04-10 23:10                         ` vincent-perrier
2008-04-10 23:14                           ` David Miller
2008-04-10 23:32                             ` vincent-perrier
2008-04-10 23:41                               ` David Miller
2008-04-10 23:51                                 ` vincent-perrier
2008-04-10 23:39                           ` Jesper Juhl
2008-04-11  0:16                         ` Mark Lord
2008-04-11  0:24                           ` David Miller
2008-04-11  0:27                             ` Mark Lord
2008-04-11  0:39                               ` David Miller
2008-04-11  1:23                                 ` Mark Lord
2008-04-11  6:40                                   ` Ilpo Järvinen
2008-04-11 13:19                                     ` Mark Lord
2008-04-11 14:35                                       ` Evgeniy Polyakov
2008-04-11 14:59                                         ` Mark Lord
2008-04-11 15:18                                           ` Evgeniy Polyakov
2008-04-11 18:07                                             ` David Miller
2008-04-11 21:29                                               ` Evgeniy Polyakov
2008-04-12  8:44                                               ` Willy Tarreau
2008-04-12  9:49                                                 ` David Miller
2008-04-13 18:15                                                   ` Rafael J. Wysocki
2008-04-13 18:51                                                     ` Sergio Luis
2008-04-13 19:24                                                       ` Rafael J. Wysocki
2008-04-11 19:58                                           ` Valdis.Kletnieks
2008-04-11 22:16                                         ` Tilman Schmidt
2008-04-11 22:25                                           ` Evgeniy Polyakov
2008-04-11 22:27                                             ` David Miller
2008-04-11 23:23                                             ` Tilman Schmidt
2008-04-12  5:37                                               ` Evgeniy Polyakov
2008-04-12  7:06                                               ` Ilpo Järvinen
2008-04-11 22:26                                           ` David Miller
2008-04-11 19:58                                   ` Valdis.Kletnieks
2008-04-11 22:27                                     ` Tilman Schmidt
2008-04-13 18:40                                       ` Reporting bugs and bisection (was: Re: 2.6.25-rc8: FTP transfer errors) Rafael J. Wysocki
2008-04-13 18:47                                         ` Willy Tarreau
2008-04-13 19:18                                           ` Andrew Morton
2008-04-13 19:27                                             ` Rafael J. Wysocki
2008-04-13 19:47                                             ` Reporting bugs and bisection David Miller
2008-04-13 20:21                                             ` Reporting bugs and bisection (was: Re: 2.6.25-rc8: FTP transfer errors) Evgeniy Polyakov
2008-04-13 20:33                                               ` Rafael J. Wysocki
2008-04-13 20:54                                                 ` Evgeniy Polyakov
2008-04-13 22:24                                                   ` Reporting bugs and bisection Stephen Clark
2008-04-13 22:41                                                     ` Rafael J. Wysocki
2008-04-13 23:51                                                     ` david
2008-04-14  0:36                                                       ` Jakub Narebski
2008-04-14  4:39                                                       ` Willy Tarreau
2008-04-14  5:39                                                         ` Al Viro
2008-04-14  6:24                                                           ` Andrew Morton
2008-04-14  6:39                                                             ` David Miller
2008-04-14  6:43                                                               ` David Miller
2008-04-14  7:23                                                             ` Al Viro
2008-04-14  7:43                                                               ` Al Viro
2008-04-14  8:04                                                               ` Andrew Morton
2008-04-14  8:30                                                                 ` David Miller
2008-04-14  9:06                                                                   ` Christoph Hellwig
2008-04-14  9:46                                                                   ` Andi Kleen
2008-04-15  5:25                                                                     ` Bill Fink
2008-04-14 10:15                                                                   ` Andrew Morton
2008-04-14 10:41                                                                     ` David Miller
2008-04-14 17:35                                                                       ` Roman Shaposhnik
2008-04-14 12:08                                                                 ` Adrian Bunk
2008-04-14 14:43                                                                 ` Arjan van de Ven
2008-04-14 17:51                                                                   ` Andrew Morton
2008-04-14 18:24                                                                     ` Arjan van de Ven
2008-04-14 19:30                                                                     ` Ilpo Järvinen
2008-04-14 15:54                                                               ` James Morris
2008-04-14 22:01                                                                 ` David Miller
2008-04-14 23:05                                                                   ` Andrew Morton
2008-04-15  4:55                                                                     ` Willy Tarreau
2008-04-15 13:18                                                                       ` Work WAS(Re: " jamal
2008-04-15  9:33                                                                 ` David Newall
2008-04-15  9:54                                                                   ` Michael Kerrisk
2008-04-15 14:04                                                                     ` David Newall
2008-04-15 20:51                                                                       ` Rafael J. Wysocki
2008-04-16  2:34                                                                         ` David Newall
2008-04-16  3:53                                                                           ` david
2008-04-16  9:06                                                                             ` David Newall
2008-04-16 11:02                                                                               ` Andi Kleen
2008-04-16 12:41                                                                             ` Stephen Clark
2008-04-16  4:29                                                                           ` Willy Tarreau
2008-04-16 12:13                                                                             ` Rafael J. Wysocki
2008-04-16 12:15                                                                   ` Sverre Rabbelier
2008-04-16 13:26                                                                     ` Adrian Bunk
2008-04-16 19:02                                                                       ` Andrew Morton
2008-04-16 19:43                                                                         ` Sverre Rabbelier
2008-04-16 19:55                                                                         ` Adrian Bunk
2008-04-17 13:50                                                                           ` J. Bruce Fields
2008-04-17 15:26                                                                             ` Adrian Bunk
2008-04-16 19:58                                                                         ` Alexey Dobriyan
2008-04-16 20:01                                                                         ` Arjan van de Ven
2008-04-16 19:39                                                                       ` Sverre Rabbelier
2008-04-16 20:16                                                                         ` Adrian Bunk
2008-04-16 20:53                                                                           ` Adrian Bunk
2008-04-16 21:05                                                                             ` Sverre Rabbelier
2008-04-16 21:25                                                                               ` Adrian Bunk
2008-04-16 20:04                                                                       ` Willy Tarreau
2008-04-16 20:55                                                                         ` Jakub Narebski
2008-04-16 21:17                                                                     ` Jesper Juhl
2008-04-17 17:04                                                                       ` David Newall
2008-04-17 19:09                                                                         ` Rafael J. Wysocki
2008-04-17 19:35                                                                           ` Ray Lee
2008-04-17 19:57                                                                             ` Sverre Rabbelier
2008-04-17 20:16                                                                             ` Al Viro
2008-04-17 20:38                                                                               ` Ray Lee
2008-04-17 20:53                                                                                 ` Al Viro
2008-04-17 21:01                                                                                   ` Ray Lee
2008-04-14 19:13                                                             ` Rene Herman
2008-04-14 20:38                                                               ` Andrew Morton
2008-04-14 22:18                                                                 ` Rene Herman
2008-04-14  9:26                                                     ` Andi Kleen
2008-04-13 20:35                                               ` David Miller
2008-04-14 10:18                                             ` Reporting bugs and bisection (was: Re: 2.6.25-rc8: FTP transfer errors) Ingo Molnar
2008-04-14 10:29                                               ` Reporting bugs and bisection Andi Kleen
2008-04-13 20:10                                           ` Reporting bugs and bisection (was: Re: 2.6.25-rc8: FTP transfer errors) Adrian Bunk
2008-04-14  9:58                                           ` Reporting bugs and bisection Andi Kleen
2008-04-14 10:00                                             ` Willy Tarreau
2008-04-14 10:16                                               ` Andi Kleen
2008-04-15 21:53                                 ` about bisections (was: Re: 2.6.25-rc8: FTP transfer errors) Ingo Molnar
2008-04-15 22:30                                   ` about bisections David Miller
2008-04-15 22:48                                     ` Ingo Molnar
2008-04-11  0:56                             ` 2.6.25-rc8: FTP transfer errors Tilman Schmidt
2008-04-11  1:08                               ` David Miller
2008-04-11  0:26                           ` David Miller
2008-04-11  0:29                             ` Mark Lord
2008-04-11  2:59                               ` YOSHIFUJI Hideaki / 吉藤英明
2008-04-11  3:18                                 ` [PATCH 2.6.25] net sockets: fix timewait namespace regression Mark Lord
2008-04-11  3:51                                   ` David Miller
2008-04-11  7:50                                 ` 2.6.25-rc8: FTP transfer errors Pavel Emelyanov
2008-04-10 20:46                 ` Ilpo Järvinen
2008-04-10 21:05                   ` Mark Lord
2008-04-10 21:43                     ` Ilpo Järvinen
  -- strict thread matches above, loose matches on Subject: below --
2008-04-12  8:41 devzero
2008-04-13 20:22 ` Adrian Bunk

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=47FCF9DD.6080007@rtr.ca \
    --to=lkml@rtr.ca \
    --cc=jeff@garzik.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=linux-net@vger.kernel.org \
    --cc=rjw@sisk.pl \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).