Thread (4 messages) 4 messages, 4 authors, 28d ago

Re: [PATCH net v2] udp: clear skb->dev before running a sockmap verdict

From: patchwork-bot+netdevbpf@kernel.org
Date: 2026-06-04 16:20:23
Also in: bpf, lkml, stable

Hello:

This patch was applied to netdev/net.git (main)
by Jakub Kicinski [off-list ref]:

On Wed,  3 Jun 2026 16:27:33 +0000 you wrote:
On the UDP receive path skb->dev is repurposed as dev_scratch (the
truesize/state cache set by udp_set_dev_scratch()), through the
union { struct net_device *dev; unsigned long dev_scratch; } in sk_buff.

When a UDP socket is in a sockmap, sk_data_ready is
sk_psock_verdict_data_ready(), which calls udp_read_skb() -> recv_actor()
(sk_psock_verdict_recv) to run the attached SK_SKB verdict program in softirq.
If that program calls a socket-lookup helper (bpf_sk_lookup_tcp/udp,
bpf_skc_lookup_tcp), bpf_skc_lookup() does:

[...]
Here is the summary with links:
  - [net,v2] udp: clear skb->dev before running a sockmap verdict
    https://git.kernel.org/netdev/net/c/3c94f241f776

You are awesome, thank you!
-- 
Deet-doot-dot, I am a bot.
https://korg.docs.kernel.org/patchwork/pwbot.html

Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help