Re: [PATCH -mm 3/3] ELF, coredump: allow process with empty address space to coredump

From: Alexey Dobriyan
Date: Sun Dec 22 2019 - 09:52:25 EST


On Sun, Dec 22, 2019 at 05:44:21PM +0300, Alexey Dobriyan wrote:
> Unmapping whole address space at once with
>
> munmap(0, (1ULL<<47) - 4096)
>
> or equivalent will create empty coredump.

> tools/testing/selftests/exec/Makefile | 1
> tools/testing/selftests/exec/coredump-zero-vma.c | 38 +++++++++++++++++++++++

Oh, disreard this.
Test should fork and wait properly.