[Makedumpfile Patch 0/6] Fix --mem-usage /proc/kcore

Pratyush Anand panand at redhat.com
Mon Feb 6 04:01:45 PST 2017

`makedumpfile --mem-usage /proc/kcore` has been broken after kaslr specific
modifications. I have proposed a kernel patch [0] which has been ACKed by
Andrew Morton and is available in next-2017020 now. Hopefully, it should be
part of upstream in v4.10 release. This kernel patch helps to fix this
issue for both the case of kaslr enabled and disabled.

To seek other's feedback, I am sending makedumpfile patches before kernel
patch hits upstream.

[0] http://git.kernel.org/cgit/linux/kernel/git/next/linux-next.git/commit/?h=next-20170206&id=c9d4e5d7b7fd6c74e134ca44df8a5386efbc561c

Baoquan He (2):
  makedumpfile: Correct the calculation of kvaddr in
  makedumpfile: Discard process_dump_load

Pratyush Anand (4):
  show_mem_usage(): calculate page offset after elf load
  initial(): call cach_init() a bit early
  x86_64: check physical address in PT_LOAD for none direct mapped
  elf_info: kcore: check for invalid physical address

 arch/x86_64.c  |  6 ++++--
 elf_info.c     | 25 +++++--------------------
 makedumpfile.c | 12 ++++++------
 3 files changed, 15 insertions(+), 28 deletions(-)


More information about the kexec mailing list