netfilter: ctnetlink: fix dumping of dying/unconfirmed conntracks
authorPablo Neira Ayuso <pablo@netfilter.org>
Thu, 5 Jun 2014 12:28:44 +0000 (14:28 +0200)
committerPablo Neira Ayuso <pablo@netfilter.org>
Mon, 16 Jun 2014 10:51:35 +0000 (12:51 +0200)
commit266155b2de8fb721ae353688529b2f8bcdde2f90
tree244e3225ef7f4e9bd59d13c2fe5eae7949f36b2b
parent7171511eaec5bf23fb06078f59784a3a0626b38f
netfilter: ctnetlink: fix dumping of dying/unconfirmed conntracks

The dumping prematurely stops, it seems the callback argument that
indicates that all entries have been dumped is set after iterating
on the first cpu list. The dumping also may stop before the entire
per-cpu list content is also dumped.

With this patch, conntrack -L dying now shows the dying list content
again.

Fixes: b7779d06 ("netfilter: conntrack: spinlock per cpu to protect special lists.")
Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
net/netfilter/nf_conntrack_netlink.c