An assumption that zero value of OS_INFO pointer is not valid leads to a failure of --mem-usage argument against /proc/kcore: s390x_init_vm: Can't get s390x os_info ptr. Reported-by: Philipp Rudo <prudo@xxxxxxxxxx> Fixes: 9d58c2630c71 ("s390x: uncouple virtual and physical address spaces") Signed-off-by: Alexander Gordeev <agordeev@xxxxxxxxxxxxx> --- arch/s390x.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/arch/s390x.c b/arch/s390x.c index 4a993be..f9a055d 100644 --- a/arch/s390x.c +++ b/arch/s390x.c @@ -156,8 +156,7 @@ static int s390x_init_vm(void) struct os_info os_info; ulong addr; - if (!readmem(PADDR, S390X_LC_OS_INFO, &addr, - sizeof(addr)) || !addr) { + if (!readmem(PADDR, S390X_LC_OS_INFO, &addr, sizeof(addr))) { ERRMSG("Can't get s390x os_info ptr.\n"); return FALSE; } -- 2.43.0 _______________________________________________ kexec mailing list kexec@xxxxxxxxxxxxxxxxxxx http://lists.infradead.org/mailman/listinfo/kexec