diff options
author | Pratyush Anand <panand@redhat.com> | 2017-03-01 11:19:42 +0530 |
---|---|---|
committer | Simon Horman <horms@verge.net.au> | 2017-03-13 09:57:16 +0100 |
commit | ed15ba1b9977e506637ff1697821d97127b2c919 (patch) | |
tree | edc019cb065478b5fae6df007d12ce72436e8509 /kexec/kexec.c | |
parent | 263e45ccf27b21e9862cc538ed28978533d04e4b (diff) |
build_mem_phdrs(): check if p_paddr is invalid
Currently, all the p_paddr of PT_LOAD headers are assigned to 0, which
is not correct and could be misleading, since 0 is a valid physical
address.
Upstream kernel commit "464920104bf7 /proc/kcore: update physical
address for kcore ram and text" fixed it and now invalid PT_LOAD is
assigned as -1.
kexec/arch/i386/crashdump-x86.c:get_kernel_vaddr_and_size() uses kcore
interface and so calls build_mem_phdrs() for kcore PT_LOAD headers.
This patch fixes build_mem_phdrs() to check if p_paddr is invalid.
Signed-off-by: Pratyush Anand <panand@redhat.com>
Acked-by: Dave Young <dyoung@redhat.com>
Signed-off-by: Simon Horman <horms@verge.net.au>
Diffstat (limited to 'kexec/kexec.c')
0 files changed, 0 insertions, 0 deletions