diff options
author | Patrick McHardy <kaber@trash.net> | 2005-08-10 07:02:13 +0400 |
---|---|---|
committer | David S. Miller <davem@sunset.davemloft.net> | 2005-08-30 02:38:54 +0400 |
commit | a86888b925299330053d20e0eba03ac4d2648c4b (patch) | |
tree | 27c2d22d98a9eed22749df1a8d32f72e1b5a2468 /mm | |
parent | a55ebcc4c4532107ad9eee1c9bb698ab5f12c00f (diff) | |
download | linux-a86888b925299330053d20e0eba03ac4d2648c4b.tar.xz |
[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>
Diffstat (limited to 'mm')
0 files changed, 0 insertions, 0 deletions