Skip to contentSkip to conversation

possible bug in tcp_input.c

DISCUSSION Andi Kleen 2 participants 3 messages Oct 24, 2003 – Nov 18, 2003 1 message not in the archive

Subsystems (2)
lore
Share & tools
lore

A message that is not in the archive (sent off-list or not yet received): 20031024162959.GB11154@louise.pinerecords.com.suse.lists.linux.kernel

Andi Kleen

author
#1 lore raw
Quoted 5 lines · Tomas Szepe

/* tcp_input.c, line 1138 */
static inline int tcp_head_timedout(struct sock *sk, struct tcp_opt *tp) {
return tp->packets_out && tcp_skb_timedout(tp, skb_peek(&sk->write_queue));
}

tp->packets_out > 0 implies that there is at least one packet in the write queue (it counts the number of unacked packets in flight, which are kept in the write queue). When that's not the case something else is wrong.

-Andi

#2 lore raw
Quoted 9 lines · On Oct-24 2003, Fri, 19:57 +0200 Andi Kleen <[email protected]> wrote:
Quoted 5 lines

/* tcp_input.c, line 1138 */
static inline int tcp_head_timedout(struct sock *sk, struct tcp_opt *tp) {
return tp->packets_out && tcp_skb_timedout(tp, skb_peek(&sk->write_queue));
}

tp->packets_out > 0 implies that there is at least one packet in the write queue (it counts the number of unacked packets in flight, which are kept in the write queue). When that's not the case something else is wrong.

Yes, that's exactly what davem said. The corruption is happening somewhere in netsched/imq code that's not even part of the official kernel tree (and I'm told there's nobody to maintain the patch at present).

Thanks,

Signature · 8 lines
Tomas Szepe <[email protected]>

P.S.  I can post the patchset we've been using on the crashing machines
in case someone's interested, it's reasonably short:

      9101 Jul  6 11:48 bridge-nf-0.0.7-against-2.4.22pre3.diff.gz
      4123 Jul  6 11:14 imq-2.4.22pre3-1.diff.gz
      1883 Jul  6 12:01 imq-nf-20030625-2.4.22pre3.diff.gz
author
#3 lore raw
Quoted 9 lines · On Tue, 18 Nov 2003 14:58:05 +0100 Tomas Szepe <[email protected]> wrote:
Quoted 6 lines · On Oct-24 2003, Fri, 19:57 +0200 Andi Kleen <[email protected]> wrote:
Quoted 5 lines

/* tcp_input.c, line 1138 */
static inline int tcp_head_timedout(struct sock *sk, struct tcp_opt *tp) {
return tp->packets_out && tcp_skb_timedout(tp, skb_peek(&sk->write_queue));
}

Quoted 7 lines
Quoted 3 lines

tp->packets_out > 0 implies that there is at least one packet in the write queue (it counts the number of unacked packets in flight, which are kept in the write queue). When that's not the case something else is wrong.

Yes, that's exactly what davem said. The corruption is happening somewhere in netsched/imq code that's not even part of the official kernel tree (and I'm told there's nobody to maintain the patch at present).

Ignore the mail. It was some machine flushing out an old mail queue (with some very old mails from me that never made it out)

I actually wrote it before DaveM if you check the dates ;-)

-Andi