aboutsummaryrefslogtreecommitdiff
path: root/scripts/analyse-9p-simpletrace.py
diff options
context:
space:
mode:
authorDavid Hildenbrand <david@redhat.com>2024-02-14 16:17:01 +0100
committerMichael S. Tsirkin <mst@redhat.com>2024-03-12 17:56:55 -0400
commit52767e1063beaa17d59c739efd0b9c342923929d (patch)
tree4e1bc37c960c59da5f9aecb07b0b14f07545839e /scripts/analyse-9p-simpletrace.py
parent67f4f663cd6179d57f3e5a558f1526c7dc8c6742 (diff)
downloadqemu-52767e1063beaa17d59c739efd0b9c342923929d.zip
qemu-52767e1063beaa17d59c739efd0b9c342923929d.tar.gz
qemu-52767e1063beaa17d59c739efd0b9c342923929d.tar.bz2
libvhost-user: Mark mmap'ed region memory as MADV_DONTDUMP
We already use MADV_NORESERVE to deal with sparse memory regions. Let's also set madvise(MADV_DONTDUMP), otherwise a crash of the process can result in us allocating all memory in the mmap'ed region for dumping purposes. This change implies that the mmap'ed rings won't be included in a coredump. If ever required for debugging purposes, we could mark only the mapped rings MADV_DODUMP. Ignore errors during madvise() for now. Reviewed-by: Raphael Norwitz <raphael@enfabrica.net> Acked-by: Stefano Garzarella <sgarzare@redhat.com> Signed-off-by: David Hildenbrand <david@redhat.com> Message-Id: <20240214151701.29906-15-david@redhat.com> Tested-by: Mario Casquero <mcasquer@redhat.com> Reviewed-by: Michael S. Tsirkin <mst@redhat.com> Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
Diffstat (limited to 'scripts/analyse-9p-simpletrace.py')
0 files changed, 0 insertions, 0 deletions