Article View: linux.kernel.netdev
Article #8537Re: [PATCH net v3] octeontx2-pf: fix skb use-after-free with ipsec crypto offload
From: patchwork-bot+netdevbpf
Date: Thu, 29 Oct 2026 11:00
Date: Thu, 29 Oct 2026 11:00
27 lines
8971 bytes
8971 bytes
Hello:
This patch was applied to netdev/net.git (main)
by Paolo Abeni <pabeni@redhat.com>:
On Tue, 27 Oct 2026 19:44:09 +0100 you wrote:
> otx2_dma_map_skb_frag() calls skb_unclone_full() on its own copy of the
> skb pointer. For a cloned skb, for example with tcpdump running on the
> interface, this frees the skb and the new copy is lost on return. The
> transmit path then uses the freed skb and the copy leaks.
>
> Make the skb writable in place in otx2_sq_append_skb() instead, so the
> pointer stays valid. Also do this for nonlinear skbs, as the hardware
> writes the encrypted data back into the frags, which may be shared,
> for example with the TCP retransmit queue.
>
> [...]
Here is the summary with links:
- [net,v3] octeontx2-pf: fix skb use-after-free with ipsec crypto offload
https://git.kernel.org/netdev/net/c/829a09df899d
You are awesome, thank you!
--
Deet-doot-dot, I am a bot.
https://korg.docs.kernel.org/patchwork/pwbot.html
Technical Details
Message-ID:
<179327160481.1758306.11637453865545839129.git-patchwork-notify@kernel.org>Path:
mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!usenet.blueworldhosting.com!diablo1.usenet.blueworldhosting.com!usenet.network!.POSTED!vger.kernel.org!netdev+bounces-353258-linux-kernel-netdev=dewy.ruReferences:
<20261027-nb-otx2-xfrm-unshare-net-v3-1-31dc9d79d11d@tipi-net.de>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-353258-linux-kernel-netdev=dewy.ru From: patchwork-bot+netdevbpf@kernel.org Newsgroups: linux.kernel.netdev Subject: Re: [PATCH net v3] octeontx2-pf: fix skb use-after-free with ipsec crypto offload Date: Thu, 29 Oct 2026 11:00:04 +0000 Organization: Usenet Network Message-ID: <179327160481.1758306.11637453865545839129.git-patchwork-notify@kernel.org> References: <20261027-nb-otx2-xfrm-unshare-net-v3-1-31dc9d79d11d@tipi-net.de> MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 8bit Injection-Info: usenet.network; logging-data="1991701"; mail-complaints-to="abuse@usenet.network" Cancel-Lock: sha1:/2y39/HuAlYGRNVfc0drTM1kMHs= sha256:2VEAhVPkJvRDyBeAwM5dMWYeCS9wXxOMWznFXjzyg1g= sha1:Alqw98FzU5YGzwJyh8qKSo7/x4o= sha256:iAErJSjq7bLnOsJ3zrhUxaYud80mQ7zZJbGDViScgkM= 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 B438B125C63; Thu, 29 Oct 2026 14:06:59 +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 StsLC5Zqw9vt; Thu, 29 Oct 2026 14:06:56 +0300 (MSK) X-Received-SPF: Pass (mailfrom) identity=mailfrom; client-ip=172.234.253.10; helo=sea.lore.kernel.org; envelope-from=netdev+bounces-353258-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 1E4EB12580F; Thu, 29 Oct 2026 14:06:41 +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 3D50F29471; Thu, 29 Oct 2026 11:00:18 +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=1793271618; b=REeC5VpJ9tBWFKH78b1mE5LxOAeE1r5/vdhGTih/UAvlS6PPBGDbAxymaFXD90OGEP6H Sl0lK/OMa/UAPaFwlWNJHEv5Lsa7kHq7HQBS8HqutLvCVCIaM6IEPBtXIwYaJsrbScjHG 9YUQEPXCm0TqdU2tkfVPDLJWRrVf913osOvtzogoIHWoscmtf+/twitO+U6JZGDdGqJ0m Vdlo/XPAV4THZlBA/zYBUTY441D1FYI6G9i3ud3Z5btnDrmejiZfQ+guH7DXYUxFONXDY 16MOJq0/0mDsyR+Qvrd06oNbindqL/2sRIyQm1rjwlqNq1d9TFcTE1PirPfWvKmKCEg== X-ARC-Message-Signature: i=2; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1793271618; 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=ll9zN0Wy1PEA6OGnDGFZM6iVLnvbuI/K0NUCUF8GsKE=; b=PRO966JjFHVxLL6OLd7QEF2E/p3UV6j/5jWROq/iZhyLtQxJPtsyMntjb70KouoDEeg6 5OqNvonDcz+aSjT7iM28Z5F673HI/hcqU2rdJVY+xvK4NTYBQs4krQGBRrPRHtcP8yvNi GuFtedIqk0pF7YU3w5/bc8X2gT9QSGoX+U4mUBiEOCcQ/J7sXK/xotGrPJAElW4KdNafe KQ+7PZ+a6MIp021CIE7wCpuwTF1FErdwK8iEgXe8WWOKeMml/COambRlNLk+pm5SOdAiT t/w7rR08iXl1GvE3uMwSHa3hYiG1czntlQbkEDqwPGPa5ud45zNZsr81zE386FUuh8Q== 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=TCRhEWfI; 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 F2683606A323; Thu, 29 Oct 2026 11:00:17 +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=TCRhEWfI 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=1793271607; b=BpFHybAXwu5fiHcq1xeVDKEH10xgQ4l1RwN+vrc1v7c4sCHPzmJg91yYoE8t2aBJbBOh OV/ARtg3qHQ6ALDBO3HqLwNXkdKZzTujRru2rdnd7iECrIIfVbyue8WtvKTXmBgxMBqjR Ao/eEZ5g+TxywvN6nkBi6q3gZ0rno7XinQcyREAfON5bcjCptgzk+G7dSLixq2YrHco2x HR0uAJ6dAgjzuZ9uqs+531LcmSY0SM/tp+nVS5sKxITXbGxNcqxaw2plL66K7Wdwel76U 9elzZUSBuSOr8NZpomuntyWOpZ2vsdch9gT00ah8JquAe4reasQq1BJ01wtgjCUjjpw== X-ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1793271607; h=Received:DKIM-Signature:Received:Content-Type:MIME-Version: Content-Transfer-Encoding:Subject:From:Message-Id:Date:References: In-Reply-To:To:Cc; bh=ll9zN0Wy1PEA6OGnDGFZM6iVLnvbuI/K0NUCUF8GsKE=; b=cpQiB+Qsg9TKDJZhob5SnxWuoiPTprNWSeABVdiTd8duVVlj0/3Udwu+hOxmNMFZRLzs oEn6s+G9SNVQhOnpA5WRvUeyhByqdmdFC5E8LzORSuNXuzbO0AlBRBh9VNHIKNKeg5rnR F01jAKJXpF+oEEqZfMpZubHWOrpornok/pnWLTroZZdRbWKPnGq9Sw7kCbBbQPUX5KL4R 8qT7ajqEoLQDFsCkxcA9dbudIDtO3pP+3VSZ/1D7BCEad0LRNzrHE123YALv7lNkTpfAi lLuqh1pYN66gj+FUabIlYCg1SJ+W3jJu+MIjTWeh67Gs2PmZ+I/5yT2AMCBvKdolKng== 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=TCRhEWfI; 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 CB654606A31C; Thu, 29 Oct 2026 11:00:06 +0000 (UTC) X-Received: by smtp.kernel.org (Postfix) with ESMTPSA id 5923E1F01825; Thu, 29 Oct 2026 11:00:06 +0000 (UTC) X-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=kernel.org; s=k20260515; t=1793271606; bh=ll9zN0Wy1PEA6OGnDGFZM6iVLnvbuI/K0NUCUF8GsKE=; h=Subject:From:Date:References:In-Reply-To:To:Cc; b=TCRhEWfIXRkxK4wiHcoOAI4lL4q3+G/xlM+Hm6Aj81pJz+qGzemcJ8+4maym+Ucro 2HVh8oFLbYvJE6fAkPjUGQy6E9t3sfgyPIOWlC1a9jy0LHBQxvdncKNRjBlbHi8RQr r0d/A/gXeQkeccfF51/DjTiLGCw/PnKIWf+PjZb4G7+ebFo+RasuGOmk39dlhvSfiz rZw6lRGkpZ0QIVUJYEFR2R5rhvi0S7UvatR/6aCna8HHmLQ+zP+/+gl07Sa6tTBMll HO+SobBl0da6qRuDzpRXgnKrrAFTGGOtmWpR4W0DfGbft0kZm9PyD1kqCC9RO6jV/l e+u3oupeVLP/A== 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 445073ABD290; Thu, 29 Oct 2026 11:00:06 +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: <20261027-nb-otx2-xfrm-unshare-net-v3-1-31dc9d79d11d@tipi-net.de> X-Cc: sgoutham@marvell.com, gakula@marvell.com, rkannoth@marvell.com, sbhatta@marvell.com, bbhushan2@marvell.com, andrew+netdev@lunn.ch, davem@davemloft.net, edumazet@kernel.org, kuba@kernel.org, pabeni@redhat.com, netdev@vger.kernel.org, linux-kernel@vger.kernel.org