Hello: This patch was applied to netdev/net.git (main) by Willem de Bruijn <will…@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!