]> www.pilppa.org Git - linux-2.6-omap-h63xx.git/commit
[PATCH] Avoid overwriting the current pgd (V4, x86_64)
authorMagnus Damm <magnus@valinux.co.jp>
Tue, 26 Sep 2006 08:52:38 +0000 (10:52 +0200)
committerAndi Kleen <andi@basil.nowhere.org>
Tue, 26 Sep 2006 08:52:38 +0000 (10:52 +0200)
commit4bfaaef01a1badb9e8ffb0c0a37cd2379008d21f
tree652effe9d02c80d93357512233f4ee962320ac3b
parentf574164491d00d28b727d713685fb5edc9138200
[PATCH] Avoid overwriting the current pgd (V4, x86_64)

kexec: Avoid overwriting the current pgd (V4, x86_64)

This patch upgrades the x86_64-specific kexec code to avoid overwriting the
current pgd. Overwriting the current pgd is bad when CONFIG_CRASH_DUMP is used
to start a secondary kernel that dumps the memory of the previous kernel.

The code introduces a new set of page tables. These tables are used to provide
an executable identity mapping without overwriting the current pgd.

Signed-off-by: Magnus Damm <magnus@valinux.co.jp>
Signed-off-by: Andi Kleen <ak@suse.de>
arch/x86_64/kernel/machine_kexec.c
arch/x86_64/kernel/relocate_kernel.S
include/asm-x86_64/kexec.h