Skip to contentSkip to conversation

ipvs: avoid netns exit crash on ip_vs_conn_drop_conntrack

PATCH Applied Julian Anastasov 3 participants 3 messages Jul 10, 2014 – Jul 16, 2014

Subsystems (3)
lore
Share & tools
lore

Julian Anastasov

author maintainer
#0 lore raw

PATCH 1/1 ipvs: avoid netns exit crash on ip_vs_conn_drop_conntrack

commit 8f4e0a18682d91 ("IPVS netns exit causes crash in conntrack") added second ip_vs_conn_drop_conntrack call instead of just adding the needed check. As result, the first call still can cause crash on netns exit. Remove it.

---
 net/netfilter/ipvs/ip_vs_conn.c | 1 -
 1 file changed, 1 deletion(-)
net/netfilter/ipvs/ip_vs_conn.c +0 -1
index a8eb0a8..610e19c 100644
@@ -797,7 +797,6 @@ static void ip_vs_conn_expire(unsigned long data)
 			ip_vs_control_del(cp);
 
 		if (cp->flags & IP_VS_CONN_F_NFCT) {
-			ip_vs_conn_drop_conntrack(cp);
 			/* Do not access conntracks during subsys cleanup
 			 * because nf_conntrack_find_get can not be used after
 			 * conntrack cleanup for the net.
Signature · 1 line
1.9.0
#1 lore raw

Hi Julian

Quoted 5 lines · Julian Anastasov

commit 8f4e0a18682d91 ("IPVS netns exit causes crash in conntrack") added second ip_vs_conn_drop_conntrack call instead of just adding the needed check. As result, the first call still can cause crash on netns exit. Remove it.

Oops must have forgot to take that row away

Quoted 1 line
Quoted 16 lines
---
 net/netfilter/ipvs/ip_vs_conn.c | 1 -
 1 file changed, 1 deletion(-)
net/netfilter/ipvs/ip_vs_conn.c +0 -1
index a8eb0a8..610e19c 100644
@@ -797,7 +797,6 @@ static void ip_vs_conn_expire(unsigned long data)
 			ip_vs_control_del(cp);
 
 		if (cp->flags & IP_VS_CONN_F_NFCT) {
-			ip_vs_conn_drop_conntrack(cp);
 			/* Do not access conntracks during subsys cleanup
 			 * because nf_conntrack_find_get can not be used after
 			 * conntrack cleanup for the net.
maintainer Applied
#2 lore raw
Quoted 10 lines · Hans Schillstrom

Hi Julian

Quoted 5 lines · Julian Anastasov

commit 8f4e0a18682d91 ("IPVS netns exit causes crash in conntrack") added second ip_vs_conn_drop_conntrack call instead of just adding the needed check. As result, the first call still can cause crash on netns exit. Remove it.

Quoted 6 lines

Oops must have forgot to take that row away

Quoted 1 line

Thanks, applied.