summaryrefslogtreecommitdiff
path: root/kexec/arch/i386/crashdump-x86.h
diff options
context:
space:
mode:
authorDave Young <dyoung@redhat.com>2016-12-08 10:52:22 +0800
committerSimon Horman <horms@verge.net.au>2016-12-08 11:03:19 +0100
commitdbb99d938810b60035122a1bcc68c4d585a0e57f (patch)
tree5c472874e9798c7526e92b4b874fa3c192e6282b /kexec/arch/i386/crashdump-x86.h
parent0a7fba8b145306af4909950f64f2797a08db68d4 (diff)
kexec-tools/x86: get_kernel_vaddr_and_size off-by-one fix
I got below error while tesing kexec -p: "Can't find kernel text map area from kcore" The case is the pt_load start addr was same as stext_sym. The checking code should really be saddr <= stext_sym so that the right pt_load area includes stext_sym can be matched. This was not reported by people previously because it will fail over to use hardcode X86_64__START_KERNEL_map to match the pt_load areas again in later code and it sometimes succeeds because of kernel address randomization. With this change according to my test stext_sym checking can garantee falling into right pt_load area if we get correct stext_sym. Signed-off-by: Dave Young <dyoung@redhat.com> Signed-off-by: Simon Horman <horms@verge.net.au>
Diffstat (limited to 'kexec/arch/i386/crashdump-x86.h')
0 files changed, 0 insertions, 0 deletions