🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: linux.kernel.netdev
Article #8013

[PATCH net 0/2] octeontx2-pf: fix ipsec transmit error paths

#8013
From: Nicolai Buchwitz
Date: Tue, 27 Oct 2026 19:54
30 lines
9557 bytes
Two pre-existing bugs in the ipsec transmit error paths, flagged by the
clashiko review of my earlier ipsec fix for this driver [1].

Both look like edge cases to me, but at least the path in patch 1 (an SA
removed during rekey or teardown while packets are still queued) looks
plausible to me. But don't take my word for it, I'm not an octeontx2 user.

Compile-tested only, I have no octeontx2 hardware.

[1] https://lore.kernel.org/all/20261022-nb-otx2-xfrm-unshare-net-v2-1-5590c9325bcd@tipi-net.de/

Signed-off-by: Nicolai Buchwitz <nb@tipi-net.de>
---
Nicolai Buchwitz (2):
      octeontx2-pf: fix skb use-after-free on ipsec transmit drop
      octeontx2-pf: pass the skb to otx2_dma_unmap_skb_frags()

 drivers/net/ethernet/marvell/octeontx2/nic/cn10k_ipsec.c |  5 ++++-
 drivers/net/ethernet/marvell/octeontx2/nic/otx2_common.c |  5 ++---
 drivers/net/ethernet/marvell/octeontx2/nic/otx2_common.h |  3 ++-
 drivers/net/ethernet/marvell/octeontx2/nic/otx2_txrx.c   | 10 +++++-----
 4 files changed, 13 insertions(+), 10 deletions(-)
---
base-commit: 06e1899f01565572d746a8c9ed1bc94041dd7690
change-id: 20261027-nb-otx2-ipsec-tx-fixes-net-58cf6deaeda6

Best regards,
--  
Nicolai Buchwitz <nb@tipi-net.de>
Technical Details
Message-ID: <20261027-nb-otx2-ipsec-tx-fixes-net-v1-0-2114c4f10c36@tipi-net.de>
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!usenet.blueworldhosting.com!diablo1.usenet.blueworldhosting.com!usenet.network!.POSTED!vger.kernel.org!netdev+bounces-352593-linux-kernel-netdev=dewy.ru

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-352593-linux-kernel-netdev=dewy.ru
From: nb@tipi-net.de (Nicolai Buchwitz)
Newsgroups: linux.kernel.netdev
Subject: [PATCH net 0/2] octeontx2-pf: fix ipsec transmit error paths
Date: Tue, 27 Oct 2026 20:54:05 +0100
Organization: Usenet Network
Message-ID: <20261027-nb-otx2-ipsec-tx-fixes-net-v1-0-2114c4f10c36@tipi-net.de>
MIME-Version: 1.0
Content-Type: text/plain; charset="utf-8"
Content-Transfer-Encoding: 7bit
Injection-Info: usenet.network;
	logging-data="1620195"; mail-complaints-to="abuse@usenet.network"
Cancel-Lock: sha1:LvOA9RtYl+00g1eaDc6Dk7u9Bn0= sha256:3JzFphW4YE9LfRhKex3L2ZlU/kP0RmRjvbhB3eVhcTk=
	sha1:K6qT3vuS1nXuYSEcrLtgwR8a77g= sha256:3uSokqTFtElYE+Zk8SyBvoULfUZ1pBYIXmQaJOw/nMo=
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 094AF125C13; Tue, 27 Oct 2026 22:55:16 +0300 (MSK)
X-Virus-Scanned: Debian amavisd-new at usenet.network
X-Spam-Flag: NO
X-Spam-Score: -3.05
X-Spam-Status: No, score=-3.05 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, HEADER_FROM_DIFFERENT_DOMAINS=0.25,
	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=tipi-net.de
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 tSjEA-_TCiTW;
	Tue, 27 Oct 2026 22:55:13 +0300 (MSK)
