Commit acfd9a3e authored by Dmitry Safonov's avatar Dmitry Safonov Committed by Andrei Vagin

vdso: suppress not ELF vDSO error

When mapping compatible vDSO in restorer blob (with vdso_map_compat),
we don't know if the kernel will map firstly vvar pages or vdso pages.
So we attempt search by checking ELF header magic on those pages.
Which leads to following "errors", which this patch hides:
pie: 1: Error (pie/util-vdso-elf32.c:87): vdso: Elf header magic misma>
pie: 1: Error (pie/util-vdso-elf32.c:87): vdso: Elf header magic misma>
pie: 7: Error (pie/util-vdso-elf32.c:87): vdso: Elf header magic misma>
pie: 7: Error (pie/util-vdso-elf32.c:87): vdso: Elf header magic misma>
pie: 6: Error (pie/util-vdso-elf32.c:87): vdso: Elf header magic misma>
pie: 6: Error (pie/util-vdso-elf32.c:87): vdso: Elf header magic misma>
pie: 4: Error (pie/util-vdso-elf32.c:87): vdso: Elf header magic misma>
pie: 5: Error (pie/util-vdso-elf32.c:87): vdso: Elf header magic misma>
pie: 4: Error (pie/util-vdso-elf32.c:87): vdso: Elf header magic misma>
pie: 5: Error (pie/util-vdso-elf32.c:87): vdso: Elf header magic misma>
(for two vvar pages and 5 processes being restored).

Cc: Cyrill Gorcunov <gorcunov@openvz.org>
Signed-off-by: 's avatarDmitry Safonov <dsafonov@virtuozzo.com>
Signed-off-by: 's avatarPavel Emelyanov <xemul@virtuozzo.com>
Signed-off-by: 's avatarAndrei Vagin <avagin@virtuozzo.com>
parent a8ae7b4e
...@@ -88,11 +88,8 @@ static int has_elf_identity(Ehdr_t *ehdr) ...@@ -88,11 +88,8 @@ static int has_elf_identity(Ehdr_t *ehdr)
BUILD_BUG_ON(sizeof(elf_ident) != sizeof(ehdr->e_ident)); 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 false;
}
return true; return true;
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment