[dpdk-stable] [dpdk-dev] [PATCH v6] eal: use madvise to exclude unmapped memory from being dumped

David Marchand david.marchand at redhat.com
Fri Apr 24 19:33:13 CEST 2020


On Fri, Apr 24, 2020 at 3:19 PM Li Feng <fengli at smartx.com> wrote:
>
> Currently, even though memory is mapped with PROT_NONE, this does not
> cause it to be excluded from core dumps. This is counter-productive,
> because in a lot of cases, this memory will go unused (e.g. when the
> memory subsystem preallocates VA space but hasn't yet mapped physical
> pages into it).
>
> Use `madvise()` call with MADV_DONTDUMP parameter to exclude the
> unmapped memory from being dumped.
>
> Signed-off-by: Li Feng <fengli at smartx.com>

Acked-by: Anatoly Burakov <anatoly.burakov at intel.com>

Applied, thanks.


-- 
David Marchand



More information about the stable mailing list