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

2025-05-01 Thread WorksButNotTested
--- include/exec/page-protection.h | 6 ++ linux-user/elfload.c | 4 linux-user/mmap.c | 5 + 3 files changed, 15 insertions(+) diff --git a/include/exec/page-protection.h b/include/exec/page-protection.h index c43231af8b..f8826d917e 100644 --- a/include/exec/p

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

2025-05-06 Thread WorksButNotTested
-mortem when fuzzing. Whilst the man pages state that madvise provides only a hint (and hence can be ignored), this patch adds support to handle MADV_DONTDUMP and set a corresponding flag in the page flags, thus allowing QEMU to exclude these regions from the core file. Signed-off-by: WorksButNotTested

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

2025-05-01 Thread WorksButNotTested
-mortem when fuzzing. Whilst the man pages state that madvise provides only a hint (and hence can be ignored), this patch adds support to handle MADV_DONTDUMP and set a corresponding flag in the page flags, thus allowing QEMU to exclude these regions from the core file. Signed-off-by: WorksButNotTested