VirtualBox

Ticket #17947: vbox.patch

File vbox.patch, 836 bytes (added by Alexander Pyhalov, 6 years ago)

as_map() fix

  • VirtualBox-5.2.22/src/VBox/Runtime/r0drv/solaris/memobj-r0drv-solaris.h

    Patch from Andy Fiddaman <[email protected]>
    
    Following the integration of '9641 want stack-clash mitigation', as_map()
    now expects callback functions to be:
    
    typedef int (*segcreate_func_t)(struct seg **, void *);
    
    old new  
    5656static vnode_t s_segVBoxVnode;
    5757
    5858
    59 DECLINLINE(int) rtR0SegVBoxSolCreate(seg_t *pSeg, void *pvArgs)
     59DECLINLINE(int) rtR0SegVBoxSolCreate(seg_t **ppSeg, void *pvArgs)
    6060{
     61    seg_t          *pSeg       = *ppSeg;
    6162    struct as      *pAddrSpace = pSeg->s_as;
    6263    PSEGVBOX_CRARGS pArgs      = pvArgs;
    6364    PSEGVBOX_DATA   pData      = kmem_zalloc(sizeof(*pData), KM_SLEEP);

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