🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: linux.kernel.netdev
Article #26273

Re: [PATCH net] net: xfrm: interface: restore dst_orig on every xfrm interface

#26273
From: patchwork-bot+netdevbpf
Date: Thu, 03 Dec 2026 10:20
33 lines
9741 bytes
Hello:

This patch was applied to netdev/net.git (main)
by Steffen Klassert <steffen.klassert@secunet.com>:

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
Technical Details
Message-ID: <179629321224.2506917.17589648947027992280.git-patchwork-notify@kernel.org>
Path: mbox-mo1.pugleaf.net!news-lon.pugleaf.net!feed-eu-txt.newsdeef.eu!feed-eu-ch.newsdeef.eu!srl.newsdeef.eu!newsfeed.bofh.team!news.nntp4.net!nntp.xenet.de!news.neodome.net!usenet.network!.POSTED!vger.kernel.org!netdev+bounces-376475-linux-kernel-netdev=dewy.ru
References: <CORE-5IQX.v1.r0.20261120050801-1@mojatatu.com>

Show Full Headers
Complete Article Headers
Path: mbox-mo1.pugleaf.net!news-lon.pugleaf.net!feed-eu-txt.newsdeef.eu!feed-eu-ch.newsdeef.eu!srl.newsdeef.eu!newsfeed.bofh.team!news.nntp4.net!nntp.xenet.de!news.neodome.net!usenet.network!.POSTED!vger.kernel.org!netdev+bounces-376475-linux-kernel-netdev=dewy.ru
From: patchwork-bot+netdevbpf@kernel.org
Newsgroups: linux.kernel.netdev
Subject: Re: [PATCH net] net: xfrm: interface: restore dst_orig on every xfrm
 interface
Date: Thu, 03 Dec 2026 10:20:12 +0000
Organization: Usenet Network
Message-ID: <179629321224.2506917.17589648947027992280.git-patchwork-notify@kernel.org>
References: <CORE-5IQX.v1.r0.20261120050801-1@mojatatu.com>
MIME-Version: 1.0
Content-Type: text/plain; charset="utf-8"
Content-Transfer-Encoding: 8bit
Injection-Info: usenet.network;
	logging-data="2458309"; mail-complaints-to="abuse@usenet.network"
Cancel-Lock: sha1:sN567GYhjCeJsDW5HqlSRHOrIxc= sha256:+3Pb04HqSXh48fKdJGgCw7WK5WEKenXt5ADf0dxd3Z0=
	sha1:yJXFqGQUQ9KNKrTCPCaYRIOAcZ0= sha256:hUS/b8Kwj29OoN88tmgUaCyxuTHidGDbg/op4Jwd52g=
List-ID: <netdev.vger.kernel.org>
X-Mailpost-Empty-Hdrs: X-Spam-Level
X-Received: from localhost (localhost [127.0.0.1])
	by mail.dewy.ru (Postfix) with ESMTP id 9C4551178C7; Thu,  3 Dec 2026 13:20:36 +0300 (MSK)
X-Virus-Scanned: Debian amavisd-new at usenet.network
X-Spam-Flag: NO
X-Spam-Score: -3.401
X-Spam-Status: No, score=-3.401 tagged_above=-9999 required=6.31
	tests=[DCC_REPUT_70_89=0.1, DKIMWL_WL_HIGH=-0.001, DKIM_SIGNED=0.1,
	DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1,
	MAILING_LIST_MULTI=-1, RCVD_IN_DNSWL_MED=-2.3, SPF_HELO_NONE=0.001,
	SPF_PASS=-0.001] autolearn=ham autolearn_force=no
X-Authentication-Results: mail.dewy.ru (amavisd-new); dkim=pass (2048-bit key)
	header.d=kernel.org
X-Received: from mail.dewy.ru ([127.0.0.1])
	by localhost (mail.dewy.ru [127.0.0.1]) (amavisd-new, port 10024)
	with ESMTP id ZLUk75kKdCJw;
	Thu,  3 Dec 2026 13:20:33 +0300 (MSK)
X-Received-SPF: Pass (mailfrom) identity=mailfrom; client-ip=172.234.253.10; helo=sea.lore.kernel.org; envelope-from=netdev+bounces-376475-linux-kernel-netdev=dewy.ru@vger.kernel.org; receiver=<UNKNOWN> 
X-Authentication-Results: OpenDMARC; dmarc=pass (p=quarantine dis=none) header.from=kernel.org
X-Received: from sea.lore.kernel.org (sea.lore.kernel.org [172.234.253.10])
	by mail.dewy.ru (Postfix) with ESMTPS id 1BE641177E7; Thu,  3 Dec 2026 13:20:25 +0300 (MSK)
