linux/net
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
..
802 [NET]: Kill skb->real_dev 2005-08-29 15:32:25 -07:00
8021q [NET]: Kill skb->real_dev 2005-08-29 15:32:25 -07:00
appletalk [NET]: Kill skb->real_dev 2005-08-29 15:32:25 -07:00
atm [NET]: Kill skb->list 2005-08-29 15:31:14 -07:00
ax25 [NET]: Kill skb->real_dev 2005-08-29 15:32:25 -07:00
bluetooth [Bluetooth] Add direction and timestamp to stack internal events 2005-08-06 12:36:54 +02:00
bridge [NETLINK]: Add properly module refcounting for kernel netlink sockets. 2005-08-29 15:35:08 -07:00
core [NETFILTER]: Extend netfilter logging API 2005-08-29 15:38:07 -07:00
decnet [NETLINK]: Add properly module refcounting for kernel netlink sockets. 2005-08-29 15:35:08 -07:00
econet [NET]: Kill skb->real_dev 2005-08-29 15:32:25 -07:00
ethernet [NET]: Remove explicit initializations of skb->input_dev 2005-08-29 15:33:26 -07:00
ipv4 [NETFILTER]: Fix multiple problems with the conntrack event cache 2005-08-29 15:38:54 -07:00
ipv6 [INET]: Move bind_hash from tcp_sk to inet_sk 2005-08-29 15:38:48 -07:00
ipx [NET]: Kill skb->real_dev 2005-08-29 15:32:25 -07:00
irda [NET]: Kill skb->real_dev 2005-08-29 15:32:25 -07:00
key
lapb [NET]: Kill skb->list 2005-08-29 15:31:14 -07:00
llc [NET]: Kill skb->real_dev 2005-08-29 15:32:25 -07:00
netfilter [NETFILTER]: Add new "nfnetlink_log" userspace packet logging facility 2005-08-29 15:38:12 -07:00
netlink [NETLINK]: Add properly module refcounting for kernel netlink sockets. 2005-08-29 15:35:08 -07:00
netrom [NET]: Kill skb->real_dev 2005-08-29 15:32:25 -07:00
packet [NET]: Kill skb->real_dev 2005-08-29 15:32:25 -07:00
rose [NET]: Kill skb->list 2005-08-29 15:31:14 -07:00
rxrpc
sched [NET]: Kill skb->tc_classid 2005-08-29 15:31:18 -07:00
sctp [NET]: Cleanup INET_REFCNT_DEBUG code 2005-08-29 15:37:29 -07:00
sunrpc [RPC]: Kill bogus kmap in krb5 2005-08-23 10:09:53 -07:00
unix [NET]: Kill skb->list 2005-08-29 15:31:14 -07:00
wanrouter [NET]: __be'ify *_type_trans() 2005-07-12 12:08:43 -07:00
x25 [NET]: Kill skb->real_dev 2005-08-29 15:32:25 -07:00
xfrm [NETLINK]: Add properly module refcounting for kernel netlink sockets. 2005-08-29 15:35:08 -07:00
compat.c [NET]: Fix memory leak in sys_{send,recv}msg() w/compat 2005-08-09 15:29:19 -07:00
Kconfig [NETFITLER]: Add nfnetlink layer. 2005-08-29 15:31:29 -07:00
Makefile [NETFITLER]: Add nfnetlink layer. 2005-08-29 15:31:29 -07:00
nonet.c
socket.c
sysctl_net.c
TUNABLE