diff options
author | Taehee Yoo <ap420073@gmail.com> | 2018-11-04 19:44:39 +0100 |
---|---|---|
committer | Pablo Neira Ayuso <pablo@netfilter.org> | 2018-11-12 16:05:01 +0100 |
commit | 3c5cdb17c3be76714dfd0d03e384f70579545614 (patch) | |
tree | ba33fdfa2e401242bdfc79db4c7334cb15ebc340 /net/phonet/pn_netlink.c | |
parent | netfilter: nf_conncount: fix list_del corruption in conn_free (diff) | |
download | linux-3c5cdb17c3be76714dfd0d03e384f70579545614.tar.xz linux-3c5cdb17c3be76714dfd0d03e384f70579545614.zip |
netfilter: nf_conncount: fix unexpected permanent node of list.
When list->count is 0, the list is deleted by GC. But list->count is
never reached 0 because initial count value is 1 and it is increased
when node is inserted. So that initial value of list->count should be 0.
Originally GC always finds zero count list through deleting node and
decreasing count. However, list may be left empty since node insertion
may fail eg. allocaton problem. In order to solve this problem, GC
routine also finds zero count list without deleting node.
Fixes: cb2b36f5a97d ("netfilter: nf_conncount: Switch to plain list")
Signed-off-by: Taehee Yoo <ap420073@gmail.com>
Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
Diffstat (limited to 'net/phonet/pn_netlink.c')
0 files changed, 0 insertions, 0 deletions