Re: [PATCH] Re: [BUG KERNEL 2.6.20-rc1] ftp: get or put stops during file-transfer

2007-01-09 Thread David Miller
From: YOSHIFUJI Hideaki [EMAIL PROTECTED]
Date: Tue, 09 Jan 2007 14:22:44 +0900 (JST)

 Dave, please apply.  Thank you.
 
 In article [EMAIL PROTECTED] (at Tue, 9 Jan 2007 07:11:39 +0200), Craig 
 Schlenter [EMAIL PROTECTED] says:
 
  All credit goes to Komuro [EMAIL PROTECTED] for tracking
  this down. The patch is untested but it looks *cough* obviously
  correct.
  
  Signed-off-by: Craig Schlenter [EMAIL PROTECTED]
 Signed-off-by: YOSHIFUJI Hideaki [EMAIL PROTECTED]

Applied, thanks everyone.
-
To unsubscribe from this list: send the line unsubscribe netdev in
the body of a message to [EMAIL PROTECTED]
More majordomo info at  http://vger.kernel.org/majordomo-info.html


Re: [BUG KERNEL 2.6.20-rc1] ftp: get or put stops during file-transfer

2007-01-09 Thread Komuro
On Thu, 4 Jan 2007 14:23:30 +0200
Craig Schlenter [EMAIL PROTECTED] wrote:


  --- linux-2.6.20-rc3/net/ipv4/tcp_ipv4.c.orig   2007-01-03 
  11:50:04.0 +0900
  +++ linux-2.6.20-rc3/net/ipv4/tcp_ipv4.c2007-01-03 15:30:44.0 
  +0900
  @@ -648,7 +648,7 @@ static void tcp_v4_send_ack(struct tcp_t
 TCPOLEN_TIMESTAMP);
  rep.opt[1] = htonl(tcp_time_stamp);
  rep.opt[2] = htonl(ts);
  -   arg.iov[0].iov_len = TCPOLEN_TSTAMP_ALIGNED;
  +   arg.iov[0].iov_len = sizeof(rep);
 
 Perhaps this was supposed to be
 arg.iov[0].iov_len += TCPOLEN_TSTAMP_ALIGNED;
 
 That's what the ipv6 stuff does in places.

It works properly.
Thanks!


Best Regards
Komuro

-
To unsubscribe from this list: send the line unsubscribe netdev in
the body of a message to [EMAIL PROTECTED]
More majordomo info at  http://vger.kernel.org/majordomo-info.html


Re: [BUG KERNEL 2.6.20-rc1] ftp: get or put stops during file-transfer

2007-01-08 Thread YOSHIFUJI Hideaki / 吉藤英明
In article [EMAIL PROTECTED] (at Thu, 4 Jan 2007 14:23:30 +0200), Craig 
Schlenter [EMAIL PROTECTED] says:

 On Fri, Jan 05, 2007 at 05:45:46AM +0900, Komuro wrote:
  Hi,
  
  I made a patch below.
  With this patch, the ftp-transfer-stop problem does not happen.
  Therefore, I think this is not a problem of vsftpd.
  
  Mr.YOSHIFUJI san, why did you set TCPOLEN_TSTAMP_ALIGNED
  to iov_len?
  
  
  
  --- linux-2.6.20-rc3/net/ipv4/tcp_ipv4.c.orig   2007-01-03 
  11:50:04.0 +0900
  +++ linux-2.6.20-rc3/net/ipv4/tcp_ipv4.c2007-01-03 15:30:44.0 
  +0900
  @@ -648,7 +648,7 @@ static void tcp_v4_send_ack(struct tcp_t
 TCPOLEN_TIMESTAMP);
  rep.opt[1] = htonl(tcp_time_stamp);
  rep.opt[2] = htonl(ts);
  -   arg.iov[0].iov_len = TCPOLEN_TSTAMP_ALIGNED;
  +   arg.iov[0].iov_len = sizeof(rep);
 
 Perhaps this was supposed to be
 arg.iov[0].iov_len += TCPOLEN_TSTAMP_ALIGNED;
 
 That's what the ipv6 stuff does in places.

Good catch! I agree.
Craig, please provide a patch for us, please.

Thank you again.

--yoshfuji
-
To unsubscribe from this list: send the line unsubscribe netdev in
the body of a message to [EMAIL PROTECTED]
More majordomo info at  http://vger.kernel.org/majordomo-info.html


