From: "Raz Ben-Jehuda(caro)" <raziebe@gmail.com>
To: "Linux Kernel" <linux-kernel@vger.kernel.org>
Subject: kmap_atomic in 2.6.20.x
Date: Wed, 6 Jun 2007 20:03:14 +0300 [thread overview]
Message-ID: <5d96567b0706061003r462c324i733ad3698ac3d90c@mail.gmail.com> (raw)
Hello
I am running into some problems with kmap_atomic in my driver.
My driver copies some pages coming from
user space to "kernel space kmalloc'ed memory".
I had this code running from 2.6.5 to 2.6.17 without any problems.
I have upgraded to 2.6.20.xx and this code fails to kmap_atomic.
I am running a uni processor 2 GRAM machine, 32bit.
Basically this is code does:
get_user_pages(page,...)
kmap_atomic(page,KM_USER0);
.. copy and stuff
kunmap_atomic(page,KM_USER0)
I have also tried KM_USER1 and KM_SKB_SUNRPC_DATA.
I crash in arch/i386/highmem.c line 42:
...
if (!pte_none(*(kmap_pte-idx)))
BUG();
..
To the best of my understanding ( from "see : understand the linux
kernel" page 310 ) , a different kernel component holds this window. A
fact which is quite strange in the case of KM_SKB_SUNRPC_DATA. I have
nothing that uses it.
1. Why kmap_atomic does not return NULL ?
2. Why am I failing only in high memory mappings ?
--
Raz
next reply other threads:[~2007-06-06 17:03 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2007-06-06 17:03 Raz Ben-Jehuda(caro) [this message]
2007-06-06 19:17 ` Jens Axboe
2007-06-07 8:56 ` Raz Ben-Jehuda(caro)
2007-06-06 20:03 ` Trond Myklebust
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=5d96567b0706061003r462c324i733ad3698ac3d90c@mail.gmail.com \
--to=raziebe@gmail.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®