Skip to content

Commit 3f9f52f

Browse files
eworm-decgzones
authored andcommitted
Linux: ignore mapped /dev/zero
Virtualbox maps /dev/zero for memory allocation. That results in false positive, so ignore.
1 parent dfa6250 commit 3f9f52f

1 file changed

Lines changed: 5 additions & 0 deletions

File tree

linux/LinuxProcessList.c

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -654,6 +654,11 @@ static void LinuxProcessList_readMaps(LinuxProcess* process, openat_arg_t procFd
654654
if (String_startsWith(readptr, "/memfd:"))
655655
continue;
656656

657+
/* Virtualbox maps /dev/zero for memory allocation. That results in
658+
* false positive, so ignore. */
659+
if (String_eq(readptr, "/dev/zero (deleted)\n"))
660+
continue;
661+
657662
if (strstr(readptr, " (deleted)\n")) {
658663
proc->usesDeletedLib = true;
659664
if (!calcSize)

0 commit comments

Comments
 (0)