VirtualBox

Changeset 81586 in vbox for trunk


Ignore:
Timestamp:
Oct 30, 2019 12:50:42 PM (5 years ago)
Author:
vboxsync
Message:

IPRT/alloc-r0drv-linux.c: Shouldn't need to mark pages allocated by RTMemContAlloc() as executable, nobody else seems to do this. ticketref:18945

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Runtime/r0drv/linux/alloc-r0drv-linux.c

    r77727 r81586  
    444444
    445445            SetPageReserved(&paPages[iPage]);
    446 #if LINUX_VERSION_CODE > KERNEL_VERSION(2, 4, 20) /** @todo find the exact kernel where change_page_attr was introduced. */
    447             MY_SET_PAGES_EXEC(&paPages[iPage], 1);
    448 #endif
    449446        }
    450447        *pPhys = page_to_phys(paPages);
     
    492489        {
    493490            ClearPageReserved(&paPages[iPage]);
    494 #if LINUX_VERSION_CODE > KERNEL_VERSION(2, 4, 20) /** @todo find the exact kernel where change_page_attr was introduced. */
    495             MY_SET_PAGES_NOEXEC(&paPages[iPage], 1);
    496 #endif
    497491        }
    498492        __free_pages(paPages, cOrder);
Note: See TracChangeset for help on using the changeset viewer.

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