[CRIU] [PATCH 1/2] pie/vdso: return back ELF header mismatch error
Dmitry Safonov
dsafonov at virtuozzo.com
Thu May 18 11:10:18 PDT 2017
I've deleted it previously by the reason that I searched
vdso vma in [vdso/vvar] vma's pair by magic header.
So, I needed to suppress this error.
>From that moment, I've reworked how 32-bit vdso is parsed
and now we don't need to search it, even more: we parse it
only once in the criu helper.
Signed-off-by: Dmitry Safonov <dsafonov at virtuozzo.com>
---
criu/pie/util-vdso.c | 5 ++++-
1 file changed, 4 insertions(+), 1 deletion(-)
diff --git a/criu/pie/util-vdso.c b/criu/pie/util-vdso.c
index ef87f07d58d3..51fea56a3adc 100644
--- a/criu/pie/util-vdso.c
+++ b/criu/pie/util-vdso.c
@@ -87,8 +87,11 @@ static int has_elf_identity(Ehdr_t *ehdr)
BUILD_BUG_ON(sizeof(elf_ident) != sizeof(ehdr->e_ident));
- if (memcmp(ehdr->e_ident, elf_ident, sizeof(elf_ident)))
+ if (memcmp(ehdr->e_ident, elf_ident, sizeof(elf_ident))) {
+ pr_err("ELF header magic mismatch\n");
return false;
+ }
+
return true;
}
--
2.12.2
More information about the CRIU
mailing list