Ticket #20055: linux-5.10-address-space-fixes.patch
| File linux-5.10-address-space-fixes.patch, 731 bytes (added by , 4 years ago) |
|---|
-
src/VBox/Additions/linux/sharedfolders/regops.c
a b static int vbsf_lock_user_pages_failed_c 1401 1401 /* 1402 1402 * Check that this is valid user memory that is actually in the kernel range. 1403 1403 */ 1404 #if RTLNX_VER_MIN(5,0,0) || RTLNX_RHEL_MIN(8,1) 1404 #if RTLNX_VER_MIN(5,10,0) 1405 if ( access_ok((void *)uPtrFrom, cPages << PAGE_SHIFT) 1406 && uPtrFrom >= TASK_SIZE_MAX) 1407 #elif RTLNX_VER_MIN(5,0,0) || RTLNX_RHEL_MIN(8,1) 1405 1408 if ( access_ok((void *)uPtrFrom, cPages << PAGE_SHIFT) 1406 1409 && uPtrFrom >= USER_DS.seg) 1407 1410 #else

