All of lore.kernel.org
 help / color / mirror / Atom feed
From: Justin Schoeman <justin@expertron.co.za>
To: netfilter-devel@lists.netfilter.org
Subject: Possible 'destroy' paths for conntracks?
Date: Mon, 07 Mar 2005 11:32:22 +0200	[thread overview]
Message-ID: <422C1FA6.5030701@expertron.co.za> (raw)

[I am not on the list, so please CC me any answers.]

Hi all,

I am trying to locate a memory leak, either induced by, or agravated by 
the l7-filter.

Using the slab debugger, I see that the memory that is leaking are the 
app_data and/or app_proto fields that are kmalloc'ed in the 'match' method.

These are then (supposed to be) kfree'ed in the destroy_conntrack 
function, but they are apparently not destroyed, as even after most 
active connections have closed/timed out (/proc/net/ip_conntrack is 
practically empty), there are still thousands of these kmalloced memory 
regions left.

At the moment, I am assuming that there are multiple possible paths for 
a conntrack to be destroyed, and l7-filter is just missing some.  Is 
this true?  If so, what are all the possible destructors, or is there 
one single (better) place to clean up per-conntrack specific memory?

Thanks,
Justin

             reply	other threads:[~2005-03-07  9:32 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2005-03-07  9:32 Justin Schoeman [this message]
2005-03-07 13:14 ` Possible 'destroy' paths for conntracks? Patrick McHardy
2005-03-07 13:18 ` Tobias DiPasquale
2005-03-07 13:30   ` Justin Schoeman

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=422C1FA6.5030701@expertron.co.za \
    --to=justin@expertron.co.za \
    --cc=netfilter-devel@lists.netfilter.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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.