From: Michal Schmidt <xschmi00@stud.feec.vutbr.cz>
To: Park Lee <parklee_sel@yahoo.com>
Cc: linux-kernel@vger.kernel.org
Subject: Re: How to understand and turn off such a oops
Date: Fri, 07 Jan 2005 13:22:56 +0100 [thread overview]
Message-ID: <41DE7F20.4010502@stud.feec.vutbr.cz> (raw)
In-Reply-To: <20050107115011.24897.qmail@web51510.mail.yahoo.com>
Park Lee wrote:
> Hi,
> Sometimes, when I call kmalloc() in Linux kernel,
> the kernel always bring out a oops shown as following:
>
>
> Debug: sleeping function called from invalid context
> at mm/slab.c:1980
> in_atomic():1, irqs_disabled():0
You're calling kmalloc in a context where sleeping is not allowed. And
kmalloc with the GFP_KERNEL flag can sleep. Use GFP_ATOMIC in that context.
Michal
prev parent reply other threads:[~2005-01-07 12:22 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2005-01-07 11:50 Park Lee
2005-01-07 12:22 ` Michal Schmidt [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=41DE7F20.4010502@stud.feec.vutbr.cz \
--to=xschmi00@stud.feec.vutbr.cz \
--cc=linux-kernel@vger.kernel.org \
--cc=parklee_sel@yahoo.com \
/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
Powered by JetHome