net: do not delay zero-copy skbs in skb_attempt_defer_free()
Subsystems (2)
PATCH 1/1 net: do not delay zero-copy skbs in skb_attempt_defer_free()
After the blamed commit, TCP tx zero copy notifications could be arbitrarily delayed and cause regressions in applications waiting for them.
--- net/core/skbuff.c | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-)
net/core/skbuff.c +6 -1
@@ -7266,10 +7266,15 @@ void skb_attempt_defer_free(struct sk_buff *skb) {struct skb_defer_node *sdn;unsigned long defer_count; -int cpu = skb->alloc_cpu;unsigned int defer_max;bool kick; +int cpu; +/* zero copy notifications should not be delayed. */ +if (skb_zcopy (skb)) + goto nodefer; + + cpu = skb->alloc_cpu;if (cpu ==raw_smp_processor_id () ||WARN_ON_ONCE (cpu >= nr_cpu_ids) || !cpu_online (cpu)) {
Signature · 1 line
2.53.0.310.g728cabbaf7-goog
Quoted 7 lines · Eric Dumazet
After the blamed commit, TCP tx zero copy notifications could be arbitrarily delayed and cause regressions in applications waiting for them.
Signed-off-by Eric Dumazet <[email protected]>Fixes e20dfbad8aab ("net: fix napi_consume_skb() with alien skbs")
Thanks!
Quoted 6 lines · Eric Dumazet
After the blamed commit, TCP tx zero copy notifications could be arbitrarily delayed and cause regressions in applications waiting for them.
Signed-off-by Eric Dumazet <[email protected]>Fixes e20dfbad8aab ("net: fix napi_consume_skb() with alien skbs")
This patch was applied to netdev/net.git (main) by Jakub Kicinski <[email protected]>:
Hello:
This patch was applied to netdev/net.git (main)
by Jakub Kicinski <[email protected]>:
Quoted 8 lines · On Mon, 16 Feb 2026 19:36:53 +0000 you wrote:
After the blamed commit, TCP tx zero copy notifications could be arbitrarily delayed and cause regressions in applications waiting for them.
Signed-off-by Eric Dumazet <[email protected]>Fixes e20dfbad8aab ("net: fix napi_consume_skb() with alien skbs")[...]
Here is the summary with links:
- [net] net: do not delay zero-copy skbs in skb_attempt_defer_free()
https://git.kernel.org/netdev/net/c/0943404b1f3b
You are awesome, thank you!
Signature · 2 lines
Deet-doot-dot, I am a bot. https://korg.docs.kernel.org/patchwork/pwbot.html