From: "David S. Miller" <davem@redhat.com>
To: kuznet@ms2.inr.ac.ru
Cc: benoit-lists@fb12.de, dada1@cosmosbay.com, cgf@redhat.com,
andersg@0x63.nu, lkernel2003@tuxers.net,
linux-kernel@vger.kernel.org, tobi@tobi.nu
Subject: Re: [TEST FIX] Re: SSH Hangs in 2.5.59 and 2.5.55 but not 2.4.x, through Cisco PIX
Date: Tue, 28 Jan 2003 10:35:34 -0800 (PST) [thread overview]
Message-ID: <20030128.103534.115458142.davem@redhat.com> (raw)
In-Reply-To: <200301281409.RAA28740@sex.inr.ac.ru>
From: kuznet@ms2.inr.ac.ru
Date: Tue, 28 Jan 2003 17:09:09 +0300 (MSK)
We apparently have segment of zero length in queue. :-)
Well, that chunk cannot be responsible for this directly, I am afraid
we somewhat arrived to attempt to retransmit already acked segment.
Hmmm, it is one of few places where sequence numbers of already
sent packet are mangled. :-)
Good set of debug checks would be the following:
--- net/ipv4/tcp_output.c.~1~ Mon Jan 27 14:46:33 2003
+++ net/ipv4/tcp_output.c Tue Jan 28 10:47:08 2003
@@ -441,6 +441,9 @@
TCP_SKB_CB(buff)->end_seq = TCP_SKB_CB(skb)->end_seq;
TCP_SKB_CB(skb)->end_seq = TCP_SKB_CB(buff)->seq;
+ BUG_TRAP(TCP_SKB_CB(buff)->seq != TCP_SKB_CB(buff)->end_seq);
+ BUG_TRAP(TCP_SKB_CB(skb)->seq != TCP_SKB_CB(skb)->end_seq);
+
/* PSH and FIN should only be set in the second packet. */
flags = TCP_SKB_CB(skb)->flags;
TCP_SKB_CB(skb)->flags = flags & ~(TCPCB_FLAG_FIN|TCPCB_FLAG_PSH);
@@ -524,6 +527,7 @@
}
TCP_SKB_CB(skb)->seq += len;
+ BUG_TRAP(TCP_SKB_CB(skb)->seq != TCP_SKB_CB(skb)->end_seq);
skb->ip_summed = CHECKSUM_HW;
return 0;
}
@@ -796,6 +800,7 @@
/* Update sequence range on original skb. */
TCP_SKB_CB(skb)->end_seq = TCP_SKB_CB(next_skb)->end_seq;
+ BUG_TRAP(TCP_SKB_CB(skb)->seq != TCP_SKB_CB(skb)->end_seq);
/* Merge over control information. */
flags |= TCP_SKB_CB(next_skb)->flags; /* This moves PSH/FIN etc. over */
next prev parent reply other threads:[~2003-01-28 18:39 UTC|newest]
Thread overview: 38+ messages / expand[flat|nested] mbox.gz Atom feed top
2003-01-24 18:43 SSH Hangs in 2.5.59 and 2.5.55 but not 2.4.x, through Cisco PIX David C Niemi
2003-01-24 20:29 ` David S. Miller
2003-01-24 20:46 ` lost
2003-01-24 21:15 ` Christopher Faylor
2003-01-25 2:00 ` SSH Hangs in 2.5.59 and 2.5.55 (TCP_NODELAY?) Christopher Faylor
2003-01-27 14:27 ` SSH Hangs in 2.5.59 and 2.5.55 but not 2.4.x, through Cisco PIX David C Niemi
2003-01-27 18:06 ` David S. Miller
2003-01-27 18:11 ` David S. Miller
2003-01-27 18:28 ` Anders Gustafsson
2003-01-27 22:36 ` [TEST FIX] " David S. Miller
2003-01-28 2:25 ` lost
2003-01-28 2:57 ` [TEST FIX] Re: SSH Hangs in 2.5.59 and 2.5.55 but not 2.4.x, kuznet
2003-01-28 3:22 ` Christopher Faylor
2003-01-28 3:39 ` [TEST FIX] Re: SSH Hangs in 2.5.59 and 2.5.55 but not 2.4.x, through Cisco PIX Christopher Faylor
2003-01-28 3:55 ` kuznet
2003-01-28 7:08 ` dada1
2003-01-28 12:36 ` Sebastian Benoit
2003-01-28 14:09 ` kuznet
2003-01-28 18:35 ` David S. Miller [this message]
2003-01-28 19:16 ` Sebastian Benoit
2003-01-28 20:34 ` David S. Miller
2003-01-28 21:59 ` Christopher Faylor
2003-01-28 22:12 ` Sebastian Benoit
2003-01-28 23:21 ` David S. Miller
2003-01-29 0:02 ` [TEST FIX] Re: SSH Hangs in 2.5.59 and 2.5.55 but not 2.4.x, kuznet
2003-01-29 0:09 ` kuznet
2003-01-29 0:46 ` Sebastian Benoit
2003-01-29 4:12 ` Christopher Faylor
2003-01-29 6:52 ` David S. Miller
2003-01-28 23:56 ` kuznet
2003-01-29 0:08 ` David S. Miller
2003-01-29 3:14 ` kuznet
2003-01-29 7:32 ` David S. Miller
2003-01-29 14:12 ` David C Niemi
2003-01-29 14:24 ` kuznet
2003-01-29 15:11 ` dada1
2003-02-02 15:40 ` Bill Davidsen
2003-01-27 21:27 ` SSH Hangs in 2.5.59 and 2.5.55 but not 2.4.x, through Cisco PIX Bill Davidsen
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=20030128.103534.115458142.davem@redhat.com \
--to=davem@redhat.com \
--cc=andersg@0x63.nu \
--cc=benoit-lists@fb12.de \
--cc=cgf@redhat.com \
--cc=dada1@cosmosbay.com \
--cc=kuznet@ms2.inr.ac.ru \
--cc=linux-kernel@vger.kernel.org \
--cc=lkernel2003@tuxers.net \
--cc=tobi@tobi.nu \
/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