On Fri, Apr 24, 2020 at 3:19 PM Li Feng <[email protected]> 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 <[email protected]>
Acked-by: Anatoly Burakov <[email protected]> Applied, thanks. -- David Marchand

