summaryrefslogtreecommitdiff
path: root/block/ioctl.c
diff options
context:
space:
mode:
authorTaehee Yoo <ap420073@gmail.com>2018-11-04 21:44:39 +0300
committerPablo Neira Ayuso <pablo@netfilter.org>2018-11-12 18:05:01 +0300
commit3c5cdb17c3be76714dfd0d03e384f70579545614 (patch)
treeba33fdfa2e401242bdfc79db4c7334cb15ebc340 /block/ioctl.c
parent31568ec09ea02a050249921698c9729419539cce (diff)
downloadlinux-3c5cdb17c3be76714dfd0d03e384f70579545614.tar.xz
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 'block/ioctl.c')
0 files changed, 0 insertions, 0 deletions