• Magnus Damm's avatar
    [PATCH] Avoid overwriting the current pgd (V4, x86_64) · 4bfaaef0
    Magnus Damm authored
    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: default avatarMagnus Damm <magnus@valinux.co.jp>
    Signed-off-by: default avatarAndi Kleen <ak@suse.de>
    4bfaaef0
kexec.h 3.14 KB