linux-arch.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* You might need vmalloc_sync_all()
@ 2007-05-01  4:26 Andi Kleen
  2007-05-01  7:44 ` Russell King
  0 siblings, 1 reply; 4+ messages in thread
From: Andi Kleen @ 2007-05-01  4:26 UTC (permalink / raw)
  To: linux-arch


Since someone mentioned again.

Right now only x86 implements vmalloc_sync_all(). But iff:

- Your module mappings might require a page fault calling C 
code in kernel
- You got a pagefault notifier at the beginning of the page fault
handler

you risk a endless pagefault recursion with modular pagefault
notifiers. vmalloc_sync_all should sync all the available mappings 
on notifier register so that the C pf handler is not called for module 
faults.

Apparently at least ARM has this problem.

If the kernel module fault is only assembler code without notifier
(e.g. to reload a TLB) it is probably not needed.

-Andi


^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2007-05-01 19:20 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2007-05-01  4:26 You might need vmalloc_sync_all() Andi Kleen
2007-05-01  7:44 ` Russell King
2007-05-01 11:37   ` Andi Kleen
2007-05-01 19:20     ` Russell King

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).