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=1796293214; b=BdrRTgN/53ExhytiyaE67++cBhcAjS/vIV73GvGLB5OaFAx3B+GasGuBJcPDEDuFBq5e GlLd3rVCxPJbvHTrP+c8QFLVYW4EVTUz7sI2gnYvHWV0oExjQQSAh+Zz1CRvQYYQuBUVh Q08xABqUkH6xVFAGk3mFOqS3QoOeukQ0PSyWoe8nnKbQZRj17K0cmGwGf1beG60sejBOM LxxpID94K8yilR7CfD1nN5+PZg7Vm8h3QBu7oqGYFAmk3SKGwiJ3IMmMa3ZaAkyis+27Z cNPCGBGKqR/UfxTOSE7nu7SOfhGii9tEFpvE3OSf2Gsv96FQSqD6kgzfaLfw9UWbQEA== ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1796293214; h=Received:DKIM-Signature:Received:Content-Type:MIME-Version: Content-Transfer-Encoding:Subject:From:Message-Id:Date:References: In-Reply-To:To:Cc; bh=I6sZ6g5iI+lJOc65KVdQqaxHPB9zx7QwpH+YFwRbmww=; b=sJPKdm2tLd/FckLMYcxIDdTzm1toyIkxZReVZKrX2PS8XVtWyQnXQHYJxSA3dg3udDvq Ouk6uW5q5i15IvZjdI4ONeT7MAJUB7Z4CHRVaxpyTWFjKpGRadp6r1pzIO1ylouEWj0h8 b0S5IxbUjuMc7mmXMceDX08681n2VW8sEFpzr1GzNXQ8XZjePaN/9TEr62v9CGdojZVU9 RSxF4uQllvLQOh0hNop6tu4GA+ljzalev2nLoOkQd0HD3KmzB7Q7xMkZePyr7LmFS6E7z NWeuDTDj3zqqE/ubNR5Jp2eJAqUGyL5uPbm4uu0sXJQycIrbDDWukIUuGYp/icQh3hQ== 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=T2SOuL0Z; 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 E4D9B606A333; Thu, 3 Dec 2026 10:20:13 +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=T2SOuL0Z Received: by smtp.kernel.org (Postfix) with ESMTPSA id B766C1F00896; Thu, 3 Dec 2026 10:20:13 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=kernel.org; s=k20260515; t=1796293213; bh=I6sZ6g5iI+lJOc65KVdQqaxHPB9zx7QwpH+YFwRbmww=; h=Subject:From:Date:References:In-Reply-To:To:Cc; b=T2SOuL0ZXP7q+ZAoPq0F+D69t+IjunJ/pSFAC4AZNYA/3dVLJuc1zd2FieQq2fyIY 6nmUh2rjDfhecbnHynrkxetHKizldYwiesNyjqNuSYNqNso1bB1+uQ6M7ujCDSM3ZB a42XmuxIbRvx7ZjRFk1q9dR5rukinwHROd5sYPCNpgObP7zLcdcp01QyP1edYhW19H FeihcxJ5Q0xFrKKGP9ykfNEpi4pnFvPytyDC2fKtDMMvFmsnwRCTMrgx9SbobHyJOz L9O8+gCa+iW1k9PLYlw+h9nLfJIqBDov3cwHdX1aYKUd6g+8aJgl78M8yRDPDeU4sV EeEfbR2tOTflg== Received: from [10.30.226.235] (localhost [IPv6:::1]) by aws-us-west-2-korg-oddjob-rhel9-1.codeaurora.org (Postfix) with ESMTP id AE7883808236; Thu, 3 Dec 2026 10:20:13 +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] net: xfrm: interface: restore dst_orig on every xfrm interface From: patchwork-bot+netdevbpf@kernel.org Message-Id: <179629321224.2506917.17589648947027992280.git-patchwork-notify@kernel.org> Date: Thu, 03 Dec 2026 10:20:12 +0000 References: In-Reply-To: To: Jamal Hadi Salim Cc: netdev@vger.kernel.org, steffen.klassert@secunet.com, herbert@gondor.apana.org.au, davem@davemloft.net, edumazet@kernel.org, kuba@kernel.org, pabeni@redhat.com, willemb@google.com, horms@kernel.org, daniel@iogearbox.net, john.fastabend@gmail.com, sdf@fomichev.me, martin.lau@linux.dev, martin.lau@kernel.org, ast@kernel.org, andrii@kernel.org, eddyz87@gmail.com, memxor@gmail.com, song@kernel.org, yonghong.song@linux.dev, jolsa@kernel.org, emil@etsalapatis.com, ihor.solodrai@linux.dev, eyal.birger@gmail.com, ipsec@lists.linux.dev, bpf@vger.kernel.org, stable@vger.kernel.org, jiri@resnulli.us, victor@mojatatu.com Hello: This patch was applied to netdev/net.git (main) by Steffen Klassert : On Fri, 20 Nov 2026 09:08:56 -0500 you wrote: > Found while auditing the xfrm metadata consumers of a steered packet. One > of them is an xfrm interface, which restores the original route before the > xfrm lookup; the swap warned on the metadata dst still installed in the > skb, and only the collect_md arm restored the route at all. > > The issue: > An xfrm interface takes the if_id and the underlying device either from its > configuration or, in collect_md mode, from the xfrm metadata on the skb. > When that metadata also carries the route the packet arrived through, > xfrmi_xmit2() puts the route back on the skb, because the xfrm lookup takes > the address family from it. skb_dst_set() expects the dst slot to be empty > for a reference counted dst and warns when it is not, so the route landed > over a metadata dst that was still there; a kernel built with > CONFIG_DEBUG_NET=y panics on the first packet that takes this path when > panic_on_warn is set. > > [...] Here is the summary with links: - [net] net: xfrm: interface: restore dst_orig on every xfrm interface https://git.kernel.org/netdev/net/c/552253ba07f6 You are awesome, thank you! -- Deet-doot-dot, I am a bot. https://korg.docs.kernel.org/patchwork/pwbot.html