X-Received: from smtp.subspace.kernel.org (conduit.subspace.kernel.org [100.77.114.92])
	by sea.lore.kernel.org (Postfix) with ESMTP id 9DE9027242; Thu,  3 Dec 2026 10:20:20 +0000 (UTC)
X-Authentication-Results: smtp.subspace.kernel.org; arc=pass header.oldest-pass=0 smtp.remote-ip=127.0.0.1
X-ARC-Seal: i=2; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=pass;
	t=1796293219;
	b=si5/BxOAQ/scd1dOfmeFZqzgWSsR+0/hb+6mM17BLS7tLrD5BDTQMaHaWGSKL5Dy8t3x
	 KhG6Ol6KXSaS/etmFOtusfXmHPOV1kmZkEVnd2qYfJmG/gp2mxJ2J5getgeomoD6quGRO
	 +afDGcm5Kfx3YEc4pTj9VMAEWG0HcUON8SXhdYE8EIjKXixSBSBeanGjrxSVOb5UtgGwx
	 8Gyb1wOwejOXK98wZCQmNdMDOS37WE3sz35FpB58MQAe9i2foT/IFN/YYVOrD+1Qw2uUh
	 /zYcjqtDhfFWO1Mj5ZifsBKGAXtNrfsBc85c1bRysorpZaDzgFVj33IN20oUtmUxjGA==
X-ARC-Message-Signature: i=2; d=subspace.kernel.org; s=arc20261015;
	a=rsa-sha256; c=relaxed/relaxed; t=1796293219;
	h=X-Original-To:Received:Received:DKIM-Signature:Received:Content-Type:
	 X-Mailing-List:List-Id:List-Post:List-Help:List-Subscribe:
	 List-Unsubscribe:List-Owner:Precedence:MIME-Version:
	 Content-Transfer-Encoding:Subject:From:Message-Id:Date:References:
	 In-Reply-To:To:Cc;
	bh=I6sZ6g5iI+lJOc65KVdQqaxHPB9zx7QwpH+YFwRbmww=;
	b=lELgxqnsn7UFBHnc6nzWgqffLd35Eixembe4MkYQOxdXvj6F39nIAh0oyDjlvT/pvoCR
	 JQ8j9PE5YzuNbGNmBo1yGySEwfLh4gOcoIt1y8icmVkKAboGytI9ktZ98t+uHT819HkFg
	 cC2dHEB4Hs0Bi7548DjCvyYUqPDotooBJ6wqI6jQ3bsOvW5G70jds47B1p3XZi8aXHLR6
	 W5E3H9QMrXGmjEf6L98qDtKsJ2RxzZMvKDoWo5WKhv9O3bIIKIttiTvXraKUvnmug+AwU
	 4bm3HMcZibUpk/+LFMyZs/sK4fRrSochnQ4cvGERZAxLJ8YyqOKcG7UX3dgFv9Pu1Tw==
X-ARC-Authentication-Results: i=2; 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=pass header.oldest-pass=0 smtp.remote-ip=127.0.0.1
X-Received: from localhost.localdomain (localhost [127.0.0.1])
	by smtp.subspace.kernel.org (Postfix) with ESMTP id C8946606A32D;
	Thu,  3 Dec 2026 10:20:19 +0000 (UTC)
X-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
X-Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.remote-ip=100.103.45.18
X-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==
X-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==
X-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
X-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)
X-Received: by smtp.kernel.org (Postfix) with ESMTPSA id B766C1F00896;
	Thu,  3 Dec 2026 10:20:13 +0000 (UTC)
X-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==
X-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)
X-Mailing-List: netdev@vger.kernel.org
X-List-Post: <mailto:netdev@vger.kernel.org>
X-List-Help: <mailto:netdev+help@vger.kernel.org>
X-List-Subscribe: <mailto:netdev+subscribe@vger.kernel.org>
X-List-Unsubscribe: <mailto:netdev+unsubscribe@vger.kernel.org>
X-List-Owner: <mailto:netdev+owner@vger.kernel.org>
X-Precedence: list
X-In-Reply-To: <CORE-5IQX.v1.r0.20261120050801-1@mojatatu.com>
X-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