diff options
author | Takao Indoh <indou.takao@jp.fujitsu.com> | 2018-01-26 09:22:00 +0900 |
---|---|---|
committer | Masaki Tachibana <mas-tachibana@vf.jp.nec.com> | 2018-04-03 19:19:22 +0900 |
commit | 38de12a4d4bcf6da9181b66c5859815f05a446e3 (patch) | |
tree | d75671977a36919afa6f59ae8195b7feca3b9a1a /makedumpfile.c | |
parent | 4982e0681042a111ebe6fc04f091fff26f611f3f (diff) |
sadump: Fix a problem of PTI enabled kernel
This patch fixes a problme that a dumpfile of sadump cannot be handled by
makedumpfile when Page Table Isolation(PTI) is enabled.
When PTI is enabled, bit 12 of CR3 register is used to split user space and
kernel space. Also bit 11:0 is used for Process Context IDentifiers(PCID). To
open a dump file of sadump, a value of CR3 is used to calculate KASLR offset and
phys_base, therefore this patch fixes to mask CR3 register value collectly for
PTI enabled kernel.
Signed-off-by: Takao Indoh <indou.takao@jp.fujitsu.com>
Diffstat (limited to 'makedumpfile.c')
-rw-r--r-- | makedumpfile.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/makedumpfile.c b/makedumpfile.c index ed138d3..ea83a22 100644 --- a/makedumpfile.c +++ b/makedumpfile.c @@ -1572,6 +1572,8 @@ get_symbol_info(void) SYMBOL_INIT(divide_error, "divide_error"); SYMBOL_INIT(idt_table, "idt_table"); SYMBOL_INIT(saved_command_line, "saved_command_line"); + SYMBOL_INIT(pti_init, "pti_init"); + SYMBOL_INIT(kaiser_init, "kaiser_init"); return TRUE; } |