diff options
author | Pekka Paalanen <pq@iki.fi> | 2008-05-12 21:20:56 +0200 |
---|---|---|
committer | Thomas Gleixner <tglx@linutronix.de> | 2008-05-24 11:21:14 +0200 |
commit | 8b7d89d02ef3c6a7c73d6596f28cea7632850af4 (patch) | |
tree | 32601bf4f34dd9e3ec1e9610c555e10dc448006c /arch/x86/kernel/init_task.c | |
parent | 677aa9f77e8de3791b481a0cec6c8b84d1eec626 (diff) | |
download | talos-op-linux-8b7d89d02ef3c6a7c73d6596f28cea7632850af4.tar.gz talos-op-linux-8b7d89d02ef3c6a7c73d6596f28cea7632850af4.zip |
x86: mmiotrace - trace memory mapped IO
Mmiotrace is a tool for trapping memory mapped IO (MMIO) accesses within
the kernel. It is used for debugging and especially for reverse
engineering evil binary drivers.
Mmiotrace works by wrapping the ioremap family of kernel functions and
marking the returned pages as not present. Access to the IO memory
triggers a page fault, which will be handled by mmiotrace's custom page
fault handler. This will single-step the faulted instruction with the
MMIO page marked as present. Access logs are directed to user space via
relay and debug_fs.
This page fault approach is necessary, because binary drivers have
readl/writel etc. calls inlined and therefore extremely difficult to
trap with with e.g. kprobes.
This patch depends on the custom page fault handlers patch.
Signed-off-by: Pekka Paalanen <pq@iki.fi>
Signed-off-by: Ingo Molnar <mingo@elte.hu>
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
Diffstat (limited to 'arch/x86/kernel/init_task.c')
-rw-r--r-- | arch/x86/kernel/init_task.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/arch/x86/kernel/init_task.c b/arch/x86/kernel/init_task.c index a4f93b4120c1..027a5b6a12b2 100644 --- a/arch/x86/kernel/init_task.c +++ b/arch/x86/kernel/init_task.c @@ -15,6 +15,7 @@ static struct signal_struct init_signals = INIT_SIGNALS(init_signals); static struct sighand_struct init_sighand = INIT_SIGHAND(init_sighand); struct mm_struct init_mm = INIT_MM(init_mm); EXPORT_UNUSED_SYMBOL(init_mm); /* will be removed in 2.6.26 */ +EXPORT_SYMBOL_GPL(init_mm); /* * Initial thread structure. |