All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH 0/3] Fix KASLR problem on sadump
@ 2017-10-10  9:27 Takao Indoh
  2017-10-10  9:27 ` [PATCH 1/3] Support symbol __cpu_online_mask Takao Indoh
                   ` (2 more replies)
  0 siblings, 3 replies; 7+ messages in thread
From: Takao Indoh @ 2017-10-10  9:27 UTC (permalink / raw)
  To: ats-kumagai, d.hatayama; +Cc: kexec

Hi Kumagai-san, Hatayama-san,

These patch series fix a problem that makedumpfile cannot handle a dumpfile
which is captured by sadump on KASLR enabled kernel.

When KASLR feature is enabled, a kernel is placed on the memory randomly and
therefore makedumpfile cannot handle a dumpfile because addresses of kernel
symbols in vmlinux are different from actual addresses. In the case of kdump,
information to get actual address is included in the vmcoreinfo, but dumpfile of
sadump does not have such a information.

These patches calculate kaslr offset and phys_base to solve this problem. The
basic idea is getting register (IDTR and CR3) from dump header, and calculate
kaslr_offset/phys_base using them.

Takao Indoh (3):
  Support symbol __cpu_online_mask
  makedumpfile: Introduce vtop4_x86_64_pagetable
  makedumpfile: sadump: Fix a KASLR problem of sadump

 arch/x86_64.c  |  30 ++++-
 makedumpfile.c |  22 ++-
 makedumpfile.h |   7 +-
 sadump_info.c  | 420 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++-
 4 files changed, 466 insertions(+), 13 deletions(-)

-- 
2.9.5



_______________________________________________
kexec mailing list
kexec@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/kexec

^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2017-10-13 12:06 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2017-10-10  9:27 [PATCH 0/3] Fix KASLR problem on sadump Takao Indoh
2017-10-10  9:27 ` [PATCH 1/3] Support symbol __cpu_online_mask Takao Indoh
2017-10-13 12:00   ` Hatayama, Daisuke
2017-10-10  9:27 ` [PATCH 2/3] makedumpfile: Introduce vtop4_x86_64_pagetable Takao Indoh
2017-10-13 12:00   ` Hatayama, Daisuke
2017-10-10  9:27 ` [PATCH 3/3] makedumpfile: sadump: Fix a KASLR problem of sadump Takao Indoh
2017-10-13 12:05   ` Hatayama, Daisuke

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.