Re: [PATCH v4] Support madvise(MADV_DONTDUMP) when creating core dumps for qemu-user

2025-07-10 Thread Richard Henderson
On 5/6/25 11:34, Jon Wilson wrote: +case MADV_DONTDUMP: +if (len > 0) { +/* + * To set the page permissons, we must OR our new flags with the + * existing flags. Only mark the pages as PAGE_DONTDUMP if the + * entire range has the same f

[PATCH v4] Support madvise(MADV_DONTDUMP) when creating core dumps for qemu-user

2025-05-06 Thread Jon Wilson
When running applications which make large (sparsely populated) address ranges (e.g. when using address sanitizer with LibAFL) the inability to exclude these regions from any core dump can result in very large files which fill the disk. A coredump is obvously very useful for performing a post-morte