Article View: linux.kernel.netdev
Article #7854Re: [PATCH net v3 2/4] psp: support ipv6 extension headers in psp_dev_rcv() decap
From: Björn Töpel
Date: Tue, 27 Oct 2026 10:30
Date: Tue, 27 Oct 2026 10:30
25 lines
9227 bytes
9227 bytes
Jakub Kicinski <kuba@kernel.org> writes:
> On Mon, 26 Oct 2026 15:05:42 -0700 Todd Bert Freed wrote:
>> > The PSP ICV doesn't cover the outer IPv6 header or its extension headers.
>> > An on-path attacker could take a captured PSP packet, insert one of these
>> > headers, and set saddr to an address they control. This assumes the
>> > device authenticates such packets, which this patch's premise implies.
>> >
>> > Several of those handlers reply with an ICMPv6 error that quotes the
>> > packet. With default sysctls, this happens for an unrecognized routing
>> > header type (type 0, for example) with segments_left != 0:
>> >
>> > Before this patch, all of these packets were dropped at the is_udp check.
>> > Forwarding the decrypted skb itself looks blocked by
>> > sk_validate_xmit_skb() ("unencrypted skb with no associated socket -
>> > dropping"). That leaves the ICMP error path as the open channel.
>>
>> Agree with this finding.
>
> If we're leaking cleartext in ICMP responses that's also a problem
> for TLS offload. We should fix that, based on skb->decrypt. right?
Ugh, interesting. Drop ICMP (no, on v6...), or just include up to, but
not including transport headers?
Technical Details
Message-ID:
<874ie75tbx.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-352360-linux-kernel-netdev=dewy.ruReferences:
<20261023234640.1459291-3-toddfreed@meta.com> <179288570143.3134.8925369868949382653@kernel.org> <CADh2yMyYS-PWP4912En9D6B9up6Kz-hnCthNkWot+e7N8-q7ZA@mail.gmail.com> <20261026175805.6d4dcae5@kernel.org>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-352360-linux-kernel-netdev=dewy.ru From: bjorn@kernel.org (Björn Töpel) Newsgroups: linux.kernel.netdev Subject: Re: [PATCH net v3 2/4] psp: support ipv6 extension headers in psp_dev_rcv() decap Date: Tue, 27 Oct 2026 11:30:26 +0100 Organization: Usenet Network Message-ID: <874ie75tbx.fsf@all.your.base.are.belong.to.us> References: <20261023234640.1459291-3-toddfreed@meta.com> <179288570143.3134.8925369868949382653@kernel.org> <CADh2yMyYS-PWP4912En9D6B9up6Kz-hnCthNkWot+e7N8-q7ZA@mail.gmail.com> <20261026175805.6d4dcae5@kernel.org> MIME-Version: 1.0 Content-Type: text/plain Injection-Info: usenet.network; logging-data="1513215"; mail-complaints-to="abuse@usenet.network" Cancel-Lock: sha1:qcGzlgcJzq/MTtos/zmriEVD8mM= sha256:npw6jIkN/rb52hsf9it3f7lti5lLl4da3IDuEIgudJ4= sha1:yN19GhGb99XR17fowpXBPWO/SAU= sha256:Qf588b00EL+Ol11hBJPpul2v8n1vJkgQhJO7+zKCFAA= 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 0B349125BE6; Tue, 27 Oct 2026 13:32:12 +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 FHKUHpgRnyCz; Tue, 27 Oct 2026 13:32:09 +0300 (MSK) X-Received-SPF: Pass (mailfrom) identity=mailfrom; client-ip=172.234.253.10; helo=sea.lore.kernel.org; envelope-from=netdev+bounces-352360-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 33D65125BE0; Tue, 27 Oct 2026 13:32:00 +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 3E96126228; Tue, 27 Oct 2026 10:30: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=1793097047; b=ZcyqrmvrPFPSlkB8z0gvNGl9pytTlbbMeu5WNBUEvDZHujHwfbKTDUSDMkxwMMq46x63 mRV6ALu8nEu2WSSJ2Tsg6Y2prejxfd6ic63+Vk9OEw9Ay0kfpBTen22CDzO3SdQlf6qtT 3U2jyoRliBomJRZPqPFE1YWzuftMvSDfwJHn6V7YioKFje2xHFD2GUbUu/omnhiINQ25q NRfmh0/Nh/5lNVLC33OIFJb2B/i1Xgq6JcNYvBCm8Nsxa4+kiutuZ7RejHbt71dchvcLR 61nVHamAQj5ogqKRoL1gsj3htILDcrcKodRraW6MAG1hgI9z8Oami3XBda4HBQu8Scw== X-ARC-Message-Signature: i=2; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1793097047; 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; bh=atsgBdyBqegGK3OVxmB2Ib4i2Mom+Mos8vzmgTui5jE=; b=QJbTCzWm0oYRtahOynkxcwzkLafIg/UJDm/Tvcm+LbnLeIROWkh2n1+JBFzNAel3bLww LSttJ9gWxuR63zINTRkQgql/ox5m+Om6sDvwwHdoevfpLMgqZ5n+JnC+IccqQziribsSH SD+j5Sh5oo0cHsFgcaKWdUK7dr7N6O+lLwQ2MDxoje+t0BnZWfZAKB3FlWmJNF5h19vDl x+KVuw7IT/4vGANCtNotmKKU+C1ow5DoJQgCqq7D17U5bJEYDVaSmVeF2xXPFvfE9QW66 MCA9j9ew1fnZmGKaqaBuPKbfBr3LildG6fYBtCcG1qOC5RN4q/YHsQi9x6D3H3qhyFg== 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=ibEQ5JRM; 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 2A786606A324; Tue, 27 Oct 2026 10:30:47 +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=ibEQ5JRM 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=1793097031; b=GmJnN2t7HsNmaVCZ1wmMjMBo4f4Lph1xC2JxUI9uzgyyaki9D3IENoU8vky+7UE2PHfw ScvnRuDMJMIb4RJw7rTT8H4IwLfVKavb7p+1WSbcT8gaXX79+KBJ7JR2kDuD/J1pKxmwi ohnVoKXzr2g7AZrKqtyct3iLQPYewewo10qbuDRtmFRZkgfvtpbIyaR3yrXK1j7Ri+JA8 eGKohAR4wK3dw2aOIk9tmep4LTRIWTucTJnsNBd7EtE11SySYIkVeo70Nt3NpJPLYcq9l zyCxTr8lxR7KN5TQ6I4GVIGUPjCQNRTrSZEAec/EnxpwKRnP7RptMv2M+t2stB8nRtg== X-ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1793097031; h=Received:DKIM-Signature:From:To:Cc:Subject:In-Reply-To:References: Date:Message-ID:MIME-Version:Content-Type; bh=atsgBdyBqegGK3OVxmB2Ib4i2Mom+Mos8vzmgTui5jE=; b=2jljJjTqSrx3jhHursNnQx1LhaeGPgoFqQ1PmD12mxdwou3GdLqiyWPHoVnbVTmgjbCF jsT4X/p8v8ZA+eatRZAaY8XN7q2uN+ASTaGg3xS3GSHFkCjVfJmdksezXopCHvr0IQ/hP DaJSZ8sFsm/Rkrz31uTW/M8mrco0cfWOPT4mXZBHWuysP+9WNj5U2HQSN6R/E5OMlkDJG 4lF4MYN9iN7ZO3Kn/dl+Is7VU0zumZICDzbpa9XvSqNBI8r8kL+MfYgmWKUa33pbE+hcS kZHdV0TMyTk6qCsmilox34nTLlrDChQBaBxp3Ii5QnaggA0a7adfypXPBLuzJ31MZ1g== 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=ibEQ5JRM; 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 CBD8E606A31D; Tue, 27 Oct 2026 10:30:30 +0000 (UTC) X-Received: by smtp.kernel.org (Postfix) with ESMTPSA id CAA5C1F01825; Tue, 27 Oct 2026 10:30:29 +0000 (UTC) X-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=kernel.org; s=k20260515; t=1793097030; bh=atsgBdyBqegGK3OVxmB2Ib4i2Mom+Mos8vzmgTui5jE=; h=From:To:Cc:Subject:In-Reply-To:References:Date; b=ibEQ5JRM+nfVFJq71Qq0Afypd9bmp6lFF7bzm1lzHy8GqnPTZ5RWE0cE93UKnrNPO tzFqXukA/l1OZRRAbQ/1pnPIUl5Y1u4nGSWS1flr8p/+1Ui9tDabfwD9jnDyOxyhLR k/ALoULdgPTNgeyhhnotKEXWx5FgiiyTZ2yaeJq/yO9fJsb7/z99pNo+8BgC9nKE6d VyDf6gCz/7l68rlWVLMLB/V2a2ZZNU2CrFXmzyB11Egpnq6Z4NrKzrgOY9h3ZABeYU GFLIUyncemQuAtiKBGs68MTnobMNsY5X/WNKqtWQ8PECCsfqXEDWZXqCq86lTxuUxA afsj8Y2pq3oQQ== X-Cc: netdev-bot+sashiko@kernel.org, netdev@vger.kernel.org, borisp@nvidia.com, saeedm@nvidia.com, leon@kernel.org, tariqt@nvidia.com, mbloch@nvidia.com, andrew+netdev@lunn.ch, davem@davemloft.net, edumazet@kernel.org, pabeni@redhat.com, daniel.zahka@gmail.com, willemdebruijn.kernel@gmail.com, horms@kernel.org, shuah@kernel.org, cratiu@nvidia.com, raeds@nvidia.com, rrameshbabu@nvidia.com, linux-rdma@vger.kernel.org, linux-kernel@vger.kernel.org, linux-kselftest@vger.kernel.org, dtatulea@nvidia.com X-In-Reply-To: <20261026175805.6d4dcae5@kernel.org> 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