2022-11-22 00:01:58 +01:00
|
|
|
Index: VirtualBox-7.0.4/src/VBox/Runtime/r0drv/linux/alloc-r0drv-linux.c
|
2016-08-19 10:55:54 +02:00
|
|
|
===================================================================
|
2022-11-22 00:01:58 +01:00
|
|
|
--- VirtualBox-7.0.4.orig/src/VBox/Runtime/r0drv/linux/alloc-r0drv-linux.c
|
|
|
|
+++ VirtualBox-7.0.4/src/VBox/Runtime/r0drv/linux/alloc-r0drv-linux.c
|
2022-11-18 22:49:33 +01:00
|
|
|
@@ -45,7 +45,7 @@
|
2016-08-31 09:26:51 +02:00
|
|
|
#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)
|
2022-11-18 22:49:33 +01:00
|
|
|
@@ -311,6 +311,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));
|