linux-stable/include/linux/netfilter_ipv4
Patrick McHardy a86888b925 [NETFILTER]: Fix multiple problems with the conntrack event cache
refcnt underflow: the reference count is decremented when a conntrack
entry is removed from the hash but it is not incremented when entering
new entries.

missing protection of process context against softirq context: all
cache operations need to locally disable softirqs to avoid races.
Additionally the event cache can't be initialized when a packet
enteres the conntrack code but needs to be initialized whenever we
cache an event and the stored conntrack entry doesn't match the
current one.

incorrect flushing of the event cache in ip_ct_iterate_cleanup:
without real locking we can't flush the cache for different CPUs
without incurring races. The cache for different CPUs can only be
flushed when no packets are going through the
code. ip_ct_iterate_cleanup doesn't need to drop all references, so
flushing is moved to the cleanup path.

Signed-off-by: Patrick McHardy <kaber@trash.net>
Signed-off-by: David S. Miller <davem@davemloft.net>
2005-08-29 15:38:54 -07:00
..
ip_conntrack.h [NETFILTER]: Fix multiple problems with the conntrack event cache 2005-08-29 15:38:54 -07:00
ip_conntrack_amanda.h Linux-2.6.12-rc2 2005-04-16 15:20:36 -07:00
ip_conntrack_core.h [NETFILTER]: Fix multiple problems with the conntrack event cache 2005-08-29 15:38:54 -07:00
ip_conntrack_ftp.h Linux-2.6.12-rc2 2005-04-16 15:20:36 -07:00
ip_conntrack_helper.h [NETFILTER]: Add ctnetlink subsystem 2005-08-29 15:31:49 -07:00
ip_conntrack_icmp.h Linux-2.6.12-rc2 2005-04-16 15:20:36 -07:00
ip_conntrack_irc.h Linux-2.6.12-rc2 2005-04-16 15:20:36 -07:00
ip_conntrack_protocol.h [NETFILTER]: Add ctnetlink subsystem 2005-08-29 15:31:49 -07:00
ip_conntrack_sctp.h Linux-2.6.12-rc2 2005-04-16 15:20:36 -07:00
ip_conntrack_tcp.h Linux-2.6.12-rc2 2005-04-16 15:20:36 -07:00
ip_conntrack_tftp.h Linux-2.6.12-rc2 2005-04-16 15:20:36 -07:00
ip_conntrack_tuple.h Linux-2.6.12-rc2 2005-04-16 15:20:36 -07:00
ip_logging.h Linux-2.6.12-rc2 2005-04-16 15:20:36 -07:00
ip_nat.h [NETFILTER]: Kill lockhelp.h 2005-06-21 14:01:30 -07:00
ip_nat_core.h Linux-2.6.12-rc2 2005-04-16 15:20:36 -07:00
ip_nat_helper.h Linux-2.6.12-rc2 2005-04-16 15:20:36 -07:00
ip_nat_protocol.h [NETFILTER]: Add ctnetlink subsystem 2005-08-29 15:31:49 -07:00
ip_nat_rule.h Linux-2.6.12-rc2 2005-04-16 15:20:36 -07:00
ip_queue.h Linux-2.6.12-rc2 2005-04-16 15:20:36 -07:00
ip_tables.h Linux-2.6.12-rc2 2005-04-16 15:20:36 -07:00
ipt_addrtype.h Linux-2.6.12-rc2 2005-04-16 15:20:36 -07:00
ipt_ah.h Linux-2.6.12-rc2 2005-04-16 15:20:36 -07:00
ipt_CLASSIFY.h Linux-2.6.12-rc2 2005-04-16 15:20:36 -07:00
ipt_CLUSTERIP.h [NETFILTER]: Fix "iptables -D" rule deletion with ipt_CLUSTERIP target. 2005-06-22 12:38:33 -07:00
ipt_comment.h Linux-2.6.12-rc2 2005-04-16 15:20:36 -07:00
ipt_CONNMARK.h Linux-2.6.12-rc2 2005-04-16 15:20:36 -07:00
ipt_connmark.h Linux-2.6.12-rc2 2005-04-16 15:20:36 -07:00
ipt_conntrack.h Linux-2.6.12-rc2 2005-04-16 15:20:36 -07:00
ipt_DSCP.h Linux-2.6.12-rc2 2005-04-16 15:20:36 -07:00
ipt_dscp.h Linux-2.6.12-rc2 2005-04-16 15:20:36 -07:00
ipt_ecn.h Linux-2.6.12-rc2 2005-04-16 15:20:36 -07:00
ipt_ECN.h Linux-2.6.12-rc2 2005-04-16 15:20:36 -07:00
ipt_esp.h Linux-2.6.12-rc2 2005-04-16 15:20:36 -07:00
ipt_hashlimit.h Linux-2.6.12-rc2 2005-04-16 15:20:36 -07:00
ipt_helper.h Linux-2.6.12-rc2 2005-04-16 15:20:36 -07:00
ipt_iprange.h Linux-2.6.12-rc2 2005-04-16 15:20:36 -07:00
ipt_length.h Linux-2.6.12-rc2 2005-04-16 15:20:36 -07:00
ipt_limit.h Linux-2.6.12-rc2 2005-04-16 15:20:36 -07:00
ipt_LOG.h [NETFILTER]: Extend netfilter logging API 2005-08-29 15:38:07 -07:00
ipt_mac.h Linux-2.6.12-rc2 2005-04-16 15:20:36 -07:00
ipt_MARK.h Linux-2.6.12-rc2 2005-04-16 15:20:36 -07:00
ipt_mark.h Linux-2.6.12-rc2 2005-04-16 15:20:36 -07:00
ipt_multiport.h Linux-2.6.12-rc2 2005-04-16 15:20:36 -07:00
ipt_NFQUEUE.h [NETFILTER]: Add "nfnetlink_queue" netfilter queue handler over nfnetlink 2005-08-29 15:36:56 -07:00
ipt_owner.h Linux-2.6.12-rc2 2005-04-16 15:20:36 -07:00
ipt_physdev.h Linux-2.6.12-rc2 2005-04-16 15:20:36 -07:00
ipt_pkttype.h Linux-2.6.12-rc2 2005-04-16 15:20:36 -07:00
ipt_realm.h Linux-2.6.12-rc2 2005-04-16 15:20:36 -07:00
ipt_recent.h Linux-2.6.12-rc2 2005-04-16 15:20:36 -07:00
ipt_REJECT.h Linux-2.6.12-rc2 2005-04-16 15:20:36 -07:00
ipt_SAME.h Linux-2.6.12-rc2 2005-04-16 15:20:36 -07:00
ipt_sctp.h Linux-2.6.12-rc2 2005-04-16 15:20:36 -07:00
ipt_state.h Linux-2.6.12-rc2 2005-04-16 15:20:36 -07:00
ipt_tcpmss.h Linux-2.6.12-rc2 2005-04-16 15:20:36 -07:00
ipt_TCPMSS.h Linux-2.6.12-rc2 2005-04-16 15:20:36 -07:00
ipt_TOS.h Linux-2.6.12-rc2 2005-04-16 15:20:36 -07:00
ipt_tos.h Linux-2.6.12-rc2 2005-04-16 15:20:36 -07:00
ipt_ttl.h Linux-2.6.12-rc2 2005-04-16 15:20:36 -07:00
ipt_ULOG.h Linux-2.6.12-rc2 2005-04-16 15:20:36 -07:00
listhelp.h [NETFILTER]: Kill lockhelp.h 2005-06-21 14:01:30 -07:00