• R/O
  • HTTP
  • SSH

linux-2.4.36: Commit

2.4.36-stable kernel tree

Commit MetaInfo

Revisão226877eaab1eb1f15d43030d6662534478ab8d01 (tree)
Hora2008-11-09 23:06:09
AutorMarcel Sebek <sebek64@post...>
CommiterWilly Tarreau

Mensagem de Log

backport vlan device unregister fix


The attached patch was merged into 2.6.8 kernel, see


However, no similar fix is in 2.4. I've faced the problem on a
2.4.26 kernel (with external patches) and with DEBUG_SLAB turned on.
When I unregister network device with attached vlan device, the vlan
device structure is freed too early (because of wrong refcounting) and
dev_mc_discard call in unregister_netdevice uses this freed memmory,
which causes oops.

Signed-off-by: Marcel Šebek <sebek64@post.cz>

Mudança Sumário


--- a/net/8021q/vlan.c
+++ b/net/8021q/vlan.c
@@ -635,7 +635,6 @@ static int vlan_device_event(struct notifier_block *unused, unsigned long event,
635635 ret = unregister_vlan_dev(dev,
636636 VLAN_DEV_INFO(vlandev)->vlan_id);
638- dev_put(vlandev);
639638 unregister_netdevice(vlandev);
641640 /* Group was destroyed? */
Show on old repository browser