Skip to content
  • Minfei Huang's avatar
    kexec: make a pair of map/unmap reserved pages in error path · 917a3560
    Minfei Huang authored
    
    
    For some arch, kexec shall map the reserved pages, then use them, when
    we try to start the kdump service.
    
    kexec may return directly, without unmaping the reserved pages, if it
    fails during starting service.  To fix it, we make a pair of map/unmap
    reserved pages both in generic path and error path.
    
    This patch only affects s390.  Other architecturess don't implement the
    interface of crash_unmap_reserved_pages and crash_map_reserved_pages.
    
    It isn't a urgent patch.  Kernel can work well without any risk,
    although the reserved pages are not unmapped before returning in error
    path.
    
    Signed-off-by: default avatarMinfei Huang <mnfhuang@gmail.com>
    Cc: Vivek Goyal <vgoyal@redhat.com>
    Cc: "Eric W. Biederman" <ebiederm@xmission.com>
    Cc: Xunlei Pang <xlpang@redhat.com>
    Cc: Baoquan He <bhe@redhat.com>
    Signed-off-by: default avatarAndrew Morton <akpm@linux-foundation.org>
    Signed-off-by: default avatarLinus Torvalds <torvalds@linux-foundation.org>
    917a3560