Article View: linux.kernel.netdev
Article #17932Re: [PATCH net] net/tls: serialize context removal in tls_device_down()
From: patchwork-bot+netdevbpf
Date: Tue, 17 Nov 2026 14:50
Date: Tue, 17 Nov 2026 14:50
27 lines
8870 bytes
8870 bytes
Hello:
This patch was applied to netdev/net.git (main)
by Paolo Abeni <pabeni@redhat.com>:
On Thu, 12 Nov 2026 04:32:17 +0000 you wrote:
> tls_device_down() moves each context to tls_device_down_list while
> holding tls_device_lock. It then drops its reference and removes the
> context after releasing the lock.
>
> tls_device_queue_ctx_destruction() removes contexts from the same list
> under tls_device_lock. If it removes an adjacent context while
> tls_device_down() is deleting its node, the two list updates can
> interleave. One update can then target a context freed by the other path,
> causing a use-after-free write.
>
> [...]
Here is the summary with links:
- [net] net/tls: serialize context removal in tls_device_down()
https://git.kernel.org/netdev/net/c/81c8333141b9
You are awesome, thank you!
--
Deet-doot-dot, I am a bot.
https://korg.docs.kernel.org/patchwork/pwbot.html
Technical Details
Message-ID:
<179492700528.635190.1108444356171254276.git-patchwork-notify@kernel.org>Path:
mbox-mo1.pugleaf.net!news-lax.pugleaf.net!srl.newsdeef.eu!newsfeed.bofh.team!nntp.comgw.net!eternal-september.org!feeder.eternal-september.org!usenet.network!.POSTED!vger.kernel.org!netdev+bounces-365360-linux-kernel-netdev=dewy.ruReferences:
<20261112043209.102404-1-lee@jaeyeong.cc>Show Full Headers
Complete Article Headers
Path: mbox-mo1.pugleaf.net!news-lax.pugleaf.net!srl.newsdeef.eu!newsfeed.bofh.team!nntp.comgw.net!eternal-september.org!feeder.eternal-september.org!usenet.network!.POSTED!vger.kernel.org!netdev+bounces-365360-linux-kernel-netdev=dewy.ru From: patchwork-bot+netdevbpf@kernel.org Newsgroups: linux.kernel.netdev Subject: Re: [PATCH net] net/tls: serialize context removal in tls_device_down() Date: Tue, 17 Nov 2026 14:50:05 +0000 Organization: Usenet Network Message-ID: <179492700528.635190.1108444356171254276.git-patchwork-notify@kernel.org> References: <20261112043209.102404-1-lee@jaeyeong.cc> MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 8bit Injection-Info: usenet.network; logging-data="2356873"; mail-complaints-to="abuse@usenet.network" Cancel-Lock: sha1:GdZMBZNRTagojZgQsvXihJDv1oE= sha256:oCr7jiPFSsf8jpUs3wtBG9SKx06Ad+kasCOmF9qpIrY= sha1:hXYOG+JBDWXEGZ3mMLGAUmdVXYg= sha256:MQxL+AQu9JRDNI/pbB+vHm1mlYMwQrFDKu3+IbEoDhg= 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 E9C4C114FB1; Tue, 17 Nov 2026 17:50:29 +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 F36hAW-ZK5S6; Tue, 17 Nov 2026 17:50:26 +0300 (MSK) X-Received-SPF: Pass (mailfrom) identity=mailfrom; client-ip=172.234.253.10; helo=sea.lore.kernel.org; envelope-from=netdev+bounces-365360-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 E3BD7114F4F; Tue, 17 Nov 2026 17:50:17 +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 72CA6322D7; Tue, 17 Nov 2026 14:50:09 +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=1794927007; b=UXdbaDH4fDWkszj+w4lmqY1tsSVoqsJOkvM6MgqngB8b7PhDuaBFxqSIL0+sx+rQXuVk HXQ2IfTrJfW0p27vYalLIFKGHM0QkutYfqhOn4q6UMqpDpOOxo/iRe1cHAIfIZpNO+m5P IxI9IYrtluDcTfKAZuDFM5r9hKWcAuSI1S4sNMd0AkWC5C2t5B3k0336BY+Kp9dViIzD5 vPuTevDHfcg3b4mKwYzg0UWgiGQREz1ipYyCKtrNT9OM+s37YaXsd4z04/GAE/lpRavg5 LwRCWX3LvQ5si2wcoByMW4TwnYp1bAnOmI3zY1LCzCdEaoRX0W49G7luWlPg1wiMCaQ== X-ARC-Message-Signature: i=2; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1794927007; 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=9f/zHcLvxWtQu21XecKTcghtz6+6bj2ttB2w08JqT4I=; b=NF0BByiZhYlc9wrklKShPA2qSfVvQ9fOcd5ZmY7V9AeGRvGvsn+3uB3biEmgUgAI0mj1 ie+pvImMweER6EcZqYcave9Wxbi0n4rSnJtU2y9jVXOeHUC5nagVKWsyMzk4aUCRwVVRQ /Lxh47s9RYNgkycbCzlXWpkp59gjeM3He8hU2ufbfSqR8sLXrEI/JT+MHCbIzYxKtDCTR 0ai2C7ib6IWpQglFDTcNh90YyomUFpUIFvamvPkT6mwL0uNjAWhY0roBd6qefsybJ8hyk +syTTDY6FDGmUXPGOc23C3AtlUNr/Ky6OiF9rbl7YdcGWYT1OodUF1QlhhywIG8Hx2A== 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=aigczfsA; 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 8B29D606A330; Tue, 17 Nov 2026 14:50:07 +0000 (UTC) X-Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.a=rsa-sha256 header.s=k20260515 header.b=aigczfsA 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=1794927006; b=bh2ErS3YyGAKeyH4OjvzjDAwBZeYVJADWNnDiYb2NaFAxAOoBjCBQQ6+A892OF9hf1MY qa83Lfu25aTRPrSqTldngPLvaBQi9O2y3CUb7HEJPhhR/PS/bc/zKUTylZZeow0v1VHqv ZFZlzuLaZWdTzO1AlQcTHdyvf3Y5qbHyQS8yfTf5R9eujPZ6T35qpAN74KHmujAZaNNB4 mlTt+9urcw+dg5jDd1z40DP7SHBO1Z2EGVa7HB2OLrke6/g1JIF422XILCXTP1pcu5mj8 zjRA42GfakH428eK0MsXuJeb604mGcqAVbYlumO/fYnXjWxqDXS6pmQ2X8970guQdsg== X-ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1794927006; h=Received:DKIM-Signature:Received:Content-Type:MIME-Version: Content-Transfer-Encoding:Subject:From:Message-Id:Date:References: In-Reply-To:To:Cc; bh=9f/zHcLvxWtQu21XecKTcghtz6+6bj2ttB2w08JqT4I=; b=nuH2T/YtDvtOq8sT3ToHJUooJ3ku6aOu3JAjl+ju/YZzJml1QuIW9R6cd1yK0pCKmibw OYS04+wcPqH6dP5d/fU93DDXkaiCiNijyBM3HeVOONMeX5N75zaWQ2hLjDE/3Vdb73ss7 mqjIpGMqtpIRIjIoWmr7NsY91u0m17pkIo2O3LhCC+DbXWEGW0yFiFjVs1c+Vb6CwDM1G CPsALdN7pVFDvJBwmJI+jdIXuChB5YO+iqlD8jc+VFLM2RUQL8oBoBZZhJ8HrHxhI3Ibm U/eCcx9yUCEB0xiFucfTQFZGViLvH3S/HkqmNCsiUXhak4ug8Ok+ZdZrkgXfiB2bEYA== 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=aigczfsA; 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 AA3F9606A323; Tue, 17 Nov 2026 14:50:06 +0000 (UTC) X-Received: by smtp.kernel.org (Postfix) with ESMTPSA id 81C8B1F000C5; Tue, 17 Nov 2026 14:50:06 +0000 (UTC) X-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=kernel.org; s=k20260515; t=1794927006; bh=9f/zHcLvxWtQu21XecKTcghtz6+6bj2ttB2w08JqT4I=; h=Subject:From:Date:References:In-Reply-To:To:Cc; b=aigczfsALaWDHs09gJhyZVzsB9hidXg5hWYHJu311um3SmJ3/hc21RlfMJav5wK86 l8eXI+7oO9+xCRJYjNwFGGIWNTYi8ilyJqFSNWRMwZKPjWhUOfMPhth+mRQxN45Z9y KnmJT6RhPhv4YlEBR5u45lWucwcDhbPt9c9cMtHo73ivEubo5hshVXeafnC0BlqlUE 7Ho/7uLNbH8Pc291aZdpO0ROOLhbZOsgjp7Oz8LEcZRxUff6u0MOAIQNtzmADZ46c3 TdiPxCvGaPco1jTxeCJaDZuyQhkD3lxMXlWr21R9E3Loy6VU4ArpCeGbH3JSZIBZjO PbjyeP4pZKxtw== 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 7761B3927056; Tue, 17 Nov 2026 14:50: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: <20261112043209.102404-1-lee@jaeyeong.cc> X-Cc: netdev@vger.kernel.org, john.fastabend@gmail.com, kuba@kernel.org, sd@queasysnail.net, davem@davemloft.net, edumazet@kernel.org, pabeni@redhat.com, horms@kernel.org, alice.kernel@fastmail.im, tariqt@nvidia.com, linux-kernel@vger.kernel.org, stable@vger.kernel.org