Skip to contentSkip to conversation

useless tcp maybe-bug report

DISCUSSION Andrew Morton 2 participants 2 messages Apr 28, 2008

Subsystems (3)
lore
Share & tools
lore
#0 lore raw

I just fired up latest mainline plus the 300-odd patches which I'm about to send Linuswards on a mac g5.

I use that g5 as a distcc server. I'm now seeing this:

distcc[13554] (dcc_writex) ERROR: failed to write: Connection reset by peer distcc[13554] (dcc_writex) ERROR: failed to write: Broken pipe
distcc[13554] Warning: failed to distribute net/atm/clip.mod.c to g5/32, running locally instead

about once per allmodconfig build. The client kernel is 2.6.24.3-34.fc8 and has never changed.

Thing is, these messages are unusual. I suspect that Something Is Up with that g5, perhaps its networking.

There are no signs of problems in the g5's dmesg.

maintainer Acked-by Mark Lord
#1 lore raw

From: Andrew Morton <[email protected]>
Date: Mon, 28 Apr 2008 01:40:49 -0700

Quoted 9 lines

I just fired up latest mainline plus the 300-odd patches which I'm about to send Linuswards on a mac g5.

I use that g5 as a distcc server. I'm now seeing this:

distcc[13554] (dcc_writex) ERROR: failed to write: Connection reset by peer distcc[13554] (dcc_writex) ERROR: failed to write: Broken pipe
distcc[13554] Warning: failed to distribute net/atm/clip.mod.c to g5/32, running locally instead

Quoted 7 lines

about once per allmodconfig build. The client kernel is 2.6.24.3-34.fc8 and has never changed.

Thing is, these messages are unusual. I suspect that Something Is Up with that g5, perhaps its networking.

There are no signs of problems in the g5's dmesg.

I bet your fc8 kernel has the bug that needs this patch below.

The bug causes timewait sockets to reset erroneously and matches your symptoms precisely.

commit 7951f0b03a63d657c72c7d54d306ef3357e7e604

Author: Daniel Lezcano <[email protected]>
Date:   Thu Apr 10 20:53:10 2008 -0700

[NETNS][IPV6] tcp - assign the netns for timewait sockets

Copy the network namespace from the socket to the timewait socket.

net/ipv4/inet_timewait_sock.c +1 -0
index 876169f..717c411 100644
@@ -124,6 +124,7 @@ struct inet_timewait_sock *inet_twsk_alloc(const struct sock *sk, const int stat
 		tw->tw_hash	    = sk->sk_hash;
 		tw->tw_ipv6only	    = 0;
 		tw->tw_prot	    = sk->sk_prot_creator;
+		tw->tw_net          = sk->sk_net;
 		atomic_set(&tw->tw_refcnt, 1);
 		inet_twsk_dead_node_init(tw);
 		__module_get(tw->tw_prot->owner);