diff options
author | Florian Westphal <fw@strlen.de> | 2016-09-22 21:49:17 (GMT) |
---|---|---|
committer | Pablo Neira Ayuso <pablo@netfilter.org> | 2016-09-25 12:54:08 (GMT) |
commit | 58e207e4983d7acea39b7fbec9343d8a6d218a18 (patch) | |
tree | 3fd31a00ff22584e3800e6f1538a67b94bb4d701 /net/netfilter/nft_log.c | |
parent | 11d5f15723c9f39d7c131d0149d024c17dbef676 (diff) | |
download | linux-58e207e4983d7acea39b7fbec9343d8a6d218a18.tar.xz |
netfilter: evict stale entries when user reads /proc/net/nf_conntrack
Fabian reports a possible conntrack memory leak (could not reproduce so
far), however, one minor issue can be easily resolved:
> cat /proc/net/nf_conntrack | wc -l = 5
> 4 minutes required to clean up the table.
We should not report those timed-out entries to the user in first place.
And instead of just skipping those timed-out entries while iterating over
the table we can also zap them (we already do this during ctnetlink
walks, but I forgot about the /proc interface).
Fixes: f330a7fdbe16 ("netfilter: conntrack: get rid of conntrack timer")
Reported-by: Fabian Frederick <fabf@skynet.be>
Signed-off-by: Florian Westphal <fw@strlen.de>
Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
Diffstat (limited to 'net/netfilter/nft_log.c')
0 files changed, 0 insertions, 0 deletions