]> git.karo-electronics.de Git - karo-tx-linux.git/commit
Fix IFB net driver input device crashes
authorPatrick McHardy <kaber@trash.net>
Tue, 10 Apr 2007 20:29:44 +0000 (13:29 -0700)
committerGreg Kroah-Hartman <gregkh@suse.de>
Fri, 13 Apr 2007 20:47:04 +0000 (13:47 -0700)
commit1e3769dc9ac7559010cfad5400896f24f1d33ad3
tree087bb158ff5ac279e875a12a67e10068eabfcc46
parent9e45b2f0fd14f032b1fcbaae0b2548274a9cc9be
Fix IFB net driver input device crashes

[IFB]: Fix crash on input device removal

The input_device pointer is not refcounted, which means the device may
disappear while packets are queued, causing a crash when ifb passes packets
with a stale skb->dev pointer to netif_rx().

Fix by storing the interface index instead and do a lookup where neccessary.

Signed-off-by: Patrick McHardy <kaber@trash.net>
Acked-by: Jamal Hadi Salim <hadi@cyberus.ca>
Signed-off-by: David S. Miller <davem@davemloft.net>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
drivers/net/ifb.c
include/linux/skbuff.h
include/net/pkt_cls.h
net/core/dev.c
net/core/skbuff.c
net/sched/act_mirred.c