mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: Zwane Mwaikambo <zwane@arm.linux.org.uk>
To: Zhenyu Wu <y030729@njupt.edu.cn>
Cc: linux-kernel@vger.kernel.org
Subject: Re: Kernel BUG at slab.c:1128!
Date: Thu, 23 Dec 2004 09:38:53 -0700 (MST)	[thread overview]
Message-ID: <Pine.LNX.4.61.0412230937460.7013@montezuma.fsmlabs.com> (raw)
In-Reply-To: <303791597.15361@njupt.edu.cn>

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.

      reply	other threads:[~2004-12-23 16:38 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2004-12-23  8:46 Zhenyu Wu
2004-12-23 16:38 ` Zwane Mwaikambo [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=Pine.LNX.4.61.0412230937460.7013@montezuma.fsmlabs.com \
    --to=zwane@arm.linux.org.uk \
    --cc=linux-kernel@vger.kernel.org \
    --cc=y030729@njupt.edu.cn \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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®