summaryrefslogtreecommitdiff
path: root/src/VBox/Runtime/r0drv
diff options
context:
space:
mode:
authorvboxsync <vboxsync@cfe28804-0f27-0410-a406-dd0f0b0b656f>2022-09-13 10:16:54 +0000
committervboxsync <vboxsync@cfe28804-0f27-0410-a406-dd0f0b0b656f>2022-09-13 10:16:54 +0000
commit383317d3a6066028695601377baacb61ec5300ba (patch)
treeb33d2f307905f7557f9d248d575d7ced57aba107 /src/VBox/Runtime/r0drv
parentbc424891856b31594f0adb65d0f47ec15fa35947 (diff)
downloadVirtualBox-svn-383317d3a6066028695601377baacb61ec5300ba.tar.gz
iprt: Linux: r0drv: Prevent build failure on 5.8+ 32-bit kernels, bugref:4567:65.
Replace __vmalloc call with AssertMsgFailed. This code branch should not be reached by 32-bit 5.8+ kernel. If it is a case, we should be noticed about that. git-svn-id: https://www.virtualbox.org/svn/vbox/trunk@96717 cfe28804-0f27-0410-a406-dd0f0b0b656f
Diffstat (limited to 'src/VBox/Runtime/r0drv')
-rw-r--r--src/VBox/Runtime/r0drv/linux/alloc-r0drv-linux.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/VBox/Runtime/r0drv/linux/alloc-r0drv-linux.c b/src/VBox/Runtime/r0drv/linux/alloc-r0drv-linux.c
index abd944aab39..f0d351f4d98 100644
--- a/src/VBox/Runtime/r0drv/linux/alloc-r0drv-linux.c
+++ b/src/VBox/Runtime/r0drv/linux/alloc-r0drv-linux.c
@@ -279,7 +279,12 @@ DECLHIDDEN(int) rtR0MemAllocEx(size_t cb, uint32_t fFlags, PRTMEMHDR *ppHdr)
# endif /* !RTMEMALLOC_EXEC_HEAP */
#elif defined(PAGE_KERNEL_EXEC) && defined(CONFIG_X86_PAE)
+# if RTLNX_VER_MIN(5,8,0)
+ AssertMsgFailed(("This point should not be reached, please file a bug\n"));
+ pHdr = NULL;
+# else
pHdr = (PRTMEMHDR)__vmalloc(cb + sizeof(*pHdr), GFP_KERNEL | __GFP_HIGHMEM | __GFP_NOWARN, MY_PAGE_KERNEL_EXEC);
+# endif
#else
pHdr = (PRTMEMHDR)vmalloc(cb + sizeof(*pHdr));
#endif