Netdev List
 help / color / mirror / Atom feed
From: patchwork-bot+netdevbpf@kernel.org
To: Nikolay Aleksandrov <razor@blackwall.org>
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
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	[thread overview]
Message-ID: <179618520974.1177297.15983012092208547493.git-patchwork-notify@kernel.org> (raw)
In-Reply-To: <20261126173034.1860377-1-razor@blackwall.org>

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



      reply	other threads:[~2026-12-02  4:20 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-11-26 17:30 [PATCH net v2] net: keep skbs that carry a socket out of gro_cells gro Nikolay Aleksandrov
2026-12-02  4:20 ` patchwork-bot+netdevbpf [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=179618520974.1177297.15983012092208547493.git-patchwork-notify@kernel.org \
    --to=patchwork-bot+netdevbpf@kernel.org \
    --cc=ast@kernel.org \
    --cc=bpf@vger.kernel.org \
    --cc=daniel@iogearbox.net \
    --cc=davem@davemloft.net \
    --cc=edumazet@kernel.org \
    --cc=horms@kernel.org \
    --cc=joe@wand.net.nz \
    --cc=kafai@fb.com \
    --cc=kuba@kernel.org \
    --cc=netdev@vger.kernel.org \
    --cc=pabeni@redhat.com \
    --cc=razor@blackwall.org \
    --cc=willemb@google.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox