Thread View: linux.kernel.netdev
2 messages
2 total messages
Started by Simon Wunderlich
Wed, 11 Nov 2026 10:27
[PATCH net-next 01/15] batman-adv: mcast: explicitly initialize mcast.num_want_all_rtr{4,6)
Author: Simon Wunderlich
Date: Wed, 11 Nov 2026 10:27
Date: Wed, 11 Nov 2026 10:27
35 lines
10572 bytes
10572 bytes
From: Sven Eckelmann <sven@narfation.org> All mcast.num_want_all_* are initialized in batadv_mesh_init_late() - with the exception of mcast.num_want_all_rtr4 + mcast.num_want_all_rtr6. At the moment, it works because atomic_set just initializes it to 0 and the netdev private data is already set to 0 before being passed to .ndo_init. For consistency purposes, also initialize mcast.num_want_all_rtr4 + mcast.num_want_all_rtr6 explicitly. Reported-by: Sashiko <sashiko-bot@kernel.org> Closes: https://sashiko.dev/#/bug/linux-9dbe5dec-31ae-49eb-838a-b4b92ced4ace Acked-by: Linus Lรผssing <linus.luessing@c0d3.blue> Signed-off-by: Sven Eckelmann <sven@narfation.org> Signed-off-by: Simon Wunderlich <sw@simonwunderlich.de> --- net/batman-adv/mesh-interface.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/net/batman-adv/mesh-interface.c b/net/batman-adv/mesh-interface.c index 1ce707aaf48a0..6ffc505ce2aba 100644 --- a/net/batman-adv/mesh-interface.c +++ b/net/batman-adv/mesh-interface.c @@ -833,6 +833,8 @@ static int batadv_meshif_init_late(struct net_device *dev) atomic_set(&bat_priv->mcast.num_want_all_unsnoopables, 0); atomic_set(&bat_priv->mcast.num_want_all_ipv4, 0); atomic_set(&bat_priv->mcast.num_want_all_ipv6, 0); + atomic_set(&bat_priv->mcast.num_want_all_rtr4, 0); + atomic_set(&bat_priv->mcast.num_want_all_rtr6, 0); atomic_set(&bat_priv->mcast.num_no_mc_ptype_capa, 0); #endif WRITE_ONCE(bat_priv->gw.mode, BATADV_GW_MODE_OFF); -- 2.47.3
Re: [PATCH net-next 01/15] batman-adv: mcast: explicitly initialize mcast.num_want_all_rtr{4,6)
Author: patchwork-bot+netdevbpf
Date: Thu, 12 Nov 2026 19:10
Date: Thu, 12 Nov 2026 19:10
52 lines
10757 bytes
10757 bytes
Hello:
This series was applied to netdev/net-next.git (main)
by Sven Eckelmann <sven@narfation.org>:
On Wed, 11 Nov 2026 11:27:15 +0100 you wrote:
> From: Sven Eckelmann <sven@narfation.org>
>
> All mcast.num_want_all_* are initialized in batadv_mesh_init_late() - with
> the exception of mcast.num_want_all_rtr4 + mcast.num_want_all_rtr6. At the
> moment, it works because atomic_set just initializes it to 0 and the netdev
> private data is already set to 0 before being passed to .ndo_init.
>
> [...]
Here is the summary with links:
- [net-next,01/15] batman-adv: mcast: explicitly initialize mcast.num_want_all_rtr{4,6)
https://git.kernel.org/netdev/net-next/c/9efd82f6805d
- [net-next,02/15] batman-adv: mcast: explicitly initialize mcast.want_all_rtr{4,6}_list
https://git.kernel.org/netdev/net-next/c/ec14a473ec1c
- [net-next,03/15] batman-adv: uapi: add note/clarification on access of reserved bytes/bits
https://git.kernel.org/netdev/net-next/c/50d3cce980fb
- [net-next,04/15] batman-adv: avoid torn u64 counter reads on 32-bit systems
https://git.kernel.org/netdev/net-next/c/82c663800f4c
- [net-next,05/15] batman-adv: bat_v: initialize last_unicast_tx on neighbor creation
https://git.kernel.org/netdev/net-next/c/b844a1f97194
- [net-next,06/15] batman-adv: dat: annotate last_update with READ/WRITE_ONCE
https://git.kernel.org/netdev/net-next/c/0ca317f5194d
- [net-next,07/15] batman-adv: bla: avoid negative reported BATADV_ATTR_LAST_SEEN_MSECS
https://git.kernel.org/netdev/net-next/c/53a21998ad66
- [net-next,08/15] batman-adv: tt: annotate last_seen with READ/WRITE_ONCE
https://git.kernel.org/netdev/net-next/c/a063d1749de1
- [net-next,09/15] batman-adv: annotate originator last_seen with READ/WRITE_ONCE
https://git.kernel.org/netdev/net-next/c/d4b4b01b5f37
- [net-next,10/15] batman-adv: annotate neigh_node last_seen with READ/WRITE_ONCE
https://git.kernel.org/netdev/net-next/c/45d1474790e4
- [net-next,11/15] batman-adv: annotate hardif_neigh_node last_seen with READ/WRITE_ONCE
https://git.kernel.org/netdev/net-next/c/150e85d113fd
- [net-next,12/15] batman-adv: use matching return types for bool and void functions
https://git.kernel.org/netdev/net-next/c/2daee4a0d81e
- [net-next,13/15] batman-adv: mark read-only MAC address parameters as const
https://git.kernel.org/netdev/net-next/c/c58558f8998f
- [net-next,14/15] batman-adv: use bool for boolean flags
https://git.kernel.org/netdev/net-next/c/0f97847fdd1c
- [net-next,15/15] batman-adv: mcast: document the value stored in is_routable
https://git.kernel.org/netdev/net-next/c/d5c0415dfb58
You are awesome, thank you!
--
Deet-doot-dot, I am a bot.
https://korg.docs.kernel.org/patchwork/pwbot.html
Thread Navigation
This is a paginated view of messages in the thread with full content displayed inline.
Messages are displayed in chronological order, with the original post highlighted in green.
Use pagination controls to navigate through all messages in large threads.
Back to All Threads