s390/crash_dump: fix virtual vs physical address handling
authorHeiko Carstens <hca@linux.ibm.com>
Thu, 16 Dec 2021 12:27:10 +0000 (13:27 +0100)
committerHeiko Carstens <hca@linux.ibm.com>
Mon, 20 Dec 2021 09:21:55 +0000 (10:21 +0100)
commita0e45d40d5f8461aeee9374c0ffa7b1da87c203c
tree9db5bd01c39381defaf63600bf37a6441c082422
parent39d02827ed40fd421a758a36264c255d69f5d035
s390/crash_dump: fix virtual vs physical address handling

Signal processor STORE STATUS requires a physical address where register
contents are supposed to be written to, however the kernel must read the
data via the corresponding virtual address.

Also the allocated save_area, where register contents are copied to,
resides in virtual address space.

Fix this by using proper __pa() conversion, or correct memblock_alloc()
invocation.

Reviewed-by: Alexander Gordeev <agordeev@linux.ibm.com>
Signed-off-by: Heiko Carstens <hca@linux.ibm.com>
arch/s390/kernel/crash_dump.c
arch/s390/kernel/smp.c