From: revolver@nm.ru (revolver)
To: kernelnewbies@lists.kernelnewbies.org
Subject: crash in virt_to_pages
Date: Thu, 08 Mar 2012 14:05:20 +0400 [thread overview]
Message-ID: <d8aacdbcb1b64a81d339195c37df4106083710d8@mail.qip.ru> (raw)
Hi,
I am trying to solve crash on old patched 2.6.18 kernel
where virt_to_page() used on stack variable address.
function() {
struct {
u32 ...
u32 ...
...
} bla;
... = virt_to_page(&bla);
}
i386 it works fine but x86_64 kernl panics.
When kernel panics, &bla is something like ffffffff80574d40,
which is not valid for virt_to_pages, AFAIK.
Any ideas?
Why it is not save to use virt_to_pages on stack addresses?
Thank you
reply other threads:[~2012-03-08 10:05 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=d8aacdbcb1b64a81d339195c37df4106083710d8@mail.qip.ru \
--to=revolver@nm.ru \
--cc=kernelnewbies@lists.kernelnewbies.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;
as well as URLs for NNTP newsgroup(s).