Article View: linux.kernel.netdev
Article #25611Re: [PATCH net v2] net: keep skbs that carry a socket out of gro_cells gro
From: patchwork-bot+netdevbpf
Date: Wed, 02 Dec 2026 04:20
Date: Wed, 02 Dec 2026 04:20
29 lines
9093 bytes
9093 bytes
Hello:
This patch was applied to netdev/net.git (main)
by Willem de Bruijn <willemb@google.com>:
On Thu, 26 Nov 2026 19:30:34 +0200 you wrote:
> bpf_sk_assign at tc ingress holds a reference on a socket that isn't
> rcu freed such as an established tcp socket, until the receive path
> steals it. ip_rcv_core keeps a prefetched socket so when the assigned
> packet is an ipip, gre or esp packet the socket stays attached after
> decap and their rx paths pass the skb to gro_cells_receive. A socket
> that is rcu freed carries no reference, but if NFQUEUE queues the packet
> __nf_queue takes one and switches the destructor to sock_edemux, so the
> skb owns a reference when it reaches gro_cells_receive as well. GRO merges
> skbs with the same skb->sk into one flow and clears skb->sk and
> skb->destructor of each merged skb without calling the destructor so
> every merged skb leaks a socket ref.
>
> [...]
Here is the summary with links:
- [net,v2] net: keep skbs that carry a socket out of gro_cells gro
https://git.kernel.org/netdev/net/c/7a3ee12c2009
You are awesome, thank you!
--
Deet-doot-dot, I am a bot.
https://korg.docs.kernel.org/patchwork/pwbot.html
Technical Details
Message-ID:
<179618520974.1177297.15983012092208547493.git-patchwork-notify@kernel.org>Path:
mbox-mo1.pugleaf.net!news-can.pugleaf.net!usenet.blueworldhosting.com!diablo1.usenet.blueworldhosting.com!usenet.network!.POSTED!vger.kernel.org!netdev+bounces-375550-linux-kernel-netdev=dewy.ruReferences:
<20261126173034.1860377-1-razor@blackwall.org>Show Full Headers
Complete Article Headers
Path: mbox-mo1.pugleaf.net!news-can.pugleaf.net!usenet.blueworldhosting.com!diablo1.usenet.blueworldhosting.com!usenet.network!.POSTED!vger.kernel.org!netdev+bounces-375550-linux-kernel-netdev=dewy.ru From: patchwork-bot+netdevbpf@kernel.org Newsgroups: linux.kernel.netdev Subject: Re: [PATCH net v2] net: keep skbs that carry a socket out of gro_cells gro Date: Wed, 02 Dec 2026 04:20:09 +0000 Organization: Usenet Network Message-ID: <179618520974.1177297.15983012092208547493.git-patchwork-notify@kernel.org> References: <20261126173034.1860377-1-razor@blackwall.org> MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 8bit Injection-Info: usenet.network; logging-data="1885799"; mail-complaints-to="abuse@usenet.network" Cancel-Lock: sha1:zaGpjCJTlrn/77r0jnLiV3qBykY= sha256:PjtsQ1xkyfKte84cUFRH30TR7v72PNqQKjin3M9dbcs= sha1:ebK12MsMNy1vPSuhJpHgX8VXYY0= sha256:zENmPzySLjdrOF5txDVPoUcmBVQq9fnFuMsvidfLfTU= 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 5703811755C; Wed, 2 Dec 2026 07:20:31 +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 mN6hwRyPHaFN; Wed, 2 Dec 2026 07:20:28 +0300 (MSK) X-Received-SPF: Pass (mailfrom) identity=mailfrom; client-ip=172.234.253.10; helo=sea.lore.kernel.org; envelope-from=netdev+bounces-375550-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 E9235117558; Wed, 2 Dec 2026 07:20:16 +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 963B02FF9E; Wed, 2 Dec 2026 04:20:12 +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=1796185212; b=llr2RY6G4VocTJM17JJwc9sMpasTxXDmZ/edgr/AfZHLI7fr0G8HC1ybjhvjMpe5sNQY td+IF/8FfmpT9EaynCcdbBTRQx1KwzpQrHjwpZwtevBuwT7HSEA5inOma9WEby01eCH9h 01BfGoA43TEVagOmsdFUFgr2Msi7d3/Gzzsa/3qulqYlZa0dht2s5xNm77CKDXV8xFQiW B2IYuaFwOK7PxSerzwKfeDpAy1hsp3Mb5LsTiOQSS2R6RJlHq7j3+tkTIwRTndz0C54tX TSrevEOjn0fjnqDWtA7QDChYBU+8qOLi8m+deS0F8vk0GHz1jnf2KBJeQY/NCgvb/jQ== X-ARC-Message-Signature: i=2; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1796185212; 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=xTS2vTZdnNb1dA53EuRgX1qMe97EPaNovXz5GeLd8ag=; b=AMo0rY37AQ8xJ1JO1smZO1Qa5QZtYaBysKsLYkdIv9MD+N0h9RjzMXdCzJQY/64vNcXv KjL4OathhmtFp+iLkEPaHRbA1Zov6TtUBfHHbRlgN4PfAJIDWz+gfaCwQ0WokbYUt9QmY TWtt0b0pnNv6LSZ3to/VYrqBxOdEuUq6lfV4kcpEZP9OWogGOcDPHV+sjkfEPmDtn56md hZRcaeNkzn0HsnEvFODb35zI+7OU/CjjMRjSO6ImT15D5TXy4Xm+jEEpaxifA08bHsRyf yaBvewMjn+9YOing+yfoiGBMpz3IDyfB9YTnSLMhEb06xXxk0Qlmccd6jQie38Awq/A== 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="HFzzj/cS"; 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 68CF5606A331; Wed, 2 Dec 2026 04:20:12 +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=HFzzj/cS 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=1796185211; b=HaoleDSdJoQwt440yqQq4RtM+exY3Gpwgpqel5Fx8iUcFS4+Tn5Fbw4WRSn977lkjtj5 BuOoBunfvQXSuC3+RGbzxH6WBPqj0w3Zd1PwwkzkLV31pphTPesP+hfmXFDmAIXBp+4U9 X14+uWqhOR//NIIsRafukRQNJmYiomELELS8RYPoA9yCjjy0tM6VxqrjbVknxrcITuM8r 58c+v0QZZhErzoS2NqpBzqGQ9f61GZ2bpqTiZfvk4Lfx973qqjQ1ZQashGjR0EVnzApaP C1heecyiEtJ8LFo7T9UVcgHewv+I4UsbcqRSX7N9KtdJE1uue//51t4hV64Fer6/W8Q== X-ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1796185211; h=Received:DKIM-Signature:Received:Content-Type:MIME-Version: Content-Transfer-Encoding:Subject:From:Message-Id:Date:References: In-Reply-To:To:Cc; bh=xTS2vTZdnNb1dA53EuRgX1qMe97EPaNovXz5GeLd8ag=; b=Z5NqklBMXZ6t638ZEH3H0BzYrNnr8YrgTtFS8TbdToJKbMkw4u8KZXfghMRQBvPRfS4H 8l53SfeEjUsZCyGfEtReczw5rnu/aLJA5ofepKqojE4GYqZflSPDOcKevlDzqp7jUsYC/ x2GcW4h9bxl0WaAtgaVam2BxPglVcM3gPQR9tPurfXSN2VY8B8G8SE2OcFDIqFO0KF0yW O1CVq9Use5PZLdTaipI1SA1UUauilUlFzq9936Ot5Ol/7+pOiC66FDjO9PE84a2JfxSQs M5/1D6oC+LqeoXZ0K1jdaF3Jx3nxSWNPMijYgsz5j7IivQZRdFbDTuBtiOcxf9lPJxQ== 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="HFzzj/cS"; 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 87974606A32D; Wed, 2 Dec 2026 04:20:11 +0000 (UTC) X-Received: by smtp.kernel.org (Postfix) with ESMTPSA id 3FC721F00896; Wed, 2 Dec 2026 04:20:11 +0000 (UTC) X-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=kernel.org; s=k20260515; t=1796185211; bh=xTS2vTZdnNb1dA53EuRgX1qMe97EPaNovXz5GeLd8ag=; h=Subject:From:Date:References:In-Reply-To:To:Cc; b=HFzzj/cSVpPTF7s6aXwxjsySysMkySFbyy4Q244iMtXIahAVU21Hb9IBBc6jinZmg WErbr0AYScNPVB1cxAlryCRF3ZazVRI+aL7klqd+W0mg1HiDX0yg0pgfZ0fwMzmo64 l0joMz/4x/JW5pPV9qL+zOLP9Tp2NW63X+/82eMeVnIONxHe4m9NTuDhAz251nGIOj z+3x51Vu1nXIINwM/pKVleL5Itk8Fw9Q8LF8IZNEnMSNRHeC8VjPbudFnjfpHTg9cT A7tv+Z/zMLtlkUNVO6ISQWYuKU6URr/m8JkLnCFiIn/m0hAKPviSLeKzkIm1HzSaxQ pMdkad1kwiIRA== 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 346D6380821E; Wed, 2 Dec 2026 04:20:11 +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: <20261126173034.1860377-1-razor@blackwall.org> X-Cc: netdev@vger.kernel.org, davem@davemloft.net, edumazet@kernel.org, kuba@kernel.org, pabeni@redhat.com, horms@kernel.org, ast@kernel.org, kafai@fb.com, joe@wand.net.nz, daniel@iogearbox.net, willemb@google.com, bpf@vger.kernel.org