]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
batman-adv: Fix netlink dumping of all mcast_flags buckets
authorSven Eckelmann <sven@narfation.org>
Sun, 7 Jul 2019 20:15:13 +0000 (22:15 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 10 Sep 2019 09:35:10 +0000 (10:35 +0100)
commitfa689968da499a6094228d9409e1cf100290de8a
tree15e0539a2be07dfc129792974bb0e6e936407f54
parenta4c88340b3ea8caefa1b5d3422bd9925c74b566e
batman-adv: Fix netlink dumping of all mcast_flags buckets

[ Upstream commit fa3a03da549a889fc9dbc0d3c5908eb7882cac8f ]

The bucket variable is only updated outside the loop over the mcast_flags
buckets. It will only be updated during a dumping run when the dumping has
to be interrupted and a new message has to be started.

This could result in repeated or missing entries when the multicast flags
are dumped to userspace.

Fixes: d2d489b7d851 ("batman-adv: Add inconsistent multicast netlink dump detection")
Signed-off-by: Sven Eckelmann <sven@narfation.org>
Signed-off-by: Simon Wunderlich <sw@simonwunderlich.de>
Signed-off-by: Sasha Levin <sashal@kernel.org>
net/batman-adv/multicast.c