linux-mm.kvack.org archive mirror
 help / color / mirror / Atom feed
From: Avishay Traeger <atraeger@cs.sunysb.edu>
To: linux-mm@kvack.org
Subject: Oopsing on memory returned by __get_free_pages()
Date: Sun, 25 Dec 2005 10:19:20 -0500	[thread overview]
Message-ID: <1135523960.23126.13.camel@rockstar.fsl.cs.sunysb.edu> (raw)

Hello all,

I am trying to allocate 32KB of memory, and am calling:
buf = (char *)__get_free_pages(GFP_KERNEL, 3);

>From what I see in other kernel code and what I read, I thought that I
could use this chunk of memory as is.  However, it is oopsing while
trying to access the second page that was returned.  The starting
address for the memory that was returned is 0xf61c0000, and the oops
says "Unable to handle kernel paging request at virtual address
f61c1000".

Do I need to do anything special with the memory before I can use it?
Is it not correct to use it as a big 32KB buffer?  I'm sorry if this is
a bit of a noob question, but I have been stuck on the problem for a
couple days and have not found the answer anywhere.

Thanks in advance,
Avishay Traeger

--
To unsubscribe, send a message with 'unsubscribe linux-mm' in
the body to majordomo@kvack.org.  For more info on Linux MM,
see: http://www.linux-mm.org/ .
Don't email: <a href=mailto:"dont@kvack.org"> email@kvack.org </a>

                 reply	other threads:[~2005-12-25 15:19 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

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=1135523960.23126.13.camel@rockstar.fsl.cs.sunysb.edu \
    --to=atraeger@cs.sunysb.edu \
    --cc=linux-mm@kvack.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