Displaying 1 result from an estimated 1 matches for "list_find".
Did you mean:
flist_find
2006 Jul 25
0
[Bug 495] New: Netfilter Connection Tracking Race Condition in Kernel 2.4.x
...track_core.c.orig 2005-04-03
18:42:20.000000000 -0700
+++ linux-2.4.32/net/ipv4/netfilter/ip_conntrack_core.c 2006-07-24
13:23:25.000000000 -0700
@@ -777,6 +777,14 @@
/* look for tuple match */
h = ip_conntrack_find_get(&tuple, NULL);
if (!h) {
+ READ_LOCK(&ip_conntrack_lock);
+ h = LIST_FIND(&unconfirmed, conntrack_tuple_cmp,
+ struct ip_conntrack_tuple_hash *, &tuple, NULL);
+ if (h)
+ atomic_inc(&h->ctrack->ct_general.use);
+ READ_UNLOCK(&ip_conntrack_lock);
+ }
+ if (!h) {
h = init_conntrack(&tuple, proto, skb);
if (!h)
return NULL;
T...