VirtualBox

Changeset 13665 in vbox


Ignore:
Timestamp:
Oct 29, 2008 5:42:51 PM (16 years ago)
Author:
vboxsync
Message:

rtMemAlloc/linux: Don't fool ourselves trying to allocate executable memory via vmalloc on AMD64, it won't work. Better to fail straight away.

File:
1 edited

Legend:

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

    r12360 r13665  
    131131        }
    132132        else
    133 # endif
    134             pHdr = (PRTMEMHDR)__vmalloc(cb + sizeof(*pHdr), GFP_KERNEL | __GFP_HIGHMEM, MY_PAGE_KERNEL_EXEC);
     133            pHdr = NULL;
     134# else  /* !RTMEMALLOC_EXEC_HEAP */
     135        pHdr = (PRTMEMHDR)__vmalloc(cb + sizeof(*pHdr), GFP_KERNEL | __GFP_HIGHMEM, MY_PAGE_KERNEL_EXEC);
     136# endif /* !RTMEMALLOC_EXEC_HEAP */
    135137
    136138#elif defined(PAGE_KERNEL_EXEC) && defined(CONFIG_X86_PAE)
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