Thread (20 messages) flat view 20 messages, 4 authors, 2013-03-17

Re: BUG: IPv4: Attempt to release TCP socket in state 1

From: Eric Dumazet <hidden>
Date: 2013-03-14 22:56:32
Also in: lkml

On Thu, 2013-03-14 at 14:21 -0700, dormando wrote:
quoted
diff --git a/net/ipv4/af_inet.c b/net/ipv4/af_inet.c
index 68f6a94..1d4d97e 100644
--- a/net/ipv4/af_inet.c
+++ b/net/ipv4/af_inet.c
@@ -141,8 +141,9 @@ void inet_sock_destruct(struct sock *sk)
 	sk_mem_reclaim(sk);

 	if (sk->sk_type == SOCK_STREAM && sk->sk_state != TCP_CLOSE) {
-		pr_err("Attempt to release TCP socket in state %d %p\n",
-		       sk->sk_state, sk);
+		pr_err("Attempt to release TCP socket family %d in state %d %p\n",
+		       sk->sk_family, sk->sk_state, sk);
+		WARN_ON_ONCE(1);
 		return;
 	}
 	if (!sock_flag(sk, SOCK_DEAD)) {
[58377.436522] IPv4: Attempt to release TCP socket family 2 in state 1
ffff8813fbad9500
There is no stack information on the WARN_ON_ONCE(1) ?
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help