The patch titled list_del debug check has been added to the -mm tree. Its filename is list_del-debug.patch See http://www.zip.com.au/~akpm/linux/patches/stuff/added-to-mm.txt to find out what to do about this ------------------------------------------------------ Subject: list_del debug check From: Manfred Spraul <manfred@xxxxxxxxxxxxxxxx> A list_del() debugging check. Has been in -mm for years. Dave moved list_del() out-of-line in the debug case, so this is now suitable for mainline. Cc: Dave Jones <davej@xxxxxxxxxxxxxxxxx> Signed-off-by: Andrew Morton <akpm@xxxxxxxx> --- lib/list_debug.c | 12 +++++++----- 1 files changed, 7 insertions(+), 5 deletions(-) diff -puN lib/list_debug.c~list_del-debug lib/list_debug.c --- a/lib/list_debug.c~list_del-debug +++ a/lib/list_debug.c @@ -59,14 +59,17 @@ EXPORT_SYMBOL(list_add); */ void list_del(struct list_head *entry) { + BUG_ON(entry->prev->next != entry); + BUG_ON(entry->next->prev != entry); + if (unlikely(entry->prev->next != entry)) { - printk(KERN_ERR "list_del corruption. prev->next should be %p, but was %p\n", - entry, entry->prev->next); + printk(KERN_ERR "list_del corruption. prev->next should be %p, " + "but was %p\n", entry, entry->prev->next); BUG(); } if (unlikely(entry->next->prev != entry)) { - printk(KERN_ERR "list_del corruption. next->prev should be %p, but was %p\n", - entry, entry->next->prev); + printk(KERN_ERR "list_del corruption. next->prev should be %p, " + "but was %p\n", entry, entry->next->prev); BUG(); } __list_del(entry->prev, entry->next); @@ -74,4 +77,3 @@ void list_del(struct list_head *entry) entry->prev = LIST_POISON2; } EXPORT_SYMBOL(list_del); - _ Patches currently in -mm which might be from manfred@xxxxxxxxxxxxxxxx are fix-possible-null-ptr-deref-in-forcedeth.patch slab-respect-architecture-and-caller-mandated-alignment.patch add-some-comments-to-slabc.patch slab-extract-__kmem_cache_destroy-from-kmem_cache_destroy.patch slab-do-not-panic-when-alloc_kmemlist-fails-and-slab-is-up.patch list_del-debug.patch mm-debug-dump-pageframes-on-bad_page.patch slab-leaks3-default-y.patch - To unsubscribe from this list: send the line "unsubscribe mm-commits" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html