From 0a8e726d058d2ddb5b70cb885ea61b7517124619 Mon Sep 17 00:00:00 2001 From: Marc Hartmayer Date: Tue, 7 Sep 2021 11:59:15 +0000 Subject: [PATCH] zgetdump: return -EINVAL for user space core dumps MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit zgetdump is for analyzing VM coredumps and not user space coredumps therefore return an error in case of a user space coredump. Reviewed-by: Alexander Egorenkov Signed-off-by: Marc Hartmayer Signed-off-by: Jan Höppner --- zdump/dfi_elf.c | 1 + 1 file changed, 1 insertion(+) diff --git a/zdump/dfi_elf.c b/zdump/dfi_elf.c index a8e98afa..2ebbfe49 100644 --- a/zdump/dfi_elf.c +++ b/zdump/dfi_elf.c @@ -48,6 +48,7 @@ static int pt_load_add(Elf64_Phdr *phdr) phdr->p_paddr = phdr->p_vaddr; STDERR("Dump file \"%s\" is a user space core dump\n", g.opts.device); + return -EINVAL; } if (phdr->p_memsz == 0) return -EINVAL;