Skip to contentSkip to conversation

net/ipv6: bh_lock_sock_nested on tcp_v6_rcv

PATCH Applied [email protected] 2 participants 2 messages Sep 25, 2006 – Sep 26, 2006

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

PATCH 1/3 net/ipv6: bh_lock_sock_nested on tcp_v6_rcv

From: Fabio Olive Leite <[email protected]>

A while ago Ingo patched tcp_v4_rcv on net/ipv4/tcp_ipv4.c to use bh_lock_sock_nested and silence a lock validator warning. This fixed it for IPv4, but recently I saw a report of the same warning on IPv6.

Cc Herbert Xu <[email protected]>
Cc "David S. Miller" <[email protected]>

---

 net/ipv6/tcp_ipv6.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
net/ipv6/tcp_ipv6.c renamed from net/ipv6/tcp_ipv6.c~net-ipv6-bh_lock_sock_nested-on-tcp_v6_rcv +1 -1
diff -puN net/ipv6/tcp_ipv6.c~net-ipv6-bh_lock_sock_nested-on-tcp_v6_rcv net/ipv6/tcp_ipv6.c
@@ -1237,7 +1237,7 @@ process:
 
 	skb->dev = NULL;
 
-	bh_lock_sock(sk);
+	bh_lock_sock_nested(sk);
 	ret = 0;
 	if (!sock_owned_by_user(sk)) {
 #ifdef CONFIG_NET_DMA

_

maintainer Applied
#1 lore raw

From: [email protected]
Date: Mon, 25 Sep 2006 16:43:07 -0700

Quoted 9 lines

From: Fabio Olive Leite <[email protected]>

A while ago Ingo patched tcp_v4_rcv on net/ipv4/tcp_ipv4.c to use bh_lock_sock_nested and silence a lock validator warning. This fixed it for IPv4, but recently I saw a report of the same warning on IPv6.

Cc Herbert Xu <[email protected]>
Cc "David S. Miller" <[email protected]>

Applied, and pushed to -stable as well.

Thanks a lot.