From mboxrd@z Thu Jan 1 00:00:00 1970 Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.remote-ip=100.103.45.18 ARC-Seal: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=none; t=1795974011; b=gDE8l/UcQRD+9+33+N+kUH41iYufUkWusPjlvueRoLPpsTJLwQ3vEMl92uUgD70K1oDu zgVjbwSn5JxWPVWesGdZvKAc12yM+4rTgsu+s3o6N+QoBvDlbszSbaGIOBh9iTkh8oRne +oHpjdWTuqhnBY3wl4FN+a4fIgPJ8wJ0wCLdplwsQeEhK8TVuaFgrmdCr9OIUk3mimVRP hY0PvqHWRVdz98V3mM4vk+DNK2X5arjHy+1itaO4NVuJUC+tsJRR2nhKDDE9E7dhA/ev4 lQuHYgh08o4njcyKx4ykBOeKTS4Nmeadm9g0a09frwFMyNdB/wWzj8CihMcqm3Od35A== ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1795974011; h=Received:DKIM-Signature:Received:Content-Type:MIME-Version: Content-Transfer-Encoding:Subject:From:Message-Id:Date:References: In-Reply-To:To:Cc; bh=EeVt18qR9hEy5IJE5rWjkCOnZJYtDeAxvSn7gaopeFE=; b=CPINvorNJ6+eKmcHMmocbim9EfONldtmwAKm27KEv4pzfjt2x7DH2/2Pz7Pc2GseeZMI ozcanPtDKs+23e9h4gkN7OvpxAdFcYT63oJUoyFA2B3UV7iolTuGUo03ZajgzbLtNq7sE 1dPCfd0NU8crlc5gNDQYdBiP0f5fo4n6VFKX9OlpXlI4gd/dsRbqinXlYMZ4yZjcGgYMD 8Cp+JCH9E09IbBigCecQUvFDm0GKRpbo608yFOFzoehRpOIFu0NtSNQd4MokkzD3PHYo5 zTr/4QfsU5igmIi5hAe9LYul4IckXQWmugNA/N3yivxBsSwKPKb20lurs/mGODFlljQ== ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dkim=pass header.d=kernel.org header.i=@kernel.org header.a=rsa-sha256 header.s=k20260515 header.b=EHD19l6u; arc=none smtp.remote-ip=100.103.45.18 Received: from smtp.kernel.org (quasi.space.kernel.org [100.103.45.18]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (prime256v1)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 38887606A337; Sun, 29 Nov 2026 17:40:11 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.a=rsa-sha256 header.s=k20260515 header.b=EHD19l6u Received: by smtp.kernel.org (Postfix) with ESMTPSA id 03E5E1F000C1; Sun, 29 Nov 2026 17:40:11 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=kernel.org; s=k20260515; t=1795974011; bh=EeVt18qR9hEy5IJE5rWjkCOnZJYtDeAxvSn7gaopeFE=; h=Subject:From:Date:References:In-Reply-To:To:Cc; b=EHD19l6uoGIQ+1pnwANVYOiyDVg5vDg3rVplJ3wxmluL6bSWUT9fqntyC9tpipE70 AiGOwVBqreqbCUHRUzC4HurH/tlShz2a+2Gko/xrUUav/KG7sQiSLQfaXduZgRdVbd 6XD/h/v5oMHW8bgMi3ojuY2N+jAlHG9/e+IZQlysDf67jdo617KbmGds056miXvLu2 fJxEfqhpRggWJNmo/qSqsn41of+8AWhzkWy/aWyfNAeVF7A2HBWQ+UYn/UvEH0PJlC 3MxENO6LlvovE/bNus39LjUPMSshaQ/Mfi0dCwG33MkcqAau5tyul+oa7XOeWuCRUI 7S8KK7NcE+VOg== Received: from [10.30.226.235] (localhost [IPv6:::1]) by aws-us-west-2-korg-oddjob-rhel9-1.codeaurora.org (Postfix) with ESMTP id EB8D4392B1FE; Sun, 29 Nov 2026 17:40:10 +0000 (UTC) Content-Type: text/plain; charset="utf-8" X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Post: List-Help: List-Subscribe: List-Unsubscribe: List-Owner: Precedence: list MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Subject: Re: [PATCH net-next v4] ipv6: check mc_forwarding before calling ip6mr_get_route() From: patchwork-bot+netdevbpf@kernel.org Message-Id: <179597400949.2373400.11980895473245467464.git-patchwork-notify@kernel.org> Date: Sun, 29 Nov 2026 17:40:09 +0000 References: <20261120032327.18375-1-sunwenbo@cmss.chinamobile.com> In-Reply-To: <20261120032327.18375-1-sunwenbo@cmss.chinamobile.com> To: Wenbo Sun Cc: dsahern@kernel.org, idosch@nvidia.com, davem@davemloft.net, edumazet@kernel.org, kuba@kernel.org, pabeni@redhat.org, horms@kernel.org, hangbin.liu@linux.dev, liuhangbin@kylinos.cn, netdev@vger.kernel.org, linux-kernel@vger.kernel.org, 1342116488@qq.com Hello: This patch was applied to netdev/net-next.git (main) by Willem de Bruijn : 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