Netdev List
 help / color / mirror / Atom feed
* Question regarding kernel panic in net/ipv4/tcp_output.c
@ 2012-09-04 11:55 smka2012
  2012-09-04 12:23 ` Eric Dumazet
  0 siblings, 1 reply; 3+ messages in thread
From: smka2012 @ 2012-09-04 11:55 UTC (permalink / raw)
  To: netdev

Hi,
 
I recently had a severe issue with multiple servers that stopped working at the same time. By using the stacktrace, I could locate the following line in the tcp_retransmit_skb function of the tcp_output.c kernel source that led to a kernel panic on all servers. I am using Debian 6.0 with the kernel version 2.6.32-45.
 
(gdb) list *(tcp_retransmit_skb+0x66)
0x1a93 is in tcp_retransmit_skb (net/ipv4/tcp_output.c:1905).
1900  if (atomic_read(&sk->sk_wmem_alloc) >
1901      min(sk->sk_wmem_queued + (sk->sk_wmem_queued >> 2), sk->sk_sndbuf))
1902   return -EAGAIN;
1903
1904  if (before(TCP_SKB_CB(skb)->seq, tp->snd_una)) {

--->
1905   if (before(TCP_SKB_CB(skb)->end_seq, tp->snd_una))
1906    BUG();
<---
 
1907   if (tcp_trim_head(sk, skb, tp->snd_una - TCP_SKB_CB(skb)->seq))
1908    return -ENOMEM;
1909  }
 
Now I am interested in getting to know what can lead to a situation that the condition in line 1905 evaluates true and why the kernel goes into the BUG() function in that case and does not only return an error. All servers reached this line of code. They all were connected to a switch that broke the same time. However, I cannot say if the switch broke before the servers and eventually affected the servers or if the switch was also itself affected by some external event. 
 
Thank you very much for your help.
 
Kind Regards,
Sascha

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2012-09-05  9:01 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-09-04 11:55 Question regarding kernel panic in net/ipv4/tcp_output.c smka2012
2012-09-04 12:23 ` Eric Dumazet
2012-09-05  9:01   ` Aw: " "Sascha Mühlbach"

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox