diff options
author | Heiko Carstens <heiko.carstens@de.ibm.com> | 2016-05-31 09:14:00 +0200 |
---|---|---|
committer | Martin Schwidefsky <schwidefsky@de.ibm.com> | 2016-06-13 15:58:19 +0200 |
commit | 4e042af463f806b6ef0e44048eba0964f0a5694e (patch) | |
tree | 4bd3cfb12176ee1697ee2c376164eaf28b8d23bf /arch/xtensa/include/asm/segment.h | |
parent | 2d0af2247906cf17cd641cdb16444a8f291cd4f4 (diff) | |
download | linux-4e042af463f806b6ef0e44048eba0964f0a5694e.tar.bz2 |
s390/kexec: fix crash on resize of reserved memory
Reducing the size of reserved memory for the crash kernel will result
in an immediate crash on s390. Reason for that is that we do not
create struct pages for memory that is reserved. If that memory is
freed any access to struct pages which correspond to this memory will
result in invalid memory accesses and a kernel panic.
Fix this by properly creating struct pages when the system gets
initialized. Change the code also to make use of set_memory_ro() and
set_memory_rw() so page tables will be split if required.
Signed-off-by: Heiko Carstens <heiko.carstens@de.ibm.com>
Signed-off-by: Martin Schwidefsky <schwidefsky@de.ibm.com>
Diffstat (limited to 'arch/xtensa/include/asm/segment.h')
0 files changed, 0 insertions, 0 deletions