Skip to contentSkip to conversation

Oops at __neigh_for_each_release (2.6.9-rc3)

DISCUSSION David S. Miller 2 participants 2 messages Oct 1, 2004 – Oct 2, 2004 1 message not in the archive

Subsystems (3)
lore
Share & tools
lore

David S. Miller

author maintainer
#1 lore raw
In reply to a message not in the archive
Quoted 1 line · On Fri, 1 Oct 2004 22:17:35 +0200 Duncan Sands <[email protected]> wrote:

EIP is at __neigh_for_each_release+0x32/0xb0

Give this patch a try. And please report networking bugs to [email protected] in the future, thanks.

===== net/atm/clip.c 1.42 vs edited =====

net/atm/clip.c +5 -16
@@ -984,19 +984,7 @@
 
 static int __init atm_clip_init(void)
 {
-	/* we should use neigh_table_init() */
-	clip_tbl.lock = RW_LOCK_UNLOCKED;
-	clip_tbl.kmem_cachep = kmem_cache_create(clip_tbl.id,
-	    clip_tbl.entry_size, 0, SLAB_HWCACHE_ALIGN, NULL, NULL);
-
-	if (!clip_tbl.kmem_cachep)
-		return -ENOMEM;
-
-	/* so neigh_ifdown() doesn't complain */
-	clip_tbl.proxy_timer.data = 0;
-	clip_tbl.proxy_timer.function = NULL;
-	init_timer(&clip_tbl.proxy_timer);
-	skb_queue_head_init(&clip_tbl.proxy_queue);
+	neigh_table_init(&clip_tbl);
 
 	clip_tbl_hook = &clip_tbl;
 	register_atm_ioctl(&clip_ioctl_ops);
@@ -1022,7 +1010,6 @@
 
 	deregister_atm_ioctl(&clip_ioctl_ops);
 
-	neigh_ifdown(&clip_tbl, NULL);
 	dev = clip_devs;
 	while (dev) {
 		next = PRIV(dev)->next;
@@ -1030,9 +1017,11 @@
 		free_netdev(dev);
 		dev = next;
 	}
-	if (start_timer == 0) del_timer(&idle_timer);
 
-	kmem_cache_destroy(clip_tbl.kmem_cachep);
+	neigh_table_clear(&clip_tbl);
+
+	if (start_timer == 0)
+		del_timer(&idle_timer);
 
 	clip_tbl_hook = NULL;
 }
#2 lore raw
Quoted 4 lines
Quoted 1 line

EIP is at __neigh_for_each_release+0x32/0xb0

Give this patch a try. And please report networking bugs to [email protected] in the future, thanks.

OK, will do. I tested the patch Linus committed - it indeed fixes the oops.

Thanks a lot!

Duncan.