[PATCH] Re: [BUG KERNEL 2.6.20-rc1] ftp: get or put stops during file-transfer

2007-01-08 Thread Craig Schlenter
Hi Dave

YOSHIFUJI Hideaki / 吉藤英明 has suggested that I send the patch
below to fix the ftp stalls present in the current kernels.

All credit goes to Komuro [EMAIL PROTECTED] for tracking
this down. The patch is untested but it looks *cough* obviously
correct.

Signed-off-by: Craig Schlenter [EMAIL PROTECTED]

Thank you!

--Craig

diff --git a/net/ipv4/tcp_ipv4.c b/net/ipv4/tcp_ipv4.c
index bf7a224..12de90a 100644
--- a/net/ipv4/tcp_ipv4.c
+++ b/net/ipv4/tcp_ipv4.c
@@ -648,7 +648,7 @@ static void tcp_v4_send_ack(struct tcp_timewait_sock *twsk,
   TCPOLEN_TIMESTAMP);
rep.opt[1] = htonl(tcp_time_stamp);
rep.opt[2] = htonl(ts);
-   arg.iov[0].iov_len = TCPOLEN_TSTAMP_ALIGNED;
+   arg.iov[0].iov_len += TCPOLEN_TSTAMP_ALIGNED;
}
 
/* Swap the send and the receive. */
-
To unsubscribe from this list: send the line unsubscribe netdev in
the body of a message to [EMAIL PROTECTED]
More majordomo info at  http://vger.kernel.org/majordomo-info.html


Re: [PATCH] Re: [BUG KERNEL 2.6.20-rc1] ftp: get or put stops during file-transfer

2007-01-08 Thread YOSHIFUJI Hideaki / 吉藤英明
Dave, please apply.  Thank you.

In article [EMAIL PROTECTED] (at Tue, 9 Jan 2007 07:11:39 +0200), Craig 
Schlenter [EMAIL PROTECTED] says:

 All credit goes to Komuro [EMAIL PROTECTED] for tracking
 this down. The patch is untested but it looks *cough* obviously
 correct.
 
 Signed-off-by: Craig Schlenter [EMAIL PROTECTED]
Signed-off-by: YOSHIFUJI Hideaki [EMAIL PROTECTED]
---BeginMessage---
SGkgRGF2ZQ0KDQpZT1NISUZVSkkgSGlkZWFraSAvIOWQieiXpOiLseaYjiBoYXMgc3VnZ2VzdGVk
IHRoYXQgSSBzZW5kIHRoZSBwYXRjaA0KYmVsb3cgdG8gZml4IHRoZSBmdHAgc3RhbGxzIHByZXNl
bnQgaW4gdGhlIGN1cnJlbnQga2VybmVscy4NCg0KQWxsIGNyZWRpdCBnb2VzIHRvIEtvbXVybyA8
a29tdXJvanVuLW1ibkBuaWZ0eS5jb20+IGZvciB0cmFja2luZw0KdGhpcyBkb3duLiBUaGUgcGF0
Y2ggaXMgdW50ZXN0ZWQgYnV0IGl0IGxvb2tzICpjb3VnaCogb2J2aW91c2x5DQpjb3JyZWN0Lg0K
DQpTaWduZWQtb2ZmLWJ5OiBDcmFpZyBTY2hsZW50ZXIgPGNyYWlnQGNvZGVmb3VudGFpbi5jb20+
DQoNClRoYW5rIHlvdSENCg0KLS1DcmFpZw0KDQpkaWZmIC0tZ2l0IGEvbmV0L2lwdjQvdGNwX2lw
djQuYyBiL25ldC9pcHY0L3RjcF9pcHY0LmMNCmluZGV4IGJmN2EyMjQuLjEyZGU5MGEgMTAwNjQ0
DQotLS0gYS9uZXQvaXB2NC90Y3BfaXB2NC5jDQorKysgYi9uZXQvaXB2NC90Y3BfaXB2NC5jDQpA
QCAtNjQ4LDcgKzY0OCw3IEBAIHN0YXRpYyB2b2lkIHRjcF92NF9zZW5kX2FjayhzdHJ1Y3QgdGNw
X3RpbWV3YWl0X3NvY2sgKnR3c2ssDQogCQkJCSAgIFRDUE9MRU5fVElNRVNUQU1QKTsNCiAJCXJl
cC5vcHRbMV0gPSBodG9ubCh0Y3BfdGltZV9zdGFtcCk7DQogCQlyZXAub3B0WzJdID0gaHRvbmwo
dHMpOw0KLQkJYXJnLmlvdlswXS5pb3ZfbGVuID0gVENQT0xFTl9UU1RBTVBfQUxJR05FRDsNCisJ
CWFyZy5pb3ZbMF0uaW92X2xlbiArPSBUQ1BPTEVOX1RTVEFNUF9BTElHTkVEOw0KIAl9DQogDQog
CS8qIFN3YXAgdGhlIHNlbmQgYW5kIHRoZSByZWNlaXZlLiAqLw0K
---End Message---


