2022-11-18 22:49:33 +01:00
|
|
|
Index: VirtualBox-7.0.2/src/VBox/Additions/linux/sharedfolders/regops.c
|
2019-05-29 16:36:37 +02:00
|
|
|
===================================================================
|
2022-11-18 22:49:33 +01:00
|
|
|
--- VirtualBox-7.0.2.orig/src/VBox/Additions/linux/sharedfolders/regops.c
|
|
|
|
+++ VirtualBox-7.0.2/src/VBox/Additions/linux/sharedfolders/regops.c
|
2022-09-16 19:04:36 +02:00
|
|
|
@@ -1451,7 +1451,7 @@ DECLINLINE(int) vbsf_lock_user_pages(uin
|
2020-08-29 21:52:49 +02:00
|
|
|
# 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);
|