dev: Defer free of skbs in flush_backlog
Subsystems (2)
PATCH 1/1 dev: Defer free of skbs in flush_backlog
IRQs are disabled when freeing skbs in input queue. Use the IRQ safe variant to free skbs here.
Fixes 145dd5f9c88f ("net: flush the softnet backlog in process context")
Signed-off-by Subash Abhinov Kasiviswanathan <[email protected]>
--- net/core/dev.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
net/core/dev.c +1 -1
@@ -5601,7 +5601,7 @@ static void flush_backlog(struct work_struct *work) skb_queue_walk_safe(&sd->input_pkt_queue, skb, tmp) {if (skb->dev->reg_state ==NETREG_UNREGISTERING ) {__skb_unlink (skb, &sd->input_pkt_queue); -kfree_skb (skb); +dev_kfree_skb_irq (skb);input_queue_head_incr (sd); } }
Signature · 1 line
2.7.4
David Miller
maintainerFrom: Subash Abhinov Kasiviswanathan <[email protected]>
Date: Thu, 23 Jul 2020 11:31:48 -0600
Quoted 5 lines
IRQs are disabled when freeing skbs in input queue. Use the IRQ safe variant to free skbs here.
Fixes 145dd5f9c88f ("net: flush the softnet backlog in process context")Signed-off-by Subash Abhinov Kasiviswanathan <[email protected]>
Applied and queued up for -stable, thank you.