Article View: linux.kernel.netdev
Article #23823Re: [PATCH net] net/tls: publish offload state inside device_offload_lock
From: Anant Garg
Date: Sat, 28 Nov 2026 08:58
Date: Sat, 28 Nov 2026 08:58
14 lines
11437 bytes
11437 bytes
Hi, This issue was discovered during an LLM-assisted code audit and verified by manual code inspection against net/tls/ and mlx5. As noted in the commit message, the patch was compile-tested (W=1, CONFIG_KASAN=y, CONFIG_PROVE_LOCKING=y, CONFIG_TLS_DEVICE=y/n) and checked with tools/testing/selftests/net/tls (965/965 passed in QEMU/KVM), while the hardware tlsdev_ops + NETDEV_DOWN race itself is verified by code inspection only due to lack of physical NIC hardware. Thanks, Anant
Technical Details
Message-ID:
<20261128085856.96525-1-anantxgarg@gmail.com>Path:
mbox-mo1.pugleaf.net!news-lon.pugleaf.net!srl.newsdeef.eu!news.mb-net.net!open-news-network.org!news.nntp4.net!nntp.xenet.de!news.neodome.net!usenet.network!.POSTED!vger.kernel.org!netdev+bounces-373067-linux-kernel-netdev=dewy.ruReferences:
<179585540508.3294.6988362720637393202@kernel.org>Show Full Headers
Complete Article Headers
Path: mbox-mo1.pugleaf.net!news-lon.pugleaf.net!srl.newsdeef.eu!news.mb-net.net!open-news-network.org!news.nntp4.net!nntp.xenet.de!news.neodome.net!usenet.network!.POSTED!vger.kernel.org!netdev+bounces-373067-linux-kernel-netdev=dewy.ru
From: anantxgarg@gmail.com (Anant Garg)
Newsgroups: linux.kernel.netdev
Subject: Re: [PATCH net] net/tls: publish offload state inside device_offload_lock
Date: Sat, 28 Nov 2026 14:28:56 +0530
Organization: Usenet Network
Message-ID: <20261128085856.96525-1-anantxgarg@gmail.com>
References: <179585540508.3294.6988362720637393202@kernel.org>
MIME-Version: 1.0
Content-Transfer-Encoding: 8bit
Injection-Info: usenet.network;
logging-data="918076"; mail-complaints-to="abuse@usenet.network"
Cancel-Lock: sha1:dHxQgimqcGI/YplIGVF9bKNtooI= sha256:+cWBSuXEGHH9f7Q6ZUcTCw0KaoIk6A3arD82ALfD9Os=
sha1:edLr4K6Y6jomK5ptmOX0WIIwwvU= sha256:FjjtoqKJbJpZdKIdggW31dN5v49eANWDuqQeEN0wUN0=
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 AF3E4125F6D; Sat, 28 Nov 2026 12:02:04 +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 3_doaWwTEBJh;
Sat, 28 Nov 2026 12:01:57 +0300 (MSK)
X-Received-SPF: Pass (mailfrom) identity=mailfrom; client-ip=172.234.253.10; helo=sea.lore.kernel.org; envelope-from=netdev+bounces-373067-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 sea.lore.kernel.org (sea.lore.kernel.org [172.234.253.10])
by mail.dewy.ru (Postfix) with ESMTPS id 26F05125F71; Sat, 28 Nov 2026 12:01:48 +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 C941C2AA6E; Sat, 28 Nov 2026 09:01:45 +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=1795856505;
b=2UndrDxWIFat2TEqbYLH/3W6tXh/AwvwBG7eEwMqqPLYdUf8UTo3I/+J4vwq2A5Hrrwu
ZM53k/hMT2GclVkuvMtsMfcdMzPyzre8NhUSOAvaT6j6/BrbnR+XwM+DsVS4vhNkd76o1
//XUQVQs2wBEPp/N/JENy+WsaURJSoqFUO7eQyjfF7NqYenyl64ZRhVXMkmbYVgPQHJvZ
dFjLphG9yQ7hw2M6kJjezgWtgodeTUf7sdqMCDjnLuTOuX0/Ai5LM85EtCQ0B9jx3MiTd
TCa4ZckxIdX4C48cVgzUCd4NdmFxyDEZLKMll00uEA9796ohJne3m1AnXS4jNHR0otw==
X-ARC-Message-Signature: i=2; d=subspace.kernel.org; s=arc20261015;
a=rsa-sha256; c=relaxed/relaxed; t=1795856505;
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:In-Reply-To:
References:X-Mailing-List:List-Id:List-Post:List-Help:List-Subscribe:
List-Unsubscribe:List-Owner:Precedence:MIME-Version:
Content-Transfer-Encoding;
bh=ZlMrjGV2cB9dtnpaJb3k2imX6Vg5jC9PAc9nUTKaf4Q=;
b=0v3LADQKMSPB9nM2lUXox9lSniBOBMuHPw+F02G7YGQWlCgWQyyLD3RjDzQjsert9U+F
NfHYA3X/rWzxdO0yaqX2vmzGZNoQj23MQvCydv1nrMOpNvhhDVPrDdXO3Sbjwms2o43hC
6DVYjbkTtohWJ7anwpHA8mdgyhm+U0Q2SIN7hyrBnU5kZb6lc3mvRK5afWfORQRREczxa
vJZB/BX1EtRylpa/suOWGyJNesdIcdN1LNbbXt+ejEQ9myRnK6hKqi3i2D/GFBkuvlU76
jXXLKx3JRvQoLyZ4IxjWHN/tkkX9PojeyEe/AMeRc93+QYBGnYMKq2kHb9C2d9UyhWw==
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=yYjWjX9l;
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 99656606A329;
Sat, 28 Nov 2026 09:01:45 +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=yYjWjX9l
X-Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.remote-ip=74.125.82.173
X-ARC-Seal: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=none;
t=1795856504;
b=Z9cccjMcjiVQ5p3HG8BxaG5et9hVVP82o0gfNCf5JynLef9lQ8hgVHzr40Hzup/VRuIc
WEVJhBFCV+hX7ZvI8BJbuWFagTYeDmDUcwqbjnNfw+pD0oFmGup+QFrmSvfZBKlddtjus
2sM3oAcEbTKjkLGFY/5oRJC/S0Qpco3AizLZUk/7g6wKDHHFQiBQV5mqWROT+Q8aZ8PPG
/2sVOzWZYuTVZ37imy7yfw5rJvCcY/ms0k0NjyGeNeZl+tayy2C2irV5IWOix0CVGu3EN
HWf0NwxEQKUltuJwQwTufXkvP7gOkpULLxdKJ5wWUqz+jbFFsz4FjbuUPCOs066Sm9g==
X-ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015;
a=rsa-sha256; c=relaxed/relaxed; t=1795856504;
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:In-Reply-To:References:MIME-Version:
Content-Transfer-Encoding;
bh=ZlMrjGV2cB9dtnpaJb3k2imX6Vg5jC9PAc9nUTKaf4Q=;
b=sl3CHIW3i5FgzihNlM+X7kh2ObW4NSfNV318M35SkbUCLbdjnPm/ePeAiV7TjbKd2KVp
4P9YQgelFFu1zJriiTxl3e4mrG/6Q9S14XlK961YH4PMgQsogfdPIfSyy3OtF7UwII4fU
+LEqXd064pQjCr6JeX6Dhuy+68OlmwoA2VUmhR7WRspxwIm8zVeSjtFV1CrcEi89QlMpt
I9ekbVBETfL7i+L4uQhu2sM1B1nuvpwlp7v6GCrc6xaYc/U2AMIjQ/XsCd7aZZFYSwOAA
SpfxwdHvvhqGLJsAe+Joi0ei4NG7JddTydU2jOozDmpB2cEVpay177SEJiQwEr0BxvA==
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=yYjWjX9l;
arc=none smtp.remote-ip=74.125.82.173
X-Received: from mail-dy1-f173.google.com (mail-dy1-f173.google.com [74.125.82.173])
(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 6CC68606A31F
for <netdev@vger.kernel.org>; Sat, 28 Nov 2026 09:01:44 +0000 (UTC)
X-DMARC-Filter: OpenDMARC Filter v1.4.2 smtp.subspace.kernel.org 6CC68606A31F
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-dy1-f173.google.com with SMTP id 5a478bee46e88-3282db206d3so7494223eec.0
for <netdev@vger.kernel.org>; Sat, 28 Nov 2026 01:01:44 -0800 (PST)
X-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
d=gmail.com; s=20260707; t=1795856503; x=1796461303; darn=vger.kernel.org;
h=content-transfer-encoding:mime-version:references:in-reply-to
:message-id:date:subject:cc:to:from:from:to:cc:subject:date
:message-id:reply-to:content-type;
bh=ZlMrjGV2cB9dtnpaJb3k2imX6Vg5jC9PAc9nUTKaf4Q=;
b=yYjWjX9lEL8IXw874ZKQhHDVmBZH3F7V+I/pFpKR3juNLHyhvT2MgMqqibF45J14/V
ODOW7D1hnsk3WwrUWmUxxi9rMhJa6oSbaQpsGSgEiXD+iFrvKG0u3sj6vhII/DodJ3Mu
SkLA3MAeeAanldxzWohh9XKRvI43mAVKdBjcnwzlaTeccc0Q4prJLFKr/iV2/9w0QQmH
2flvxVVpx8Gm1pEwGNFl9WLUN/Tefp4SBFV9Q6fRWotvqs4dCihby1GW/4OpRYj/GROX
uEFbbTLgENLMCpFoa32rStrTLzinVlae/MrY/8Z7wlcRHrj4Wj3VUTRDlH2BE1QRSQGF
xrJg==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
d=1e100.net; s=20260707; t=1795856503; x=1796461303;
h=content-transfer-encoding:mime-version:references:in-reply-to
: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=ZlMrjGV2cB9dtnpaJb3k2imX6Vg5jC9PAc9nUTKaf4Q=;
b=bgfZqdqqQ7ZiEvE9MgbASZcNkOH1+QA0/c/v1xXGOHGUzoJRopOPx98yz6crwjI2s7
b+3fZXa7loXwM4pBZhamyYzEJNtInMzbBLAu4qTZORRnRcF0xKuytuCebFlKU8gpNfh9
8vQ9WZESB47NCHC/wQK5dop5eZg+nVR0yFIUutVAHtGsGhq1pgKGdVxaKzgZ9XWva7du
HnOj5AGOrgOMTC1ELsmqoF80yCHL0xBTxlFeh21iacpWPxmqCVTUPY0jKyPvQdu+jxig
VrtPcwM09KssBwcix0bCKhbB9ZzJ3LNoCYnT9QSn3e1ubI79IAFPsqc20lAkXlPsmjsA
ZH3A==
X-Gm-Message-State: APuU4Z/+aeHZ2JwtqOJ/2O8GJZeEmh0D/9z/rLu5Ml3CuL28jXGLNyNm
COmnspBvHJY+YQCoIL45R+r8y05kEwrLVETOR99b1rKLmyB31KjGT+/+
X-Gm-Gg: AZFdTZfzR7z2ie1eKg4iHQ93623tKJb5bmIFRnUj2yhhfKPLS0bkLO0lybFXt6skR2h
XILJgmxwY8o1s7GrbtwB9/CkXHR7mu3h4IEOG2/HN6OzN26n0eJgS6Fpdp8RincTe3Awi/auV6c
Dj1RAsZijenfYWTuac4U2Lo0j+KmlJgsg37mfcrdsNTanBPNAlk7BES/Hu+GODgj6ei4cBp7EgY
MwtgxWfEgLvcgePYdu8ooICy0RxnPOuC2vuLJbPe037gXS2rA5nJSdxOBt+q+fJO+c8KyQHWaOt
4gfW/hCgXSjFZzZppw3rMA2MjdsJrRSmm+IABLjKUbbPHRP2q57HWAmh+VB8+FSP4qhcC2gWqRW
QIw7hgLNxKUChsj62GSo94PCVSeB9tfqobPfRTmouqrFL//GuGQAnQT1Kui/um86Mrv3LwKzfAz
RlC9yl6e96r0cNZshfRAL0oIefPd5Witop+QjkPsSgJVxmBd5nkcWsVMcIK1Z652Iu1J/HBno6l
ynqB9WcuYt8f/GUi4x71xptSa9vgTdx71pjFlpv2SqtVCnre7Hj/se4lSn5AJFJX7PRMjEckzmp
6ZKZoshQAjRmOicZcDAU9wl2LHSWJHcZLV1utfZJw/rRe8alhtJmC3tLVrgQflLqKwe8qbIG+SU
vtTaxjBY2fFmD1sHNJSxYO5lppSJhKx0Or17gj4nU+7V5hBo=
X-Received: by 2002:a05:7022:1583:b0:1b3:a9c6:b293 with SMTP id a92af1059eb24-1b5568c0198mr28833654c88.25.1795856503433;
Sat, 28 Nov 2026 01:01:43 -0800 (PST)
X-Received: from knomputer.. ([2401:4900:8f55:f867:c07b:846:4da2:5ea0])
by smtp.gmail.com with ESMTPSA id a92af1059eb24-1b556829d31sm103079223c88.9.2026.11.28.01.01.38
(version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256);
Sat, 28 Nov 2026 01:01:42 -0800 (PST)
X-Cc: netdev@vger.kernel.org,
John Fastabend <john.fastabend@gmail.com>,
Jakub Kicinski <kuba@kernel.org>,
Sabrina Dubroca <sd@queasysnail.net>,
"David S . Miller" <davem@davemloft.net>,
Eric Dumazet <edumazet@kernel.org>,
Paolo Abeni <pabeni@redhat.com>,
Willem de Bruijn <willemb@google.com>,
Simon Horman <horms@kernel.org>,
Anant Garg <anantxgarg@gmail.com>
X-Mailer: git-send-email 2.43.0
X-In-Reply-To: <179585540508.3294.6988362720637393202@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