linux-mips
[Top] [All Lists]

Re: kernel BUG at slab.c:1073!

To: jsun@mvista.com
Subject: Re: kernel BUG at slab.c:1073!
From: Krishna Kondaka <krishna@Sanera.net>
Date: Wed, 24 Jul 2002 12:08:34 -0700 (PDT)
Cc: linux-mips@oss.sgi.com
Reply-to: Krishna Kondaka <krishna@Sanera.net>
Sender: owner-linux-mips@oss.sgi.com
>> slab.c : line 1072-1073 is        
>> 
>> if (in_interrupt() && (flags & SLAB_LEVEL_MASK) != SLAB_ATOMIC)
>>                 BUG();
>> 
>> The driver being loaded is a small proprietary driver. The init routine of
>> the driver is doing kmalloc() with GFP_KERNEL as the second argument. I know
>> that I can fix my driver to use GFP_ATOMIC if running in interrupt context.
>> 
>> My question is why is the "insmod" command running in interrupt context?
>> 
>
>I don't think insmod should have interrupt context set.
>
>Do you have preemptible kernel enabled?  This problem often happens if 
>preemptible kernel is enabled and there is a missing interrupt path not pre-k 
>ready.
>

Thanks for the quick reply jun,

I don't think I am running preemptible kernel. Is there /proc file that shows
if I am running preemptible kernel or not?

Thanks
Krishna

>Jun


<Prev in Thread] Current Thread [Next in Thread>