Re: [BUG KERNEL 2.6.20-rc1] ftp: get or put stops during file-transfer

2007-01-04 Thread Komuro
Hi,

I made a patch below.
With this patch, the ftp-transfer-stop problem does not happen.
Therefore, I think this is not a problem of vsftpd.

Mr.YOSHIFUJI san, why did you set TCPOLEN_TSTAMP_ALIGNED
to iov_len?



--- linux-2.6.20-rc3/net/ipv4/tcp_ipv4.c.orig   2007-01-03 11:50:04.0 
+0900
+++ linux-2.6.20-rc3/net/ipv4/tcp_ipv4.c2007-01-03 15:30:44.0 
+0900
@@ -648,7 +648,7 @@ static void tcp_v4_send_ack(struct tcp_t
   TCPOLEN_TIMESTAMP);
rep.opt[1] = htonl(tcp_time_stamp);
rep.opt[2] = htonl(ts);
-   arg.iov[0].iov_len = TCPOLEN_TSTAMP_ALIGNED;
+   arg.iov[0].iov_len = sizeof(rep);
}
 
/* Swap the send and the receive. */


Best Regards
Komuro

-
To unsubscribe from this list: send the line unsubscribe netdev in
the body of a message to [EMAIL PROTECTED]
More majordomo info at  http://vger.kernel.org/majordomo-info.html


Re: [BUG KERNEL 2.6.20-rc1] ftp: get or put stops during file-transfer

2007-01-01 Thread Komuro

 
 Can you reproduce it with other ftp client and/or server?

I tried the proftpd-1.3.0a-1.fc6(kernel version is 2.6.19).
The ftp stop problem does not happen.

Therefore, this problem is reproduced when
client's kernel-version is 2.6.20-rc1 or later
and server is vsftpd.
Server's kernel-version is not related with this problem.

The ftp-stop-problem happens on client's PC.

Please advise.

Best Regards
Komuro



 

-
To unsubscribe from this list: send the line unsubscribe netdev in
the body of a message to [EMAIL PROTECTED]
More majordomo info at  http://vger.kernel.org/majordomo-info.html


Re: [BUG KERNEL 2.6.20-rc1] ftp: get or put stops during file-transfer

2006-12-30 Thread YOSHIFUJI Hideaki / 吉藤英明
In article [EMAIL PROTECTED] (at Sat, 30 Dec 2006 20:59:31 +0900), Komuro 
[EMAIL PROTECTED] says:

  Do you see similar issue with other simple application?
 
 sorry, I don't reproduce this problem on other application.

Can you reproduce it with other ftp client and/or server?


Anyway...

Please provide the output of netstat -na command during the
transfer, and the output of lsmod | grep conntrack (just for
sure).


More questions:

What kind of mode do you use? e.g. PORT/EPRT/LPRT/PASV/EPSV/LPSV

When the transfer get stuck, are other communication still working?

Are there any workaround?
e.g. stop-start vsftpd cycle, ifdown-ifup cycle, rmmod/insmod cycle etc.


Regards,

--yoshfuji
-
To unsubscribe from this list: send the line unsubscribe netdev in
the body of a message to [EMAIL PROTECTED]
More majordomo info at  http://vger.kernel.org/majordomo-info.html


Re: [BUG KERNEL 2.6.20-rc1] ftp: get or put stops during file-transfer

2006-12-30 Thread Komuro

 Can you reproduce it with other ftp client and/or server?
 
O.K. I wiil try to test other ftp client and server.
 

 Please provide the output of netstat -na command during the
 transfer, and the output of lsmod | grep conntrack (just for
 sure).

