• Magnus Damm's avatar
    [PATCH] i386: Avoid overwriting the current pgd (V4, i386) · 3566561b
    Magnus Damm authored
    kexec: Avoid overwriting the current pgd (V4, i386)
    
    This patch upgrades the i386-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: default avatarMagnus Damm <magnus@valinux.co.jp>
    Signed-off-by: default avatarAndi Kleen <ak@suse.de>
    3566561b
relocate_kernel.S 5.44 KB