From: Patrick McHardy <kaber@trash.net>
To: "David S. Miller" <davem@davemloft.net>
Cc: Netfilter Development Mailinglist
<netfilter-devel@lists.netfilter.org>,
stable@kernel.org
Subject: [NETFILTER 3/5]: Wait until all references to ip_conntrack_untracked are dropped on unload
Date: Fri, 22 Jul 2005 09:35:51 +0200 [thread overview]
Message-ID: <42E0A1D7.20601@trash.net> (raw)
[-- Attachment #1: 03.diff --]
[-- Type: text/x-patch, Size: 1111 bytes --]
[NETFILTER]: Wait until all references to ip_conntrack_untracked are dropped on unload
Fixes a crash when unloading ip_conntrack.
Signed-off-by: Patrick McHardy <kaber@trash.net>
---
commit dd51c6e4ab8df9819d686b0a88a6d7ec8b3d2b28
tree 1b8d3369a5ffff34a263c2c4fbb206d948178a30
parent ca30527af14847bab487c91df56f99df3c7ad1b2
author Patrick McHardy <kaber@trash.net> Fri, 22 Jul 2005 09:23:28 +0200
committer Patrick McHardy <kaber@trash.net> Fri, 22 Jul 2005 09:23:28 +0200
net/ipv4/netfilter/ip_conntrack_core.c | 3 +++
1 files changed, 3 insertions(+), 0 deletions(-)
diff --git a/net/ipv4/netfilter/ip_conntrack_core.c b/net/ipv4/netfilter/ip_conntrack_core.c
--- a/net/ipv4/netfilter/ip_conntrack_core.c
+++ b/net/ipv4/netfilter/ip_conntrack_core.c
@@ -1111,6 +1111,9 @@ void ip_conntrack_cleanup(void)
schedule();
goto i_see_dead_people;
}
+ /* wait until all references to ip_conntrack_untracked are dropped */
+ while (atomic_read(&ip_conntrack_untracked.ct_general.use) > 1)
+ schedule();
kmem_cache_destroy(ip_conntrack_cachep);
kmem_cache_destroy(ip_conntrack_expect_cachep);
next reply other threads:[~2005-07-22 7:35 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2005-07-22 7:35 Patrick McHardy [this message]
2005-07-22 19:51 ` [NETFILTER 3/5]: Wait until all references to ip_conntrack_untracked are dropped on unload David S. Miller
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=42E0A1D7.20601@trash.net \
--to=kaber@trash.net \
--cc=davem@davemloft.net \
--cc=netfilter-devel@lists.netfilter.org \
--cc=stable@kernel.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.