Please see the output of netstat -na when stuck. (below)

CONFIG_NETFILER is diabled in my test configuration
,conntrack modules is not loaded.
(CONFIG_IP_DCCP, CONFIG_IP_SCTP, CONFIG_TIPC, CONFIG_IPV6 is
also disabled) 

 
 What kind of mode do you use? e.g. PORT/EPRT/LPRT/PASV/EPSV/LPSV

PASV mode.
 
 When the transfer get stuck, are other communication still working?

Other communication works properly.
Actually, I can start other ftp session on other console of the same PC.

 Are there any workaround?
 e.g. stop-start vsftpd cycle, ifdown-ifup cycle, rmmod/insmod cycle etc.

I only need to do the killall command.


 output of netstat -na

Active Internet connections (servers and established)
Proto Recv-Q Send-Q Local Address   Foreign Address 
State  
tcp0  0 0.0.0.0:873 0.0.0.0:*   
LISTEN  
tcp0  0 0.0.0.0:111 0.0.0.0:*   
LISTEN  
tcp0  0 192.168.0.6:35737   192.168.0.2:26827   
TIME_WAIT   
tcp0  0 192.168.0.6:51036   192.168.0.2:21  
ESTABLISHED 
udp0  0 0.0.0.0:68  0.0.0.0:*   

udp0  0 0.0.0.0:867 0.0.0.0:*   

udp0  0 0.0.0.0:870 0.0.0.0:*   

udp0  0 0.0.0.0:111 0.0.0.0:*   

Active UNIX domain sockets (servers and established)
Proto RefCnt Flags   Type   State I-Node Path
unix  2  [ ACC ] STREAM LISTENING 5056   /tmp/.font-unix/fs7100
unix  2  [ ] DGRAM1234   @/org/kernel/udev/udevd
unix  5  [ ] DGRAM4748   /dev/log
unix  2  [ ACC ] STREAM LISTENING 4917   
/var/run/dbus/system_bus_socket
unix  2  [ ACC ] STREAM LISTENING 4989   /var/run/acpid.socket
unix  2  [ ] DGRAM5390   
unix  3  [ ] STREAM CONNECTED 4920   
unix  3  [ ] STREAM CONNECTED 4919   
unix  2  [ ] DGRAM4866   
unix  2  [ ] DGRAM4756   



Thanks,

Best Regards
Komuro

-
To unsubscribe from this list: send the line unsubscribe netdev in
the body of a message to [EMAIL PROTECTED]
More majordomo info at  http://vger.kernel.org/majordomo-info.html


Re: [BUG KERNEL 2.6.20-rc1] ftp: get or put stops during file-transfer

2006-12-29 Thread Komuro
Hi,

I investigated the ftp-file-transfer-stop problem by git-bisect method,
and found this problem was introduced by
[TCP]: MD5 Signature Option (RFC2385) support patch.

Mr.YOSHIFUJI san, please fix this problem.

commit cfb6eeb4c860592edd123fdea908d23c6ad1c7dc
Author: YOSHIFUJI Hideaki [EMAIL PROTECTED]
Date:   Tue Nov 14 19:07:45 2006 -0800

[TCP]: MD5 Signature Option (RFC2385) support.

Based on implementation by Rick Payne.

Signed-off-by: YOSHIFUJI Hideaki [EMAIL PROTECTED]
Signed-off-by: David S. Miller [EMAIL PROTECTED]

Best Regards
Komuro


 On Sun, Dec 17, 2006 at 11:23:11PM +0900, Komuro wrote:
  On Sun, 17 Dec 2006 04:02:22 +
  Al Viro [EMAIL PROTECTED] wrote:
  
   On Sun, Dec 17, 2006 at 09:27:52PM +0900, Komuro wrote:

Hello,

On kernel 2.6.20-rc1, ftp (get or put) stops
during file-transfer.

Client: ftp-0.17-33.fc6  (192.168.1.1)
Server: vsftpd-2.0.5-8   (192.168.1.3)

This problem does _not_ happen on kernel-2.6.19.
is it caused by network-subsystem change on 2.6.20-rc1??
   
   Do you have NAT between you and server?
  
  No. I don't have NAT between the client and the server.
  Actually, the client and the sever is located in same room.
  
  client -- 100MbpsHub -- server.

