Skip to contentSkip to conversation

64k bind(0) bugfix.

PATCH Applied Evgeniy Polyakov 2 participants 3 messages Jan 19, 2009

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

Hi.

I found the bug in bind conflict resolve path, when bundle was not unlocked after conflict was detected, attached patch should fix it.

If testing will reveal some new problems I will return with the fix then. Please apply or queue for the appropriate tree.

net/ipv4/inet_connection_sock.c renamed from net/ipv4/inet_connection_sock.c~ +3 -1
@@ -172,8 +172,10 @@
 		} else {
 			ret = 1;
 			if (inet_csk(sk)->icsk_af_ops->bind_conflict(sk, tb)) {
-				if (sk->sk_reuse && sk->sk_state != TCP_LISTEN && --attempts >= 0)
+				if (sk->sk_reuse && sk->sk_state != TCP_LISTEN && --attempts >= 0) {
+					spin_unlock(&head->lock);
 					goto again;
+				}
 				goto fail_unlock;
 			}
 		}
Signature · 1 line
	Evgeniy Polyakov
maintainer Applied
#1 lore raw

From: Evgeniy Polyakov <[email protected]>
Date: Tue, 20 Jan 2009 02:21:51 +0300

Quoted 7 lines

I found the bug in bind conflict resolve path, when bundle was not unlocked after conflict was detected, attached patch should fix it.

If testing will reveal some new problems I will return with the fix then. Please apply or queue for the appropriate tree.

Applied, thanks Evgeniy.

If I end up rebasing the net-next tree before publishing, I'll integrate this fix into the original commit.

#2 lore raw
Quoted 2 lines · David Miller

If I end up rebasing the net-next tree before publishing, I'll integrate this fix into the original commit.

Great, thank you!

Signature · 1 line
	Evgeniy Polyakov