Re: PATCH 2.4.0.4.6: workaround for BUG() in slab.c

From: Andrew Morton (andrewm@uow.edu.au)
Date: Thu Jul 13 2000 - 21:56:53 EST


Jeff Garzik wrote:
>
> There is an in-interrupt, non-atomic allocation somewhere either in
> cardbus/pci socket land, or the tulip driver. I think it occurs
> something in the pci_enable_device callchain... This is definitely a
> bug, but not one worthy of killing the kernel.
>
> The attached patch, against 2.4.0-test4-pre6, simply prints a warning
> and forces atomic allocation, instead of forcing an oops. Other drivers
> and areas of the kernel might be affected by the BUG() call in
> mm/slab.c, too.

But Jeff, this kills our best chance of ever locating the bug! We need
to get one decent ksymoops trace to nail this.

As a compromise you could add

#ifdef CONFIG_X86
        show_stack(0);
#endif

However that's a weak compromise because ksymoops doesn't understand
show_stack() output.

Why not leave it in and fix the root cause?

-
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 : Sat Jul 15 2000 - 21:00:18 EST