* crash in virt_to_pages
@ 2012-03-08 10:05 revolver
0 siblings, 0 replies; only message in thread
From: revolver @ 2012-03-08 10:05 UTC (permalink / raw)
To: kernelnewbies
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
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2012-03-08 10:05 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-03-08 10:05 crash in virt_to_pages revolver
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).