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=1796055017; b=xrjqBZTNnwne7zVmm8U16czDFihDxY6ZNQBM7bPvOWnYcOqr7ukU6kTcO1H3+sOJid8Q k7N7ztTekcG4y1IP3whNJtcuqj2ttnsB5ufsjJ7qo5JOUQyc3gRIBoaoUBbbSH+N1EFNv 2fZTuZr+IUKYvCwCTRkWvVp2/j7XD4Yb4lUyaIwvjkiXK/iAMGpnR348WBE2VErmaaZAS XJCrnEKK0WjqzT++ocsQuEJ7fTWzae5u6RIBM6LxP+Ceg3+QuYF+0rmDIYeQ/EaquO295 pRUTUxpohMSFf8APjTO9sa+0jGJQD6RxCdHTpXluGhfirf7V+AdR1t8MpiICg1l1fFQ== ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1796055017; h=Received:DKIM-Signature:Received:Content-Type:MIME-Version: Content-Transfer-Encoding:Subject:From:Message-Id:Date:References: In-Reply-To:To:Cc; bh=7cYS2XyFm4N5vLCcobNnaH8NnlnKxyfMg5wn0LxiBVM=; b=k6jw6LAGlHzzXURnIj+nKwng93w9js49SvibeLnAPSU1fz/z+wM24EYnVNBSBHKPJje1 CoXL+eRhPMddXAhCmZQVt/vfDqJwztm0t0MN2STYbKQKXPQIuZQFakO524INTAGSecbsy dlviltjAZeIHKlMreUfUfExde1EzzDV9rUI/tQV2lNRD0xI7er9mSC72HkChLxcoOo0wc EdzZyuKn3IO2jMeoqbO96oIRV85d35lGeCsoNmwUizRFFvPAA83yDds/iMIyo4fNF6SNy G6aqciHzpgBFLVbhRpoVzX/blJO3FtUe3QDM3gLysRwe28mxghDEGltgkB2IeVjvWHg== 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=meF4xGpf; 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 4445F606A6B6 for ; Mon, 30 Nov 2026 16:10:17 +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=meF4xGpf Received: by smtp.kernel.org (Postfix) with ESMTPSA id 020611F00939; Mon, 30 Nov 2026 16:10:17 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=kernel.org; s=k20260515; t=1796055017; bh=7cYS2XyFm4N5vLCcobNnaH8NnlnKxyfMg5wn0LxiBVM=; h=Subject:From:Date:References:In-Reply-To:To:Cc; b=meF4xGpf7JdGE0B1n2obN1Rlylv0b8e7gvOnrKeSj2GqIMU5RLSdSoZqLKbau9F+T Q4SAShFuc+22HSR3bEESnVeHchbNDqqg/4xy/aPPLyesEsv5awY6uLn78R75sSw4yv p9YBRdkcPzrM3LB0OQ2Lv9Rl5oZ4uTWcu01xl1Q7Wc3JDN53NT7iLC+QORsHMfR6qg xcPyrRgpzv3Iwau+kzQwZl2rqZJAXlYm7E+h7/7YpePcrECFjc3SlxTqGmBJr7/P0F Ouj3ftyzrrNTDF8l6pWNqdzvkhUXkC2Sr1AoAAlRlJE4jnQILMWHtloZ4+AsVJJpSt g3p9oJnYlho4w== Received: from [10.30.226.235] (localhost [IPv6:::1]) by aws-us-west-2-korg-oddjob-rhel9-1.codeaurora.org (Postfix) with ESMTP id EB98839E4DAB; Mon, 30 Nov 2026 16:10:16 +0000 (UTC) Content-Type: text/plain; charset="utf-8" X-Mailing-List: netdev@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] ipv6: reject released nexthop object routes in ip6_dst_check() From: patchwork-bot+netdevbpf@kernel.org Message-Id: <179605501549.3403811.1796770292058043171.git-patchwork-notify@kernel.org> Date: Mon, 30 Nov 2026 16:10:15 +0000 References: <20261123-bug-net-ipv6-dst-check-released-v1-1-769d320a2470@linux.dev> In-Reply-To: <20261123-bug-net-ipv6-dst-check-released-v1-1-769d320a2470@linux.dev> To: Qiliang Yuan Cc: dsahern@kernel.org, idosch@nvidia.com, davem@davemloft.net, edumazet@kernel.org, kuba@kernel.org, pabeni@redhat.com, willemb@google.com, horms@kernel.org, razor@blackwall.org, netdev@vger.kernel.org Hello: This patch was applied to netdev/net.git (main) by Willem de Bruijn : On Mon, 23 Nov 2026 01:59:13 -0500 you wrote: > A per-cpu IPv6 route through a nexthop object records the fib6_sernum of > its netns, and ip6_dst_check() accepts it as long as that value matches > the fib6_sernum of the netns of its device, without looking at > dst->obsolete as it does for per-cpu routes without a nexthop object. > > When such a route is released with dst_dev_put(), for example when its > nexthop is deleted from a group or replaced in place and the old > nexthop is freed, it is pointed to blackhole_netdev, which belongs to > init_net. For a socket in init_net the recorded fib6_sernum stays > current until something else changes the IPv6 routes there, so the > socket keeps sending into blackhole_netdev: send() succeeds and every > datagram is dropped. > > [...] Here is the summary with links: - [net] ipv6: reject released nexthop object routes in ip6_dst_check() https://git.kernel.org/netdev/net/c/86b669b1d3f0 You are awesome, thank you! -- Deet-doot-dot, I am a bot. https://korg.docs.kernel.org/patchwork/pwbot.html