X-Received-SPF: Pass (mailfrom) identity=mailfrom; client-ip=172.234.253.10; helo=sea.lore.kernel.org; envelope-from=netdev+bounces-352593-linux-kernel-netdev=dewy.ru@vger.kernel.org; receiver=<UNKNOWN> 
X-Authentication-Results: OpenDMARC; dmarc=none (p=none dis=none) header.from=tipi-net.de
X-Received: from sea.lore.kernel.org (sea.lore.kernel.org [172.234.253.10])
	by mail.dewy.ru (Postfix) with ESMTPS id AAE7C125C0D; Tue, 27 Oct 2026 22:55:03 +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 D76302CF22; Tue, 27 Oct 2026 19:54:35 +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=1793130875;
	b=h4luO4UBsf/o76r3PqAp9347umPljasTHeYRhCSAFkhM4mk9Okq8lQKud0OpPeAqd8BT
	 4xKaYhZAeIWMOHKSFDiG4JNWhnUWm9qT4HZPcFj3EapJPQvHhOOmA9xXVXBqvBKQMVrXj
	 YHR9MGaZQkn1ks6L2EJCZLhqgQCxSv6vQVzfNUg5Ajd0ZScpNfDKPVwD3ExuWWkZrkG58
	 zYrdt/fWyJxQQ7c+J9cDRZogVhL4U9OqGZUh0uPpoHfrL1mPDoCkYi3Ce1HaacnbKg9WF
	 +wI5MY2Xpl5U35/41iGG1vro4U6psXxlMBSYuKpdFQds30S7fu7WJOf10XOufQTefpA==
X-ARC-Message-Signature: i=2; d=subspace.kernel.org; s=arc20261015;
	a=rsa-sha256; c=relaxed/relaxed; t=1793130875;
	h=X-Original-To:Received:DMARC-Filter:Received:DKIM-Signature:From:
	 Subject: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:X-B4-Tracking:X-Change-ID:To:
	 Cc:X-Mailer:X-Last-TLS-Session-Version;
	bh=e0cNosVIvrwrLg1oyemNTICbA8kWNi/5IpjZtAuHw0M=;
	b=gH9PUStxqbeZcMcF7W35alAv7Gg5OqTrpktZZQle+46nXWRKlf3LCTb4M1bOk2MLgVit
	 1k7vZXuVwxhFCeHll1g6tcGgCPV7ASARFZ1EGgMQhujRY9j26If5fQvj+jjM9ESSNce38
	 7MVTuykaarBIhubkvKx8YqxQzdjme0UZ9xeQ8MWJX1etAyjW4UkCgs1D+1JB1gvPPRA+y
	 bE29/lfQZM/Vdsyr4P3DQ1Uvii+LZ4WVNiQGEnNpN89/lQ9YAG04nprH8C1UstlSlaDBg
	 f4KlKTi1emsZPNytL6X2SaXQpQHpne61BDqZzm1jGoNplLOIr0TD6cPzdiPv7jXOVbw==
X-ARC-Authentication-Results: i=2; smtp.subspace.kernel.org; 
	dkim=pass header.d=tipi-net.de header.i=@tipi-net.de header.a=rsa-sha256 header.s=dkim header.b=qfkxsh1r;
	dmarc=none header.from=tipi-net.de;
	spf=pass smtp.mailfrom=tipi-net.de;
	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 EC43B606A332;
	Tue, 27 Oct 2026 19:54:34 +0000 (UTC)
X-Authentication-Results: smtp.subspace.kernel.org;
	dkim=pass (2048-bit key, unprotected) header.d=tipi-net.de header.i=@tipi-net.de header.a=rsa-sha256 header.s=dkim header.b=qfkxsh1r
X-Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.remote-ip=194.13.80.246
X-ARC-Seal: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=none;
	t=1793130869;
	b=dnTZf7zeFRPj++F9LxSz2AAQlOsypirgxYO21+jmGAYN5r5HvevO2uvngpOYbWNxiOVC
	 oM9IiSWq+7UhVUEeMGVOdwFgsvSz929IE9fgZ8ay7sTH/prtNedbQPn8YLJ0zcxOA9HPj
	 hxbvT198bHSLJAhwb01EMLWm/Nhv76+8hMWq0QopsgMbhIf3Vx4M7cfdUO69/HARiBuBt
	 2L1ReNw/8XJd1aQhDJvuO/PXERviwIq0kZz3UOV0Vyj/w9re0yvNe6IpWIqrtGJWyuYkW
	 L8xfnmbhij2Robw3FCUE8XhqM/WS1rsF/wSl9+jDP71vNmfL6T9mdHwH8d3eDHp85sQ==
