aboutsummaryrefslogtreecommitdiffstats
path: root/arch/s390/include/asm/cio.h
diff options
context:
space:
mode:
authorHeiko Carstens <heiko.carstens@de.ibm.com>2016-05-31 09:14:00 +0200
committerMartin Schwidefsky <schwidefsky@de.ibm.com>2016-06-13 15:58:19 +0200
commit4e042af463f806b6ef0e44048eba0964f0a5694e (patch)
tree4bd3cfb12176ee1697ee2c376164eaf28b8d23bf /arch/s390/include/asm/cio.h
parents390/kexec: fix update of os_info crash kernel size (diff)
downloadlinux-dev-4e042af463f806b6ef0e44048eba0964f0a5694e.tar.xz
linux-dev-4e042af463f806b6ef0e44048eba0964f0a5694e.zip
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/s390/include/asm/cio.h')
0 files changed, 0 insertions, 0 deletions