diff options
author | Thomas Garnier <thgarnie@google.com> | 2016-09-13 15:10:05 +0800 |
---|---|---|
committer | Simon Horman <horms@verge.net.au> | 2016-09-29 09:43:15 +0200 |
commit | 9f62cbddddfc93d78d9aafbddf3e1208cb242f7b (patch) | |
tree | 17d4d9c0db0b193c3ccdd58b3a870e57efe0efda /kexec/add_segment.c | |
parent | abdfe97736f89d9bc73662b9134604b0229a599e (diff) |
kexec/arch/i386: Add support for KASLR memory randomization
Multiple changes were made on KASLR (right now in linux-next). One of
them is randomizing the virtual address of the physical mapping, vmalloc
and vmemmap memory sections. It breaks kdump ability to read physical
memory.
This change identifies if KASLR memories randomization is used by
checking if the page_offset_base variable exists. It search for the
correct PAGE_OFFSET value by looking at the loaded memory section and
find the lowest aligned on PUD (the randomization level).
Related commits on linux-next:
- 0483e1fa6e09d4948272680f691dccb1edb9677f: Base for randomization
- 021182e52fe01c1f7b126f97fd6ba048dc4234fd: Enable for PAGE_OFFSET
Signed-off-by: Thomas Garnier <thgarnie@google.com>
Signed-off-by: Simon Horman <horms@verge.net.au>
Diffstat (limited to 'kexec/add_segment.c')
0 files changed, 0 insertions, 0 deletions