Re: [PATCH net-next v4] ipv6: check mc_forwarding before calling ip6mr_get_route()

From: patchwork-bot+netdevbpf

Date: Sun Nov 29 2026 - 12:40:21 EST


Hello:

This patch was applied to netdev/net-next.git (main)
by Willem de Bruijn <willemb@xxxxxxxxxx>:

On Fri, 20 Nov 2026 11:23:27 +0800 you wrote:
> When CONFIG_IPV6_MROUTE is enabled, rt6_fill_node() currently calls
> ip6mr_get_route() whenever an input interface (RTA_IIF) is specified and
> the matched route prefix (rt6_dst->addr) is multicast.
>
> However, ip6mr_get_route() should not be invoked in three cases where
> the kernel does not perform multicast forwarding lookup:
> 1. Multicast forwarding is disabled in the network namespace
> (mc_forwarding is 0);
> 2. The queried destination address (dest) has interface-local
> (IPV6_ADDR_LOOPBACK) or link-local (IPV6_ADDR_LINKLOCAL) scope, which
> ip6_mc_input() never forwards;
> 3. The query requests a raw FIB entry via RTM_F_FIB_MATCH (where
> inet6_rtm_getroute() passes dest as NULL), for which IPv4 uses
> fib_dump_info() rather than ipmr_get_route().
>
> [...]

Here is the summary with links:
- [net-next,v4] ipv6: check mc_forwarding before calling ip6mr_get_route()
https://git.kernel.org/netdev/net-next/c/dddb95f652f3

You are awesome, thank you!
--
Deet-doot-dot, I am a bot.
https://korg.docs.kernel.org/patchwork/pwbot.html