linux-stable-rt/include/net/netfilter
Patrick McHardy ec68e97ded [NETFILTER]: conntrack: fix {nf,ip}_ct_iterate_cleanup endless loops
Fix {nf,ip}_ct_iterate_cleanup unconfirmed list handling:

- unconfirmed entries can not be killed manually, they are removed on
  confirmation or final destruction of the conntrack entry, which means
  we might iterate forever without making forward progress.

  This can happen in combination with the conntrack event cache, which
  holds a reference to the conntrack entry, which is only released when
  the packet makes it all the way through the stack or a different
  packet is handled.

- taking references to an unconfirmed entry and using it outside the
  locked section doesn't work, the list entries are not refcounted and
  another CPU might already be waiting to destroy the entry

What the code really wants to do is make sure the references of the hash
table to the selected conntrack entries are released, so they will be
destroyed once all references from skbs and the event cache are dropped.

Since unconfirmed entries haven't even entered the hash yet, simply mark
them as dying and skip confirmation based on that.

Reported and tested by Chuck Ebbert <cebbert@redhat.com>

Signed-off-by: Patrick McHardy <kaber@trash.net>
Signed-off-by: David S. Miller <davem@davemloft.net>
2007-03-05 13:25:18 -08:00
..
ipv4
ipv6
nf_conntrack.h [NETFILTER]: nf_conntrack: fix invalid conntrack statistics RCU assumption 2007-02-12 11:13:43 -08:00
nf_conntrack_compat.h
nf_conntrack_core.h [NETFILTER]: conntrack: fix {nf,ip}_ct_iterate_cleanup endless loops 2007-03-05 13:25:18 -08:00
nf_conntrack_ecache.h
nf_conntrack_expect.h [PATCH] mark struct file_operations const 1 2007-02-12 09:48:44 -08:00
nf_conntrack_helper.h
nf_conntrack_l3proto.h [NETFILTER]: nf_conntrack: change nf_conntrack_l[34]proto_unregister to void 2007-02-12 11:14:28 -08:00
nf_conntrack_l4proto.h [NETFILTER]: nf_conntrack: change nf_conntrack_l[34]proto_unregister to void 2007-02-12 11:14:28 -08:00
nf_conntrack_tuple.h
nf_nat.h [NETFILTER]: NAT: optional source port randomization support 2007-02-08 12:39:17 -08:00
nf_nat_core.h
nf_nat_helper.h
nf_nat_protocol.h
nf_nat_rule.h