From: Arjan van de Ven <arjan@infradead.org>
To: Anil kumar <anils_r@yahoo.com>
Cc: linux-kernel@vger.kernel.org
Subject: Re: kernel BUG at arch/i386/mm/highmem.c:63! kunmap_atomic
Date: Sun, 26 Mar 2006 21:02:19 +0200 [thread overview]
Message-ID: <1143399739.3055.24.camel@laptopd505.fenrus.org> (raw)
In-Reply-To: <20060326174556.45649.qmail@web32404.mail.mud.yahoo.com>
On Sun, 2006-03-26 at 09:45 -0800, Anil kumar wrote:
>
> Hi,
>
> I get the following kernel panic,
>
> kernel BUG at arch/i386/mm/highmem.c:63!
> EIP: 0060:[<c011af5a>] Tainted: PF VLI
> EFLAGS: 00010006 (2.6.11-1.1369_FC4smp)
> EIP is at kunmap_atomic+0x35/0x5f
>
> The following is the code, I am using in my driver:
>
> kmap_atomic code:
>
> int hr_km_type = (in_interrupt())? KM_IRQ0: KM_USER0;
> pDataBuffer = kmap_atomic(cur_seg->page,
> hr_km_type) + cur_seg->offset;
> if(pDataBuffer == NULL) {
> return (ENOMEM);
> }
>
this is buggy; your irq handler may run with interrupts on for example
I fear the worst for your code ;) I would suggest getting more people to
review it (for example on kernel-newbies list or the kernel-mentors
list) before using it in production ;)
prev parent reply other threads:[~2006-03-26 19:02 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2006-03-26 17:45 Anil kumar
2006-03-26 19:02 ` Arjan van de Ven [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=1143399739.3055.24.camel@laptopd505.fenrus.org \
--to=arjan@infradead.org \
--cc=anils_r@yahoo.com \
--cc=linux-kernel@vger.kernel.org \
/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®