Thread (3 messages) flat view 3 messages, 2 authors, 2012-09-05

Question regarding kernel panic in net/ipv4/tcp_output.c

From: <hidden>
Date: 2012-09-04 11:55:13

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
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help