All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH 1/7] Fix expectation leak
@ 2005-08-01 17:04 Pablo Neira
  2005-08-01 17:12 ` Patrick McHardy
  0 siblings, 1 reply; 5+ messages in thread
From: Pablo Neira @ 2005-08-01 17:04 UTC (permalink / raw)
  To: Netfilter Development Mailinglist; +Cc: Harald Welte

[-- Attachment #1: Type: text/plain, Size: 202 bytes --]

expectation refcount is set to 1 in ip_conntrack_expect_alloc, and 
incremented again in ip_conntrack_expect_related. So once the 
ip_conntrack_expect_free is called, the expectation is never released.

[-- Attachment #2: 00fix-leak-expect.patch --]
[-- Type: text/x-patch, Size: 532 bytes --]

Index: netfilter-2.6.14/net/ipv4/netfilter/ip_conntrack_core.c
===================================================================
--- netfilter-2.6.14.orig/net/ipv4/netfilter/ip_conntrack_core.c	2005-08-01 16:20:26.000000000 +0200
+++ netfilter-2.6.14/net/ipv4/netfilter/ip_conntrack_core.c	2005-08-01 16:24:47.000000000 +0200
@@ -970,7 +970,6 @@
 
 static void ip_conntrack_expect_insert(struct ip_conntrack_expect *exp)
 {
-	atomic_inc(&exp->use);
 	exp->master->expecting++;
 	list_add(&exp->list, &ip_conntrack_expect_list);
 

^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2005-08-02 21:45 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2005-08-01 17:04 [PATCH 1/7] Fix expectation leak Pablo Neira
2005-08-01 17:12 ` Patrick McHardy
     [not found]   ` <42EE5EC4.5090303@eurodev.net>
2005-08-01 19:52     ` Patrick McHardy
2005-08-02 12:39       ` Pablo Neira
2005-08-02 21:45         ` Patrick McHardy

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.