* Re: [PATCH 1/2]: conntrack: fix refcount leak when finding expectation
[not found] <200611232315.kANNFVi3006773@toshiba.co.jp>
@ 2006-11-27 17:32 ` Patrick McHardy
2006-11-27 19:32 ` [PATCH 1/2]: conntrack: fix refcount leak when findingexpectation Alan Ezust
0 siblings, 1 reply; 4+ messages in thread
From: Patrick McHardy @ 2006-11-27 17:32 UTC (permalink / raw)
To: Yasuyuki KOZAKAI; +Cc: netfilter-devel, pablo
Yasuyuki KOZAKAI wrote:
> # Sorry, I forgot netfilter-devel, so resend.
>
> All users of __{ip,nf}_conntrack_expect_find() don't expect that
> it increments the reference count of expectation.
Applied, thanks.
^ permalink raw reply [flat|nested] 4+ messages in thread* Re: [PATCH 1/2]: conntrack: fix refcount leak when findingexpectation
2006-11-27 17:32 ` [PATCH 1/2]: conntrack: fix refcount leak when finding expectation Patrick McHardy
@ 2006-11-27 19:32 ` Alan Ezust
2006-11-28 13:14 ` Patrick McHardy
0 siblings, 1 reply; 4+ messages in thread
From: Alan Ezust @ 2006-11-27 19:32 UTC (permalink / raw)
To: netfilter-devel; +Cc: Patrick McHardy, pablo
[-- Attachment #1: Type: text/plain, Size: 786 bytes --]
I noticed many messages indicating that things are being applied to conntrack
and their related libs - but whenever I check my own checked out copy from
svn (rev 6698), it does not show me anything new to update, and it appears as
if nobody is committing to that particular part of the repo. Are you
committing these changes to a branch other than trunk?
On Monday 27 November 2006 09:32, Patrick McHardy wrote:
> Yasuyuki KOZAKAI wrote:
> > # Sorry, I forgot netfilter-devel, so resend.
> >
> > All users of __{ip,nf}_conntrack_expect_find() don't expect that
> > it increments the reference count of expectation.
>
> Applied, thanks.
--
Alan Ezust www.presinet.com
Presinet, inc alan.ezust@presinet.com
Victoria, BC, Canada
[-- Attachment #2: Type: application/pgp-signature, Size: 189 bytes --]
^ permalink raw reply [flat|nested] 4+ messages in thread* Re: [PATCH 1/2]: conntrack: fix refcount leak when findingexpectation
2006-11-27 19:32 ` [PATCH 1/2]: conntrack: fix refcount leak when findingexpectation Alan Ezust
@ 2006-11-28 13:14 ` Patrick McHardy
0 siblings, 0 replies; 4+ messages in thread
From: Patrick McHardy @ 2006-11-28 13:14 UTC (permalink / raw)
To: Alan Ezust; +Cc: netfilter-devel, pablo
Alan Ezust wrote:
> I noticed many messages indicating that things are being applied to conntrack
> and their related libs - but whenever I check my own checked out copy from
> svn (rev 6698), it does not show me anything new to update, and it appears as
> if nobody is committing to that particular part of the repo. Are you
> committing these changes to a branch other than trunk?
This patch was against the kernel not the libraries. The others you
mention probably as well.
^ permalink raw reply [flat|nested] 4+ messages in thread
* [PATCH 1/2]: conntrack: fix refcount leak when finding expectation
@ 2006-11-23 23:15 Yasuyuki KOZAKAI
0 siblings, 0 replies; 4+ messages in thread
From: Yasuyuki KOZAKAI @ 2006-11-23 23:15 UTC (permalink / raw)
To: kaber, pablo; +Cc: netfilter-devel
# Sorry, I forgot netfilter-devel, so resend.
All users of __{ip,nf}_conntrack_expect_find() don't expect that
it increments the reference count of expectation.
Signed-off-by: Yasuyuki Kozakai <yasuyuki.kozakai@toshiba.co.jp>
---
commit 139a3c05b435f47cfd26eba62c0e04b35bb5d9d3
tree 1aa652bd008fceeb66ea52d21c58deac031353f1
parent 1d301309e433ca67a74569a536078861a767c425
author Yasuyuki Kozakai <yasuyuki.kozakai@toshiba.co.jp> Fri, 24 Nov 2006 07:09:46 +0900
committer Yasuyuki Kozakai <yasuyuki.kozakai@toshiba.co.jp> Fri, 24 Nov 2006 07:09:46 +0900
net/ipv4/netfilter/ip_conntrack_core.c | 6 +++---
net/netfilter/nf_conntrack_core.c | 6 +++---
2 files changed, 6 insertions(+), 6 deletions(-)
diff --git a/net/ipv4/netfilter/ip_conntrack_core.c b/net/ipv4/netfilter/ip_conntrack_core.c
index 143c466..8b848aa 100644
--- a/net/ipv4/netfilter/ip_conntrack_core.c
+++ b/net/ipv4/netfilter/ip_conntrack_core.c
@@ -225,10 +225,8 @@ __ip_conntrack_expect_find(const struct
struct ip_conntrack_expect *i;
list_for_each_entry(i, &ip_conntrack_expect_list, list) {
- if (ip_ct_tuple_mask_cmp(tuple, &i->tuple, &i->mask)) {
- atomic_inc(&i->use);
+ if (ip_ct_tuple_mask_cmp(tuple, &i->tuple, &i->mask))
return i;
- }
}
return NULL;
}
@@ -241,6 +239,8 @@ ip_conntrack_expect_find(const struct ip
read_lock_bh(&ip_conntrack_lock);
i = __ip_conntrack_expect_find(tuple);
+ if (i)
+ atomic_inc(&i->use);
read_unlock_bh(&ip_conntrack_lock);
return i;
diff --git a/net/netfilter/nf_conntrack_core.c b/net/netfilter/nf_conntrack_core.c
index 0f58307..de0567b 100644
--- a/net/netfilter/nf_conntrack_core.c
+++ b/net/netfilter/nf_conntrack_core.c
@@ -469,10 +469,8 @@ __nf_conntrack_expect_find(const struct
struct nf_conntrack_expect *i;
list_for_each_entry(i, &nf_conntrack_expect_list, list) {
- if (nf_ct_tuple_mask_cmp(tuple, &i->tuple, &i->mask)) {
- atomic_inc(&i->use);
+ if (nf_ct_tuple_mask_cmp(tuple, &i->tuple, &i->mask))
return i;
- }
}
return NULL;
}
@@ -485,6 +483,8 @@ nf_conntrack_expect_find(const struct nf
read_lock_bh(&nf_conntrack_lock);
i = __nf_conntrack_expect_find(tuple);
+ if (i)
+ atomic_inc(&i->use);
read_unlock_bh(&nf_conntrack_lock);
return i;
^ permalink raw reply related [flat|nested] 4+ messages in thread
end of thread, other threads:[~2006-11-28 13:14 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
[not found] <200611232315.kANNFVi3006773@toshiba.co.jp>
2006-11-27 17:32 ` [PATCH 1/2]: conntrack: fix refcount leak when finding expectation Patrick McHardy
2006-11-27 19:32 ` [PATCH 1/2]: conntrack: fix refcount leak when findingexpectation Alan Ezust
2006-11-28 13:14 ` Patrick McHardy
2006-11-23 23:15 [PATCH 1/2]: conntrack: fix refcount leak when finding expectation Yasuyuki KOZAKAI
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.