X-ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015;
	a=rsa-sha256; c=relaxed/relaxed; t=1793130869;
	h=DMARC-Filter:Received:DKIM-Signature:From:Subject:Date:Message-Id:
	 MIME-Version:Content-Type:Content-Transfer-Encoding:X-B4-Tracking:
	 X-Change-ID:To:Cc:X-Mailer:X-Last-TLS-Session-Version;
	bh=e0cNosVIvrwrLg1oyemNTICbA8kWNi/5IpjZtAuHw0M=;
	b=nK/TPdh/qr1ahyEfkmvNORh+W1IxO9xPi1KjDA+xgwQS5wWzjfarYSrqQ8rjrcytQe+k
	 jXutTrsfqeEoymtNmthgWVZ0eYFKkSfLfe7097yrsi1QOZGpiOkgo8wVA85Rz9+zF6Soz
	 UifwHzQCD1ua9+igt3vGx/XgFZND9sVtDfuuEyxrLtx1mLFIUlK83S0hwIc9IJ7EqQLDQ
	 kmq3cGPG/8QYlNxrR0eJS0P+ZyJuGl9GMOYoA7du+z2t3QNT2nh8Nzln1dVHFNgfHdMQT
	 +20t8i8T6lIbKefGeQ++5LD6K0RLeEDwSkqCYidQmWZxrAVtP88g3WjfNRKS2ZpdzMg==
X-ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; 
	dmarc=none header.from=tipi-net.de;
	spf=pass smtp.mailfrom=tipi-net.de;
	dkim=pass header.d=tipi-net.de header.i=@tipi-net.de header.a=rsa-sha256 header.s=dkim header.b=qfkxsh1r;
	arc=none smtp.remote-ip=194.13.80.246
X-Received: from mail.tipi-net.de (mail.tipi-net.de [194.13.80.246])
	(using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)
	 key-exchange X25519 server-signature ECDSA (prime256v1) server-digest SHA256)
	(No client certificate requested)
	by smtp.subspace.kernel.org (Postfix) with ESMTPS id 6B702606A31E;
	Tue, 27 Oct 2026 19:54:27 +0000 (UTC)
X-DMARC-Filter: OpenDMARC Filter v1.4.2 smtp.subspace.kernel.org 6B702606A31E
X-Authentication-Results: smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=tipi-net.de
X-Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=tipi-net.de
X-Received: from [127.0.0.1] (localhost [127.0.0.1]) by localhost (Mailerdaemon) with ESMTPSA id 79884A3764;
	Tue, 27 Oct 2026 20:54:21 +0100 (CET)
X-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=tipi-net.de; s=dkim;
	t=1793130864; h=from:subject:date:message-id:to:cc:mime-version:content-type:
	 content-transfer-encoding; bh=e0cNosVIvrwrLg1oyemNTICbA8kWNi/5IpjZtAuHw0M=;
	b=qfkxsh1rAKW1wNqU8PbiW83tUJZduSKcfU8wo2MTD+9rHU3bhPu1ho28M3p+gnufPyymoi
	QDW1CSorX6F8MQBsYQv3IJzhpe8bDC71URfOQn/PXZ9Pz/z+ZHzP8qy8YZJQvgP+now76U
	WgeyUkYoEVE8uJKtcajo/wcBycWNVDdk7qNbyen3oeSDIuVVWHsbEtCbGxHVY8063l5A5U
	ljeVT6IMizyZfwO88E69Mg9lgPqPkaTSQzdcy5kdsYJhIlsa2Hd3t41e2cgCTT9f41aXdQ
	w/7Xmxk82cKqeS89nNoqXsFcuy+KiZM6To8QZlXgYT7zw9gY7F5vi34DK7L6Fg==
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-B4-Tracking: v=1; b=H4sIAAAAAAAC/yWMywrCMBBFf6XM2oE2YBR/RVykya2Oi7RkogRK/
 71TXZ77OCspikDp1q1U8BWVORsMp47iK+QnWJIxud75oXcXziPPtTmWRRG5Np6kQTmj8vkaJ58
 QkIInEywFv9L+d7IBPf6hfsY3Yj20tG07WEHQcYMAAAA=
X-Change-ID: 20261027-nb-otx2-ipsec-tx-fixes-net-58cf6deaeda6
X-Cc: netdev@vger.kernel.org, linux-kernel@vger.kernel.org, 
 Nicolai Buchwitz <nb@tipi-net.de>
X-Mailer: b4 0.16.0
X-Last-TLS-Session-Version: TLSv1.3