2021-10-21 19:55:02 +02:00
|
|
|
Index: VirtualBox-6.1.28/src/VBox/Runtime/r0drv/linux/alloc-r0drv-linux.c
|
2016-08-19 10:55:54 +02:00
|
|
|
===================================================================
|
2021-10-21 19:55:02 +02:00
|
|
|
--- VirtualBox-6.1.28.orig/src/VBox/Runtime/r0drv/linux/alloc-r0drv-linux.c
|
|
|
|
+++ VirtualBox-6.1.28/src/VBox/Runtime/r0drv/linux/alloc-r0drv-linux.c
|
2016-08-31 09:26:51 +02:00
|
|
|
@@ -35,7 +35,7 @@
|
|
|
|
#include <iprt/assert.h>
|
2019-01-28 21:37:13 +01:00
|
|
|
#include <iprt/errcore.h>
|
2016-08-31 09:26:51 +02:00
|
|
|
#include "r0drv/alloc-r0drv.h"
|
|
|
|
-
|
|
|
|
+#include <linux/kmemleak.h>
|
|
|
|
|
|
|
|
#if (defined(RT_ARCH_AMD64) || defined(DOXYGEN_RUNNING)) && !defined(RTMEMALLOC_EXEC_HEAP)
|
2021-10-21 19:55:02 +02:00
|
|
|
# if RTLNX_VER_MIN(2,6,23) && RTLNX_VER_MAX(5,8,0) && !RTLNX_RHEL_MAJ_PREREQ(8,5)
|
2020-08-29 21:52:49 +02:00
|
|
|
@@ -296,6 +296,7 @@ DECLHIDDEN(int) rtR0MemAllocEx(size_t cb
|
2016-08-31 09:26:51 +02:00
|
|
|
fFlags &= ~RTMEMHDR_FLAG_KMALLOC;
|
|
|
|
pHdr = vmalloc(cb + sizeof(*pHdr));
|
|
|
|
}
|
|
|
|
+ kmemleak_not_leak(pHdr);
|
|
|
|
}
|
|
|
|
else
|
|
|
|
pHdr = vmalloc(cb + sizeof(*pHdr));
|