VirtualBox

Ignore:
Timestamp:
Oct 17, 2021 6:16:11 PM (3 years ago)
Author:
vboxsync
Message:

SUPDrv,IPRT,VBoxGuest: Don't export ellipsis functions from SUPDrv, as that makes switching back to the kernel stack unsafe. Exports has changes (added+removed), but not bumping major IOC version as that was done a few hours ago already and it's Sunday. bugref:10124

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/HostDrivers/Support/solaris/SUPDrv-solaris.c

    r90780 r91789  
    13031303
    13041304
    1305 RTDECL(int) SUPR0Printf(const char *pszFormat, ...)
    1306 {
    1307     va_list     args;
    1308     char        szMsg[512];
    1309 
     1305RTDECL(int) SUPR0PrintfV(const char *pszFormat, va_list va)
     1306{
    13101307    /* cmn_err() acquires adaptive mutexes. Not preemption safe, see @bugref{6657}. */
    1311     if (!RTThreadPreemptIsEnabled(NIL_RTTHREAD))
    1312         return 0;
    1313 
    1314     va_start(args, pszFormat);
    1315     RTStrPrintfV(szMsg, sizeof(szMsg) - 1, pszFormat, args);
    1316     va_end(args);
    1317 
    1318     szMsg[sizeof(szMsg) - 1] = '\0';
    1319     cmn_err(CE_CONT, "%s", szMsg);
     1308    if (RTThreadPreemptIsEnabled(NIL_RTTHREAD))
     1309    {
     1310        char szMsg[512];
     1311        RTStrPrintfV(szMsg, sizeof(szMsg) - 1, pszFormat, va);
     1312        szMsg[sizeof(szMsg) - 1] = '\0';
     1313
     1314        cmn_err(CE_CONT, "%s", szMsg);
     1315    }
    13201316    return 0;
    13211317}
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