* Kernel BUG at slab.c:1128!
@ 2004-12-23 8:46 Zhenyu Wu
2004-12-23 16:38 ` Zwane Mwaikambo
0 siblings, 1 reply; 2+ messages in thread
From: Zhenyu Wu @ 2004-12-23 8:46 UTC (permalink / raw)
To: linux-kernel
when i am going to add some code in the linux kernel source code, i meet such
questions:
kernel BUG at slab.c: 1128
Kernel panic: Aiee, killing interrupt handler!
In interrupt handler -not syncing.
Reading from slab.c 1128, there is a check -in_interrupt(), have called some
fuctions in the interrupt handler?
But i just use "Kmalloc" to allocate some memory, is it the matter?
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: Kernel BUG at slab.c:1128!
2004-12-23 8:46 Kernel BUG at slab.c:1128! Zhenyu Wu
@ 2004-12-23 16:38 ` Zwane Mwaikambo
0 siblings, 0 replies; 2+ messages in thread
From: Zwane Mwaikambo @ 2004-12-23 16:38 UTC (permalink / raw)
To: Zhenyu Wu; +Cc: linux-kernel
On Thu, 23 Dec 2004, Zhenyu Wu wrote:
> when i am going to add some code in the linux kernel source code, i meet such
> questions:
>
> kernel BUG at slab.c: 1128
>
> Kernel panic: Aiee, killing interrupt handler!
> In interrupt handler -not syncing.
>
> Reading from slab.c 1128, there is a check -in_interrupt(), have called some
> fuctions in the interrupt handler?
> But i just use "Kmalloc" to allocate some memory, is it the matter?
If you want to call kmalloc from interrupt context you have to do it with
the GFP_ATOMIC flag to specify that you do not want to sleep, in which
case there is an increased chance that your request won't be met so you
have to have error handling in case of allocation failure.
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2004-12-23 16:38 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2004-12-23 8:46 Kernel BUG at slab.c:1128! Zhenyu Wu
2004-12-23 16:38 ` Zwane Mwaikambo
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®