-
To unsubscribe from this list: send the line unsubscribe netdev in
the body of a message to [EMAIL PROTECTED]
More majordomo info at  http://vger.kernel.org/majordomo-info.html


Re: [BUG KERNEL 2.6.20-rc1] ftp: get or put stops during file-transfer

2006-12-29 Thread YOSHIFUJI Hideaki / 吉藤英明
In article [EMAIL PROTECTED] (at Sat, 30 Dec 2006 18:50:43 +0900), Komuro 
[EMAIL PROTECTED] says:

 I investigated the ftp-file-transfer-stop problem by git-bisect method,
 and found this problem was introduced by
 [TCP]: MD5 Signature Option (RFC2385) support patch.
 
 Mr.YOSHIFUJI san, please fix this problem.

Hmm, have you try disabling CONFIG_TCP_MD5SIG?
(Is it already disabled?)

Are there any specific size of transfer to reproduce this?
Do you see similar issue with other simple application?

--yoshfuji
-
To unsubscribe from this list: send the line unsubscribe netdev in
the body of a message to [EMAIL PROTECTED]
More majordomo info at  http://vger.kernel.org/majordomo-info.html


Re: [BUG KERNEL 2.6.20-rc1] ftp: get or put stops during file-transfer

2006-12-29 Thread Komuro

 
  I investigated the ftp-file-transfer-stop problem by git-bisect method,
  and found this problem was introduced by
  [TCP]: MD5 Signature Option (RFC2385) support patch.
  
  Mr.YOSHIFUJI san, please fix this problem.
 
 Hmm, have you try disabling CONFIG_TCP_MD5SIG?
 (Is it already disabled?)

This problem happens both CONFIG_TCP_MD5SIG is disabled and enabled.

 Are there any specific size of transfer to reproduce this?

When I do ftp 40Mbytes file for 5-times or more,
 this problem happens.


 Do you see similar issue with other simple application?

sorry, I don't reproduce this problem on other application.

Thanks,

Best Regards
Komuro.
-
To unsubscribe from this list: send the line unsubscribe netdev in
the body of a message to [EMAIL PROTECTED]
More majordomo info at  http://vger.kernel.org/majordomo-info.html


Re: [BUG KERNEL 2.6.20-rc1] ftp: get or put stops during file-transfer

2006-12-18 Thread Komuro

 
 What network cards are in the client and the server?

DL10022-based pcmcia network card(both client and server)
The driver name is pcnet_cs.
 
 Are there any error messages your client gives or in the log files?

no error messages.

I capture the packet of ftp transfer by ethereal.
I found the malformed packet when it stops.

I will investigate it further.

Thanks!

Best Regards
Komuro

-
To unsubscribe from this list: send the line unsubscribe netdev in
the body of a message to [EMAIL PROTECTED]
More majordomo info at  http://vger.kernel.org/majordomo-info.html


Re: [BUG KERNEL 2.6.20-rc1] ftp: get or put stops during file-transfer

2006-12-17 Thread Adrian Bunk
On Sun, Dec 17, 2006 at 11:23:11PM +0900, Komuro wrote:
 On Sun, 17 Dec 2006 04:02:22 +
 Al Viro [EMAIL PROTECTED] wrote:
 
  On Sun, Dec 17, 2006 at 09:27:52PM +0900, Komuro wrote:
   
   Hello,
   
   On kernel 2.6.20-rc1, ftp (get or put) stops
   during file-transfer.
   
   Client: ftp-0.17-33.fc6  (192.168.1.1)
   Server: vsftpd-2.0.5-8   (192.168.1.3)
   
   This problem does _not_ happen on kernel-2.6.19.
   is it caused by network-subsystem change on 2.6.20-rc1??
  
  Do you have NAT between you and server?
 
 No. I don't have NAT between the client and the server.
 Actually, the client and the sever is located in same room.
 
 client -- 100MbpsHub -- server.

What network cards are in the client and the server?

Are there any error messages your client gives or in the log files?

 Thanks!
 
 Best Regards
 Komuro

cu
Adrian

-- 

   Is there not promise of rain? Ling Tan asked suddenly out
of the darkness. There had been need of rain for many days.
   Only a promise, Lao Er said.
   Pearl S. Buck - Dragon Seed

-
To unsubscribe from this list: send the line unsubscribe netdev in
the body of a message to [EMAIL PROTECTED]
More majordomo info at  http://vger.kernel.org/majordomo-info.html