From: Andi Kleen <ak@suse.de>
To: linux-arch@vger.kernel.org
Subject: You might need vmalloc_sync_all()
Date: Tue, 1 May 2007 06:26:55 +0200 [thread overview]
Message-ID: <20070501042655.GL25929@bingen.suse.de> (raw)
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
next reply other threads:[~2007-05-01 3:29 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2007-05-01 4:26 Andi Kleen [this message]
2007-05-01 7:44 ` You might need vmalloc_sync_all() Russell King
2007-05-01 11:37 ` Andi Kleen
2007-05-01 19:20 ` Russell King
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=20070501042655.GL25929@bingen.suse.de \
--to=ak@suse.de \
--cc=linux-arch@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;
as well as URLs for NNTP newsgroup(s).