Linux: ignore mapped /dev/zero

Virtualbox maps /dev/zero for memory allocation. That results in
false positive, so ignore.
This commit is contained in:
Christian Hesse 2021-10-25 12:47:30 +02:00 committed by cgzones
parent dfa62506b7
commit 3f9f52fd29

View File

@ -654,6 +654,11 @@ static void LinuxProcessList_readMaps(LinuxProcess* process, openat_arg_t procFd
if (String_startsWith(readptr, "/memfd:"))
continue;
/* Virtualbox maps /dev/zero for memory allocation. That results in
* false positive, so ignore. */
if (String_eq(readptr, "/dev/zero (deleted)\n"))
continue;
if (strstr(readptr, " (deleted)\n")) {
proc->usesDeletedLib = true;
if (!calcSize)