From mboxrd@z Thu Jan 1 00:00:00 1970 Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.remote-ip=100.103.45.18 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== 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== 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 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) 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 Received: by smtp.kernel.org (Postfix) with ESMTPSA id 3FC721F00896; Wed, 2 Dec 2026 04:20:11 +0000 (UTC) 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== 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) Content-Type: text/plain; charset="utf-8" X-Mailing-List: netdev@vger.kernel.org List-Id: List-Post: List-Help: List-Subscribe: List-Unsubscribe: List-Owner: Precedence: list MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Subject: Re: [PATCH net v2] net: keep skbs that carry a socket out of gro_cells gro From: patchwork-bot+netdevbpf@kernel.org Message-Id: <179618520974.1177297.15983012092208547493.git-patchwork-notify@kernel.org> Date: Wed, 02 Dec 2026 04:20:09 +0000 References: <20261126173034.1860377-1-razor@blackwall.org> In-Reply-To: <20261126173034.1860377-1-razor@blackwall.org> To: Nikolay Aleksandrov 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 Hello: This patch was applied to netdev/net.git (main) by Willem de Bruijn : 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