]> git.baikalelectronics.ru Git - kernel.git/commit
netlabel: fix our progress tracking in netlbl_unlabel_staticlist()
authorPaul Moore <paul@paul-moore.com>
Sun, 8 Nov 2020 14:08:26 +0000 (09:08 -0500)
committerJakub Kicinski <kuba@kernel.org>
Tue, 10 Nov 2020 23:31:46 +0000 (15:31 -0800)
commit078058a2663d4d0652493c9a3e92495c18f80e1b
tree6848a4c39e2a195761185252d65411baa862dd4e
parent5343af029fff03ca4deb9a79b353b631161f4085
netlabel: fix our progress tracking in netlbl_unlabel_staticlist()

The current NetLabel code doesn't correctly keep track of the netlink
dump state in some cases, in particular when multiple interfaces with
large configurations are loaded.  The problem manifests itself by not
reporting the full configuration to userspace, even though it is
loaded and active in the kernel.  This patch fixes this by ensuring
that the dump state is properly reset when necessary inside the
netlbl_unlabel_staticlist() function.

Fixes: 37bba034c04c ("NetLabel: Introduce static network labels for unlabeled connections")
Signed-off-by: Paul Moore <paul@paul-moore.com>
Link: https://lore.kernel.org/r/160484450633.3752.16512718263560813473.stgit@sifl
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
net/netlabel/netlabel_unlabeled.c