Skip to content

Commit

Permalink
Fix for support of KASLR enabled kernels captured by the SADUMP
Browse files Browse the repository at this point in the history
dumpfile facility. SADUMP dumpfile headers do not contain phys_base
or VMCOREINFO notes, so without this patch, the crash session fails
during initialization with the message "crash: seek error: kernel
virtual address: <address>  type: "page_offset_base".  This patch
calculates the phys_base value and the KASLR offset using the IDTR
and CR3 registers from the dumpfile header.
(indou.takao@jp.fujitsu.com)
  • Loading branch information
Dave Anderson committed Oct 23, 2017
1 parent 090bf28 commit 45b74b8
Show file tree
Hide file tree
Showing 5 changed files with 534 additions and 1 deletion.
4 changes: 4 additions & 0 deletions defs.h
Expand Up @@ -2591,6 +2591,9 @@ struct symbol_table_data {
ulong last_section_end;
ulong _stext_vmlinux;
struct downsized downsized;
ulong divide_error_vmlinux;
ulong idt_table_vmlinux;
ulong saved_command_line_vmlinux;
};

/* flags for st */
Expand Down Expand Up @@ -6312,6 +6315,7 @@ void sadump_set_zero_excluded(void);
void sadump_unset_zero_excluded(void);
struct sadump_data;
struct sadump_data *get_sadump_data(void);
int sadump_calc_kaslr_offset(ulong *);

/*
* qemu.c
Expand Down

0 comments on commit 45b74b8

Please sign in to comment.