Article View: linux.kernel.netdev
Article #16484[PATCH net 0/2] ipv6: drop encapsulated packets when no source address is available
From: Justin Iurman
Date: Sun, 15 Nov 2026 00:00
Date: Sun, 15 Nov 2026 00:00
24 lines
11399 bytes
11399 bytes
Both ioam6 and seg6 (encap modes) lwtunnels select the source address of the outer IPv6 header with ipv6_dev_get_saddr() when no tunnel source is configured, but ignore its return value. When no usable address is available (e.g. none configured yet in the L3 domain, or only tentative ones), the outer source address is left untouched: - ioam6: it keeps the source address copied from the inner header, which may belong to another node for in-transit traffic; - seg6: the outer header has just been pushed, so it holds whatever stale bytes were in the skb headroom. Both patches drop the packet in that case, like other encapsulation failures. Justin Iurman (2): ioam6: drop the packet if no outer source address is available seg6: drop the packet if no outer source address is available net/ipv6/ioam6_iptunnel.c | 11 +++++++---- net/ipv6/seg6_iptunnel.c | 26 ++++++++++++++++++-------- 2 files changed, 25 insertions(+), 12 deletions(-) -- 2.34.1
Technical Details
Message-ID:
<20261115000047.14669-1-justin.iurman@gmail.com>Path:
mbox-mo1.pugleaf.net!news-lax.pugleaf.net!usenet.blueworldhosting.com!diablo1.usenet.blueworldhosting.com!usenet.network!.POSTED!vger.kernel.org!netdev+bounces-363497-linux-kernel-netdev=dewy.ruShow Full Headers
Complete Article Headers
Path: mbox-mo1.pugleaf.net!news-lax.pugleaf.net!usenet.blueworldhosting.com!diablo1.usenet.blueworldhosting.com!usenet.network!.POSTED!vger.kernel.org!netdev+bounces-363497-linux-kernel-netdev=dewy.ru
From: justin.iurman@gmail.com (Justin Iurman)
Newsgroups: linux.kernel.netdev
Subject: [PATCH net 0/2] ipv6: drop encapsulated packets when no source address is available
Date: Sun, 15 Nov 2026 01:00:45 +0100
Organization: Usenet Network
Message-ID: <20261115000047.14669-1-justin.iurman@gmail.com>
MIME-Version: 1.0
Content-Transfer-Encoding: 8bit
Injection-Info: usenet.network;
logging-data="1691605"; mail-complaints-to="abuse@usenet.network"
Cancel-Lock: sha1:ERxoJ06NTLlhF5y0Y0/Z0SyCtW8= sha256:jYS+DUmELUUhmsFcINOd18iBramMGJUGdcGQf9zr1Yo=
sha1:DPmfSXcOzk/zNkA3wNff5MGGv3A= sha256:wGPzz1AISdI7yxHseSwOctZGM9jEcd4r4aCuxRxXzTk=
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 2065C114901; Sun, 15 Nov 2026 03:01:32 +0300 (MSK)
X-Virus-Scanned: Debian amavisd-new at usenet.network
X-Spam-Flag: NO
X-Spam-Score: -3.049
X-Spam-Status: No, score=-3.049 tagged_above=-9999 required=6.31
tests=[DCC_REPUT_70_89=0.1, DKIM_SIGNED=0.1, DKIM_VALID=-0.1,
DKIM_VALID_AU=-0.1, FREEMAIL_FORGED_FROMDOMAIN=0.001,
FREEMAIL_FROM=0.001, HEADER_FROM_DIFFERENT_DOMAINS=0.249,
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=gmail.com
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 GYtY5e59oD5C;
Sun, 15 Nov 2026 03:01:29 +0300 (MSK)
X-Received-SPF: Pass (mailfrom) identity=mailfrom; client-ip=172.105.105.114; helo=tor.lore.kernel.org; envelope-from=netdev+bounces-363497-linux-kernel-netdev=dewy.ru@vger.kernel.org; receiver=<UNKNOWN>
X-Authentication-Results: OpenDMARC; dmarc=fail (p=none dis=none) header.from=gmail.com
X-Received: from tor.lore.kernel.org (tor.lore.kernel.org [172.105.105.114])
by mail.dewy.ru (Postfix) with ESMTPS id E463D1148BC; Sun, 15 Nov 2026 03:01:20 +0300 (MSK)
X-Received: from smtp.subspace.kernel.org (conduit.subspace.kernel.org [100.77.114.92])
by tor.lore.kernel.org (Postfix) with ESMTP id B612C3422E; Sun, 15 Nov 2026 00:01:14 +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=1794700872;
b=jZDqNzblkBmFsbbSvqBHobEOnfY0eQqWu/OuD1Dgm4HTOEkHXBXkAOq9mCLvrMJmky6b
BAIJHYVpkBmfoZzJuZo8xdj3SjRHbAy2J7K+meQhWe1vCFTP8RGLbgDtHakRSjb9d8Wbp
M7B8g8qMmL94gCotkfCnA60HinlsXmeR9OASK7qcLRdu6RJyDQaHMe7vaYl2Ox7MW+VaO
BS9haqRspntxD9HCUxN2Kki0+3YP70fbCtBtBLrPb7OGWKdydFWkt7apTL98C9YsIdNeo
5FlMXo7UdpH5wCeJPhl8a4vcpz2xFpA9w0avm13d3KW5LT3U7yFbEjmyWZPJ+O7VBKw==
X-ARC-Message-Signature: i=2; d=subspace.kernel.org; s=arc20261015;
a=rsa-sha256; c=relaxed/relaxed; t=1794700872;
h=X-Original-To:Received:DMARC-Filter:Received:DKIM-Signature:
X-Google-DKIM-Signature:X-Gm-Message-State:X-Gm-Gg:X-Received:
Received:From:To:Cc:Subject:Date:Message-Id:X-Mailer:X-Mailing-List:
List-Id:List-Post:List-Help:List-Subscribe:List-Unsubscribe:
List-Owner:Precedence:MIME-Version:Content-Transfer-Encoding;
bh=JsG9lkoAjMpLA4+i0YCphibVf/tVMTeDhEOu+z6mj9M=;
b=qw/pBPv6ccbi7X0r0HXjOWKAdVw7+fbJDDIzi2atqlsDieU780V0fPfYLJOvEioTyxiL
qdiHNZR5RAOTe+gXAWK5UEHqGl5k5dSBZion56S8erTH1T/AgeSR/tG90poPMN43hhWJY
hfitt18s33EqfxAph94Ok20ARURTOUfx48/1Ykg7ChIbUFfhFavzeReMsZRIYWFmfTCA3
eQRe1BccWPbZ4v6qlgsyDuOOcpFqSqF6M3s2xNQEH/LFGAjQ/RRhQ9ufzuXdIFJKFyTK7
Ce/U0gNIDNw5LWXXlZUrIP/QmdyqWlsKTtopY9C1hN0NH35kmpU2K2QaWH8KqaqmRCQ==
X-ARC-Authentication-Results: i=2; smtp.subspace.kernel.org;
dkim=pass header.d=gmail.com header.i=@gmail.com header.a=rsa-sha256 header.s=20260707 header.b=K3THX4FZ;
dmarc=pass header.from=gmail.com;
spf=pass smtp.mailfrom=gmail.com;
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 75F20606A331;
Sun, 15 Nov 2026 00:01:12 +0000 (UTC)
X-Authentication-Results: smtp.subspace.kernel.org;
dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.a=rsa-sha256 header.s=20260707 header.b=K3THX4FZ
X-Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.remote-ip=209.85.128.51
X-ARC-Seal: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=none;
t=1794700871;
b=wRoNex4Wq3qbuor6Wmupmrv1qk644GthVUKVxd8NbWupjAcIG4oq6EfH8CwNLUt2AKYW
cBdUL4xkB37G4wzo5E190zbIJ/Vcv1QwVtQU+Co/YQ7g1DDw7uJ8rGh94RX2SOKJi9WPo
CL0/PzLm5iDyE+P465ko6X+9q944H8pAZRVqBtVWgFEtZTeMCCgSbXFNX29941qAwtDqm
oazXHOUWBK/daoqA/BTKJ+fGAb+3JES0uoCAWIMuF9G3Qp9gXFHjnNPNUP4pLIrMQE50n
eHoSkZ/OaVPtl6AVyFiR+o9BhkFi9ddcmADgfT4/0jTbiHia0g5x6rL6XMZQv6snASA==
X-ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015;
a=rsa-sha256; c=relaxed/relaxed; t=1794700871;
h=DMARC-Filter:Received:DKIM-Signature:X-Google-DKIM-Signature:
X-Gm-Message-State:X-Gm-Gg:X-Received:Received:From:To:Cc:Subject:
Date:Message-Id:X-Mailer:MIME-Version:Content-Transfer-Encoding;
bh=JsG9lkoAjMpLA4+i0YCphibVf/tVMTeDhEOu+z6mj9M=;
b=kHClLXR/7HWPCkAjPoTxbPAjsbFiy72VP1ZwKNWR82D4cVvGhy529LpWA5lRfpI1FoJA
gJbrxBe4dNJyOrTfg0FMoWYxuV2fc3azdHKJnK+D5GFvpRMb1BsnL4K9l6RFG2/nNm4Eb
CmxeFdJXYYQlrxaE2gaKjGoYYrZrFqNnbTGBAu+0VojsEhB8q9MsiAb9d6tq6IMoNxIJN
0v9R12UJPV7Ka8koMC3tVry1D5tz9cbEdFMre2870Q90cgRTY47NfhZEbKzLpokSlQ7/h
1KCCfaho5BcOllwDPNDYm7rz8DXVI9ic80+jA5F7r8NIJ454fKKFAM4JEg+98WkEYzQ==
X-ARC-Authentication-Results: i=1; smtp.subspace.kernel.org;
dmarc=pass header.from=gmail.com;
spf=pass smtp.mailfrom=gmail.com;
dkim=pass header.d=gmail.com header.i=@gmail.com header.a=rsa-sha256 header.s=20260707 header.b=K3THX4FZ;
arc=none smtp.remote-ip=209.85.128.51
X-Received: from mail-wm1-f51.google.com (mail-wm1-f51.google.com [209.85.128.51])
(using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits)
key-exchange X25519 server-signature ECDSA (prime256v1) server-digest SHA256)
(No client certificate requested)
by smtp.subspace.kernel.org (Postfix) with ESMTPS id 38F7D606A329
for <netdev@vger.kernel.org>; Sun, 15 Nov 2026 00:01:10 +0000 (UTC)
X-DMARC-Filter: OpenDMARC Filter v1.4.2 smtp.subspace.kernel.org 38F7D606A329
X-Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com
X-Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=gmail.com
X-Received: by mail-wm1-f51.google.com with SMTP id 5b1f17b1804b1-4ac95761c85so12819005e9.2
for <netdev@vger.kernel.org>; Sat, 14 Nov 2026 16:01:10 -0800 (PST)
X-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
d=gmail.com; s=20260707; t=1794700869; x=1795305669; darn=vger.kernel.org;
h=content-transfer-encoding:mime-version:message-id:date:subject:cc
:to:from:from:to:cc:subject:date:message-id:reply-to:content-type;
bh=JsG9lkoAjMpLA4+i0YCphibVf/tVMTeDhEOu+z6mj9M=;
b=K3THX4FZXHJzwP07wwzci6B6NEbw5DoH2LG97QH8uTZYJhzrBIqx7AWXQ1zzlSTUr7
8Atgi4hgekzafTNqFjBqB5RsXChsiBgQgzV+w/LhRdEXDHvWW4TV+5xC5cTCXHL4dX6Y
RYaHBfZ1CaLCPwdE2JwjH0C8NiZhJfo74kqPFnDsncwRZhSUtYv9LL3aBheqJ1qKYiBi
CPvv5T4RsQaq/x+YCqAkzjjcLi0MMPLahjIy2s0ZSBUM1f5di0NCkueEDj9Q33Zqqez6
umAI+mlauPAszpiBhC4IPiMv6JjdMO8tPRSqGCG5HseprJ2hmSWSjziy3tAEv/nPUGxJ
I9Wg==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
d=1e100.net; s=20260707; t=1794700869; x=1795305669;
h=content-transfer-encoding:mime-version:message-id:date:subject:cc
:to:from:x-gm-gg:x-gm-message-state:from:to:cc:subject:date
:message-id:reply-to:content-type;
bh=JsG9lkoAjMpLA4+i0YCphibVf/tVMTeDhEOu+z6mj9M=;
b=wTkyflIRYBKn/2oa4EJpqNN89qDJat4+5n/5i1bGGq7GWDpsi0XjqSs2Ig2onOp0Dj
g1s+1RimfdCREPSZuIt4+c0fjlCudjcVeQZzFwF2KVKFlj7fXsL/S38CarmeHNbKSEm4
GjzEh1gX3Bvna+Wfa+8ZDX4TgdQ5spcnAlftYrxWD9Kw6WvClNtXKAkpkj2cBu7f7Hog
dc3A1Oi4DvJUeoR5tGPomNsINWt3TpAhyBURvaLeEO0qeMPzE8e41L+/NulZWtWYkCPJ
nIByJN1qquyeG/FRWOl24ZN5cYoYmO5vBluwTYUlVeIvdCrNx6WZtY4WPUCIbsPD0cgD
oJCQ==
X-Gm-Message-State: APuU4Z82pYsyt7QgiPHDyUVfUBYVNxoqAsyKzOt6yIEg9Wch4C0PSfzv
jxD+lEXFRC0epV5X4gebqJqjN3Wt/n5Tk1U3cBenYReDevnShMaHnMcG1kQANQ==
X-Gm-Gg: AYBFou3QG9e8qLPG/up/8W1Td2jpUd1jAHGo7N2vZPzjBvibo8fNZKGl3uSProqu43X
p+dVaJl8mCc4ThrtpZm1NoVzVTpoKUv79sH9E9L4cjQs7a6ByVogJmhztCiqdguSnTOFW7vkOfK
Ztw73SQ6jfv6zna8018trRvs88ysFK0Xu2WC6VKuDikISpZ24zyPKC5po/ZzuEmQgAZUrgn37dP
5+qPm9fsOh3FlWS1QShBS/38tdWuaNztXy1boN8a7aFTjryUBEDvA0V1jpolw5122Rp+bNfMaU1
Q7m4Z77wCggDVz9sGY2sVd4H9DXeKMQTZfTiF+gOKKQpYjBtaR1zJ3EgpNou9QIVCwcBNW4AD37
vRHHhSDthdZ/ojC4e62YsPTjNA4bJlVDSKVjlMdbex9fYYIAFiDiMGy+ImUYwl0gIJqIPybZxsd
aKWvCdWTUQH+vMq87YFZ8rc0LMgST2ovAuPTum1IqB+hNsN9oTZbGBplv50lG2gEHI5MIYSZYs+
Xo/uuz7967aMFw9kHAJkyi2zf9LqMFAn7WvwzHi9NljeSuziKqdDhNU/e6tg+rDrdhx03U0oj4g
dJwntfVlqwGAbvkaQC5Y0ycF5E265+zIVHtxnmE/LWXa4UC8aQ==
X-Received: by 2002:a05:600c:1d08:b0:4a6:b49f:9ae5 with SMTP id 5b1f17b1804b1-4bb55a898abmr135074895e9.34.1794700869294;
Sat, 14 Nov 2026 16:01:09 -0800 (PST)
X-Received: from localhost.localdomain ([2a02:a03f:a75e:9a00:a644:3b4b:4691:92a4])
by smtp.gmail.com with ESMTPSA id 5b1f17b1804b1-4bb5b4a3fcdsm142366405e9.0.2026.11.14.16.01.08
(version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256);
Sat, 14 Nov 2026 16:01:08 -0800 (PST)
X-Cc: davem@davemloft.net,
edumazet@kernel.org,
kuba@kernel.org,
pabeni@redhat.com,
horms@kernel.org,
andrea.mayer@uniroma2.it,
justin.iurman@gmail.com
X-Mailer: git-send-email 2.34.1
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