]> git.ipfire.org Git - thirdparty/kernel/stable.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)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 24 Nov 2020 12:27:17 +0000 (13:27 +0100)
commitc0e617c4e3c4b4dec1579bbcb02c5c60d1ae3a6c
tree349eb52a88dd8a820b695a1cf78fb969b6b4db28
parent24184dfd51c9fbe0e478570f4cb3c3fbc8d1b594
netlabel: fix our progress tracking in netlbl_unlabel_staticlist()

[ Upstream commit 866358ec331f8faa394995fb4b511af1db0247c8 ]

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: 8cc44579d1bd ("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>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
net/netlabel/netlabel_unlabeled.c