2020-08-29 21:52:49 +02:00
|
|
|
Index: VirtualBox-6.1.13/src/VBox/Additions/linux/sharedfolders/regops.c
|
2019-05-29 16:36:37 +02:00
|
|
|
===================================================================
|
2020-08-29 21:52:49 +02:00
|
|
|
--- VirtualBox-6.1.13.orig/src/VBox/Additions/linux/sharedfolders/regops.c
|
|
|
|
+++ VirtualBox-6.1.13/src/VBox/Additions/linux/sharedfolders/regops.c
|
|
|
|
@@ -1432,7 +1432,7 @@ DECLINLINE(int) vbsf_lock_user_pages(uin
|
|
|
|
# elif RTLNX_VER_MIN(4,6,0)
|
2019-05-29 16:36:37 +02:00
|
|
|
ssize_t cPagesLocked = get_user_pages_unlocked(uPtrFrom, cPages, fWrite, 1 /*force*/, papPages);
|
2020-08-29 21:52:49 +02:00
|
|
|
# elif RTLNX_VER_RANGE(4,4,168, 4,5,0)
|
2019-05-29 16:36:37 +02:00
|
|
|
- ssize_t cPagesLocked = get_user_pages_unlocked(current, current->mm, uPtrFrom, cPages, papPages,
|
|
|
|
+ ssize_t cPagesLocked = get_user_pages_unlocked(uPtrFrom, cPages, papPages,
|
|
|
|
fWrite ? FOLL_WRITE | FOLL_FORCE : FOLL_FORCE);
|
2020-08-29 21:52:49 +02:00
|
|
|
# elif RTLNX_VER_MIN(4,0,0)
|
2019-05-29 16:36:37 +02:00
|
|
|
ssize_t cPagesLocked = get_user_pages_unlocked(current, current->mm, uPtrFrom, cPages, fWrite, 1 /*force*/, papPages);
|