Changeset 101358 in vbox
- Timestamp:
- Oct 5, 2023 3:24:57 PM (16 months ago)
- Location:
- trunk/src/VBox/HostDrivers/Support
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/HostDrivers/Support/SUPDrv.cpp
r100357 r101358 1765 1765 /* execute */ 1766 1766 pReq->u.Out.cFunctions = RT_ELEMENTS(g_aFunctions); 1767 SUPDRV_UNFORTIFIED_MEMCPY(&pReq->u.Out.aFunctions[0], g_aFunctions, sizeof(g_aFunctions));1767 RT_BCOPY_UNFORTIFIED(&pReq->u.Out.aFunctions[0], g_aFunctions, sizeof(g_aFunctions)); 1768 1768 pReq->Hdr.rc = VINF_SUCCESS; 1769 1769 return 0; -
trunk/src/VBox/HostDrivers/Support/SUPDrvInternal.h
r99861 r101358 243 243 # endif 244 244 # endif 245 # if (RTLNX_VER_MIN(5,18,0) || RTLNX_RHEL_RANGE(9,3, 9,99)) && !defined(__NO_FORTIFY) && defined(__OPTIMIZE__) && defined(CONFIG_FORTIFY_SOURCE)246 # define SUPDRV_UNFORTIFIED_MEMCPY __underlying_memcpy247 # endif248 245 # define SUPR0_EXPORT_SYMBOL(a_Name) EXPORT_SYMBOL(a_Name) 249 246 … … 375 372 * @todo Test on servers with many CPUs and sockets. */ 376 373 # define SUPDRV_USE_TSC_DELTA_THREAD 377 #endif378 379 /** @def SUPDRV_UNFORTIFIED_MEMCPY380 * Use when copying to variable length structures, it prevents a fortified381 * memcpy (linux 5.18+) from complaining about "field-spanning writes".382 *383 * @see @ticketref{21410}, @bugref{10209}384 */385 #if !defined(SUPDRV_UNFORTIFIED_MEMCPY) || defined(DOXYGEN_RUNNING) /* (Already defined above if fortified.) */386 # define SUPDRV_UNFORTIFIED_MEMCPY memcpy387 374 #endif 388 375 -
trunk/src/VBox/HostDrivers/Support/SUPDrvTracer.cpp
r100476 r101358 999 999 1000 1000 if (!pUmod) 1001 SUPDRV_UNFORTIFIED_MEMCPY(pProv->szName, pszName, cchName + 1);1001 RT_BCOPY_UNFORTIFIED(pProv->szName, pszName, cchName + 1); 1002 1002 else 1003 1003 RTStrPrintf(pProv->szName, cchName + 1, "%s%u", pszName, (uint32_t)pSession->Process); 1004 SUPDRV_UNFORTIFIED_MEMCPY((void *)pProv->Core.pszModName, pszModName, cchModName + 1);1004 RT_BCOPY_UNFORTIFIED((void *)pProv->Core.pszModName, pszModName, cchModName + 1); 1005 1005 1006 1006 /*
Note:
See TracChangeset
for help on using the changeset viewer.