aboutsummaryrefslogtreecommitdiffstats
path: root/arch/s390/kernel/crash_dump.c
diff options
context:
space:
mode:
authorHeiko Carstens <hca@linux.ibm.com>2021-12-16 13:27:10 +0100
committerHeiko Carstens <hca@linux.ibm.com>2021-12-20 10:21:55 +0100
commita0e45d40d5f8461aeee9374c0ffa7b1da87c203c (patch)
tree9db5bd01c39381defaf63600bf37a6441c082422 /arch/s390/kernel/crash_dump.c
parents390/crypto: fix compile error for ChaCha20 module (diff)
downloadlinux-dev-a0e45d40d5f8461aeee9374c0ffa7b1da87c203c.tar.xz
linux-dev-a0e45d40d5f8461aeee9374c0ffa7b1da87c203c.zip
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>
Diffstat (limited to 'arch/s390/kernel/crash_dump.c')
-rw-r--r--arch/s390/kernel/crash_dump.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/s390/kernel/crash_dump.c b/arch/s390/kernel/crash_dump.c
index 785d54c9350c..af8202121642 100644
--- a/arch/s390/kernel/crash_dump.c
+++ b/arch/s390/kernel/crash_dump.c
@@ -60,7 +60,7 @@ struct save_area * __init save_area_alloc(bool is_boot_cpu)
{
struct save_area *sa;
- sa = (void *) memblock_phys_alloc(sizeof(*sa), 8);
+ sa = memblock_alloc(sizeof(*sa), 8);
if (!sa)
panic("Failed to allocate save area\n");