summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorChristian Hesse <mail@eworm.de>2021-10-25 12:47:30 +0200
committercgzones <cgzones@googlemail.com>2021-10-25 21:05:28 +0200
commit3f9f52fd2932be7529f0eb8f678df640a3a591ef (patch)
treef21c4f01cb20bac1b85667115131e02572f24ecb
parentdfa62506b7b412eeaea8efe1a5cb68e34fbfa88c (diff)
Linux: ignore mapped /dev/zero
Virtualbox maps /dev/zero for memory allocation. That results in false positive, so ignore.
-rw-r--r--linux/LinuxProcessList.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/linux/LinuxProcessList.c b/linux/LinuxProcessList.c
index dbbc57d1..d99cc00e 100644
--- a/linux/LinuxProcessList.c
+++ b/linux/LinuxProcessList.c
@@ -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)

© 2014-2024 Faster IT GmbH | imprint | privacy policy