forked from pool/virtualbox
3c1dc4f2d5
OBS-URL: https://build.opensuse.org/request/show/854343 OBS-URL: https://build.opensuse.org/package/show/Virtualization/virtualbox?expand=0&rev=577
17 lines
731 B
Diff
17 lines
731 B
Diff
Index: b/src/VBox/Additions/linux/sharedfolders/regops.c
|
|
===================================================================
|
|
--- a/src/VBox/Additions/linux/sharedfolders/regops.c
|
|
+++ b/src/VBox/Additions/linux/sharedfolders/regops.c
|
|
@@ -1401,7 +1401,10 @@ static int vbsf_lock_user_pages_failed_c
|
|
/*
|
|
* Check that this is valid user memory that is actually in the kernel range.
|
|
*/
|
|
-#if RTLNX_VER_MIN(5,0,0) || RTLNX_RHEL_MIN(8,1)
|
|
+#if RTLNX_VER_MIN(5,10,0)
|
|
+ if ( access_ok((void *)uPtrFrom, cPages << PAGE_SHIFT)
|
|
+ && uPtrFrom >= TASK_SIZE_MAX)
|
|
+#elif RTLNX_VER_MIN(5,0,0) || RTLNX_RHEL_MIN(8,1)
|
|
if ( access_ok((void *)uPtrFrom, cPages << PAGE_SHIFT)
|
|
&& uPtrFrom >= USER_DS.seg)
|
|
#else
|