Re: Linux 2.5.74: BUG at mm/slab.c:1537

Manfred Spraul (manfred@colorfullife.com)
Thu, 03 Jul 2003 22:13:43 +0200


The problem is caused by changeset 1.1310.102.3, 2003/07/01
02:01:51+10:00, yoshfuji@linux-ipv6.org:

http://linus.bkbits.net:8080/linux-2.5/diffs/net/ipv4/raw.c@3f005eebc5YsuvTFXhDo-QDhPEgh5Q?nav=index.html
(Subject: [NET] fixed /proc/net/raw{,6} seq_file support)

raw_iter_state is just an integer. Without that patch, the integer is
stored directly in the seq->private pointer (note the & in the define of
raw_seq_private, around line 690 of net/ipv4/raw.c). The patch converts
part of the code to an pointer to an integer, but other parts still
consider seq->private as an integer. The oops is actually a BUG
statement in kmalloc: it complains (if CONFIG_DEBUG_SLAB is enabled)
about the invalid pointer.

--
    Manfred

- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/