VirtualBox

Ticket #20055: linux-5.10-address-space-fixes.patch

File linux-5.10-address-space-fixes.patch, 731 bytes (added by Hans-Peter Jansen, 4 years ago)

This fixes the shared folder driver

  • src/VBox/Additions/linux/sharedfolders/regops.c

    a b static int vbsf_lock_user_pages_failed_c  
    14011401    /*
    14021402     * Check that this is valid user memory that is actually in the kernel range.
    14031403     */
    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)
    14051408    if (   access_ok((void *)uPtrFrom, cPages << PAGE_SHIFT)
    14061409        && uPtrFrom >= USER_DS.seg)
    14071410#else

© 2024 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy