From: Eric Dumazet Date: Thu, 23 Oct 2014 02:43:46 +0000 (-0700) Subject: macvlan: fix a race on port dismantle and possible skb leaks X-Git-Tag: omap-for-v3.19/fixes-not-urgent-part1~25^2~39 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=fe0ca7328d03d36aafecebb3af650e1bb2841c20;p=pandora-kernel.git macvlan: fix a race on port dismantle and possible skb leaks We need to cancel the work queue after rcu grace period, otherwise it can be rescheduled by incoming packets. We need to purge queue if some skbs are still in it. We can use __skb_queue_head_init() variant in macvlan_process_broadcast() Signed-off-by: Eric Dumazet Fixes: 412ca1550cbec ("macvlan: Move broadcasts into a work queue") Cc: Herbert Xu Signed-off-by: David S. Miller --- Reading git-diff-tree failed