Article View: linux.kernel.netdev
Article #6425Re: [PATCH net 0/2] psp: drop packets with extension headers in transport mode
From: Björn Töpel
Date: Thu, 22 Oct 2026 11:59
Date: Thu, 22 Oct 2026 11:59
41 lines
9528 bytes
9528 bytes
Todd Bert Freed <toddfreed@meta.com> writes: > On Wed, Oct 21, 2026 at 3:07 PM Daniel Zahka <daniel.zahka@gmail.com> wrote: >> > >> > The first patch drops the packets, the second patch adds selftests for >> > that case. >> > >> >> Why not just fix psp_dev_encapsulate() to put the psp headers in the >> right position? With the self test we are going to make PSP + ipv6 ext >> header == drop part of the uapi? > > If the original ipv6 packet has extension headers, then the nexthdr on the > fixed ipv6 header identifies the first extension header, and the L4 proto is > in the nexthdr on the last one in the chain. > > psp_dev_encapsulate() places the udp+psp headers after all the extension > headers in this case. > > The issue is that it rewrites the fixed ipv6 header nexthdr to be UDP, > > ipv6_hdr(skb)->nexthdr = IPPROTO_UDP; > > It would need to walk the chain, and set the nexthdr on the final extension > header to UDP, instead, if the correct policy were for udp+psp to come > after the extension headers in all cases. > > I'm not sure that's the correct policy though ; for some headers (e.g. the > fragment header) it might make sense to leave them on the inner packet. > Note that the psp spec does not describe this. Perhaps the user should > express the desired policy? Fragment extension header would be weird to keep in transport mode... I'd say drop is the right call. Björn
Technical Details
Message-ID:
<87y0bq54jz.fsf@all.your.base.are.belong.to.us>Path:
mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!usenet.blueworldhosting.com!diablo1.usenet.blueworldhosting.com!usenet.network!.POSTED!vger.kernel.org!netdev+bounces-350545-linux-kernel-netdev=dewy.ruReferences:
<20261021210200.788191-1-toddfreed@meta.com> <DMAUWQVPIVKP.1QAK1YSA76EHJ@gmail.com> <CADh2yMypAdV07rRufDqj1aOdEzAqEaH2bDkJ2jYV_z1_9iXRkg@mail.gmail.com>Show Full Headers
Complete Article Headers
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!usenet.blueworldhosting.com!diablo1.usenet.blueworldhosting.com!usenet.network!.POSTED!vger.kernel.org!netdev+bounces-350545-linux-kernel-netdev=dewy.ru From: bjorn@kernel.org (Björn Töpel) Newsgroups: linux.kernel.netdev Subject: Re: [PATCH net 0/2] psp: drop packets with extension headers in transport mode Date: Thu, 22 Oct 2026 13:59:44 +0200 Organization: Usenet Network Message-ID: <87y0bq54jz.fsf@all.your.base.are.belong.to.us> References: <20261021210200.788191-1-toddfreed@meta.com> <DMAUWQVPIVKP.1QAK1YSA76EHJ@gmail.com> <CADh2yMypAdV07rRufDqj1aOdEzAqEaH2bDkJ2jYV_z1_9iXRkg@mail.gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Injection-Info: usenet.network; logging-data="203187"; mail-complaints-to="abuse@usenet.network" Cancel-Lock: sha1:8T/rs+FsukP7Y3HppOkKF9lHP1c= sha256:24kRW9dU1oT/7CL5lLu3dJxn/07z7Kvz5DS4CsCMncU= sha1:Jxn8J/L5itIZoBKIV7qcxrkZhLg= sha256:inJpg/ZBA9Fx5mAZIqV/Ib5KYQ2GrSXV1fA8I+FXqOw= 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 7B4C5111264; Thu, 22 Oct 2026 15:02:32 +0300 (MSK) X-Virus-Scanned: Debian amavisd-new at usenet.network X-Spam-Flag: NO X-Spam-Score: -3.739 X-Spam-Status: No, score=-3.739 tagged_above=-9999 required=6.31 tests=[DCC_REPUT_70_89=0.1, DKIMWL_WL_HIGH=-0.339, 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 NdyRO5jmyiFf; Thu, 22 Oct 2026 15:02:30 +0300 (MSK) X-Received-SPF: Pass (mailfrom) identity=mailfrom; client-ip=172.105.105.114; helo=tor.lore.kernel.org; envelope-from=netdev+bounces-350545-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 tor.lore.kernel.org (tor.lore.kernel.org [172.105.105.114]) by mail.dewy.ru (Postfix) with ESMTPS id AA01011125F; Thu, 22 Oct 2026 15:02:21 +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 99D142CFB8; Thu, 22 Oct 2026 11:59:48 +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=1792670388; b=VVdOVl5s+jxhPQygDzXfoxcnbEWZvFN7LNxIaj5cBeKLejaYb92q9zT8SJHbO/zU1XOy FQoYD5LpPMVd2kBm6KY5YfUBCNRX/LO8N+xJ4Nw/jS6QrgEq/6UBNiDtjySq5+Nj4iIsI cPmgE8HzTuQZ435TKkQHOANkw67kDHZ7znfIrVUNeXJkrGCxPULTBxKB5jVO4EanwqHyG 2QdMvmLQ/4s+J1Pwn2y+a75kAHzOCk5jSEKffifuBllKgFtodtz508c/xqtFOdYtDq2R/ AyaG1jMoxvtIHHLKlRPjBqo61pf/Yd1aFo9xnoijsT1ZfEqvtO6QtkNXm2wuQLcJn7g== X-ARC-Message-Signature: i=2; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1792670388; h=X-Original-To:Received:Received:DKIM-Signature:From:To:Cc:Subject: In-Reply-To:References:Date:Message-ID:X-Mailing-List:List-Id: List-Post:List-Help:List-Subscribe:List-Unsubscribe:List-Owner: Precedence:MIME-Version:Content-Type:Content-Transfer-Encoding; bh=UKjpkzKRbSMgDVnYVD4K12MfTDj9Feon+mme8ohFRXg=; b=njp2autRMqIwoWZuQJM4Xw4rnBj6H8fnZqHo+UwABwiNCZA0o8qznw57ONB0pWY2S+0O m36vEA05374uiHSaAgpIV6be/J65157jVMQciBDTW2gA6pGVGMpYdd42oajLW3gpD5NL7 p0SloSFep5tgL/Onp5g5LorV+XjCYLR577SnPR8BB7QjNmaucF/vCIouzjZPOh9YHn9cV 0ZivNBxHPNf5H3nr77A92xmSgHbMyOmsw0GVgZ5yVvjBisp395ALTL85jgtHW57UZ2y1U YMDhoOEonMtlcj1WWJL5O4XP1afk5egfDQ7ouwMljo4fWar8vIybqb5GnrbicYjJKkw== 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=WRZ9888u; 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 56DDC606A321; Thu, 22 Oct 2026 11:59:48 +0000 (UTC) X-Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key, unprotected) header.d=kernel.org header.i=@kernel.org header.a=rsa-sha256 header.s=k20260515 header.b=WRZ9888u 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=1792670387; b=D9jsiy0D5Tn7+gmWEwte3CI8HlkG+cPNs1SYd1X28Sara03+1sWGn0pE8opM3Fo1TyGB AOKFIaj7QROSDbtU/bIk3UtTvs8uJONDRM16of5ytm3aW3lYQLJiVderHDR4Fhxgivlrd 4KDfreKEn4albJDy/Tcvn7Xg1JI39V30pKEvdPFuyZawJaZyukUbUhuQM4eMa2d7iHUiA GWa01GRRvDPt+e+HIwkp/kEy/1TnOQPEPVmpzGS/UTYsaFYaLTjytRa20Jg58g2tLt6Au FmKiSDha7my0GqCrjKUpLKxjTZ3Y0kOhSkvSrVjF0cs7azBgwQNZSMPclPT1tmUUnVg== X-ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1792670387; h=Received:DKIM-Signature:From:To:Cc:Subject:In-Reply-To:References: Date:Message-ID:MIME-Version:Content-Type:Content-Transfer-Encoding; bh=UKjpkzKRbSMgDVnYVD4K12MfTDj9Feon+mme8ohFRXg=; b=FCcahLSDZBUteNe6HZ2/BqIpkPmzW0yuRSS/dc/HWoFutJLL0YnNM7wzDQuQkrztMV7p tXXfMbtKqATxhuRClG4JitkHawNmf/0E64iQUP/NrFyueEgqRxmnqUmXNJdVwnRjxUorN fQZq8S+3JvwbVd8fZKf5Xu2ls7O+KCWwZbXveU3BMYNF84eoPqNn8tcijSsX1vF7WoPsa 8y2TM8Lb9d/mH+LmX0EJK8qvp4tVmhMItFFAoMW3KK6Z47YC7x7x8q27DSkzocslHndbu FjK1a6z7dMwMEynufBsJsbSrUO0eRVyxLg4Lj6NJznVisCFpM6YbhnltqoktsJ9JlzQ== 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=WRZ9888u; 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 3DBF5606A319; Thu, 22 Oct 2026 11:59:46 +0000 (UTC) X-Received: by smtp.kernel.org (Postfix) with ESMTPSA id 507491F000C2; Thu, 22 Oct 2026 11:59:46 +0000 (UTC) X-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=kernel.org; s=k20260515; t=1792670386; bh=UKjpkzKRbSMgDVnYVD4K12MfTDj9Feon+mme8ohFRXg=; h=From:To:Cc:Subject:In-Reply-To:References:Date; b=WRZ9888uYV/NGTRjAgcGE/B0b3QbJVcmrcRqBTj0F2bq/KIpihx976fDxmZ9Fesv4 1OcrjKfdx0yGO82bwyp7JE66ZCezlp5pMhPPgO0duKPUadymPLgbFXJ9jcdH+2EhvU edj0FN+TGSEndiqVUSjoCFvVbYBG46oMq77Ltov94WQ5lpeftUoJpLcbJHlunMUOKQ cKgah8ngeOUAfgv0EMHhZnyTj8f8hkPp+jBz3bCjBz39Dmq5k9S2hYp+5ryYNhZ+Og s1PRaQChA2e7J+Gch1PEZaTTRDl3ZQgt8FJXz5RGltlQodR4bdiJwu8PDJTr0zxhPX jkMv+pBxT5Cnw== X-Cc: netdev@vger.kernel.org, Jakub Kicinski <kuba@kernel.org>, Willem de Bruijn <willemdebruijn.kernel@gmail.com>, "David S. Miller" <davem@davemloft.net>, Eric Dumazet <edumazet@kernel.org>, Paolo Abeni <pabeni@redhat.com>, Simon Horman <horms@kernel.org>, Andrew Lunn <andrew+netdev@lunn.ch>, Shuah Khan <shuah@kernel.org>, Rahul Rameshbabu <rrameshbabu@nvidia.com>, Raed Salem <raeds@nvidia.com>, Cosmin Ratiu <cratiu@nvidia.com>, linux-kselftest@vger.kernel.org X-In-Reply-To: <CADh2yMypAdV07rRufDqj1aOdEzAqEaH2bDkJ2jYV_z1_9iXRkg@mail.gmail.com> 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