Commit 6de1dec
udp: do not use skb_release_head_state() before skb_attempt_defer_free()
Michal reported and bisected an issue after recent adoption
of skb_attempt_defer_free() in UDP.
The issue here is that skb_release_head_state() is called twice per skb,
one time from skb_consume_udp(), then a second time from skb_defer_free_flush()
and napi_consume_skb().
As Sabrina suggested, remove skb_release_head_state() call from
skb_consume_udp().
Add a DEBUG_NET_WARN_ON_ONCE(skb_nfct(skb)) in skb_attempt_defer_free()
Many thanks to Michal, Sabrina, Paolo and Florian for their help.
Fixes: 6471658 ("udp: use skb_attempt_defer_free()")
Reported-and-bisected-by: Michal Kubecek <[email protected]>
Closes: https://lore.kernel.org/netdev/gpjh4lrotyephiqpuldtxxizrsg6job7cvhiqrw72saz2ubs3h@g6fgbvexgl3r/
Signed-off-by: Eric Dumazet <[email protected]>
Tested-by: Michal Kubecek <[email protected]>
Cc: Sabrina Dubroca <[email protected]>
Cc: Florian Westphal <[email protected]>
Reviewed-by: Sabrina Dubroca <[email protected]>
Link: https://patch.msgid.link/[email protected]
Signed-off-by: Paolo Abeni <[email protected]>1 parent 8d93ff4 commit 6de1dec
2 files changed
+1
-2
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
7200 | 7200 | | |
7201 | 7201 | | |
7202 | 7202 | | |
| 7203 | + | |
7203 | 7204 | | |
7204 | 7205 | | |
7205 | 7206 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1851 | 1851 | | |
1852 | 1852 | | |
1853 | 1853 | | |
1854 | | - | |
1855 | | - | |
1856 | 1854 | | |
1857 | 1855 | | |
1858 | 1856 | | |
| |||
0 commit comments