VirtualBox

Ignore:
Timestamp:
Apr 1, 2022 2:02:04 PM (3 years ago)
Author:
vboxsync
Message:

Support: Disable dlopen() patching for ASAN builds for now as our patcher can't deal with the encountered instructions yet

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/HostDrivers/Support/posix/SUPR3HardenedMain-posix.cpp

    r93115 r94439  
    6161*   Structures and Typedefs                                                                                                      *
    6262*********************************************************************************************************************************/
     63#ifndef SUP_HARDENED_WITHOUT_DLOPEN_PATCHING
    6364/**
    6465 * Callback (SUPHARDENEDPOSIXHOOK::pfnResolv) for triggering lazy GOT resolver.
     
    107108#endif
    108109
     110#endif /* SUP_HARDENED_WITHOUT_DLOPEN_PATCHING */
     111
    109112
    110113/*********************************************************************************************************************************
    111114*   Internal Functions                                                                                                           *
    112115*********************************************************************************************************************************/
     116#ifndef SUP_HARDENED_WITHOUT_DLOPEN_PATCHING
    113117static FNSUPHARDENEDSYMRESOLVE supR3HardenedPosixMonitorDlopenResolve;
    114118#ifdef SUP_HARDENED_WITH_DLMOPEN
     
    121125DECLASM(void) supR3HardenedPosixMonitor_Dlmopen(Lmid_t idLm, const char *pszFilename, int fFlags);
    122126#endif
     127#endif /* SUP_HARDENED_WITHOUT_DLOPEN_PATCHING */
    123128
    124129
     
    126131*   Global Variables                                                                                                             *
    127132*********************************************************************************************************************************/
     133#ifndef SUP_HARDENED_WITHOUT_DLOPEN_PATCHING
     134
    128135RT_C_DECLS_BEGIN
    129136/** Resume patch for dlopen(), jumped to form assembly stub. */
     
    620627#endif
    621628
     629#endif /* SUP_HARDENED_WITHOUT_DLOPEN_PATCHING */
     630
    622631
    623632/**
     
    630639DECLHIDDEN(void) supR3HardenedPosixInit(void)
    631640{
     641#ifndef SUP_HARDENED_WITHOUT_DLOPEN_PATCHING
    632642    for (unsigned i = 0; i < RT_ELEMENTS(g_aHooks); i++)
    633643    {
     
    638648                                  "Failed to hook the %s interface", pHook->pszSymbol);
    639649    }
     650#endif
    640651}
    641652
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