Re: kernel BUG at linux/include/linux/mm.h:302!

From: Amit S. Kale (akale@veritas.com)
Date: Fri Feb 18 2000 - 07:19:08 EST


> From: Giacomo Catenazzi <cate@student.ethz.ch>
> Date: Thu, 17 Feb 2000 09:29:06 +0100 (MET)
> Subject: [2.3.4[45], imm module] kernel BUG at linux/include/linux/mm.h:302!
>

I had the same error when I compiled a module without -D__SMP__ and tried to
load it into an smp kernel. The problem I faced was that spinlock_t is 8 bytes
for smp kernels and 0 bytes for up. Due to this size of zone_struct was
different in kernel and the module. Following check failed because of that.

extern inline struct page * alloc_pages(int gfp_mask, unsigned long order)
{
        /* temporary check. */
        if (contig_page_data.node_zonelists[gfp_mask].gfp_mask != (gfp_mask))
                BUG();

Did you compile kernel and modules with mp config and then compiled kernel
only with SMP?

-- 
Amit Kale
Veritas Software ( http://www.veritas.com )

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



This archive was generated by hypermail 2b29 : Wed Feb 23 2000 - 21:00:21 EST