Changeset 101358 in vbox for trunk/src/VBox/HostDrivers/Support/SUPDrvInternal.h
- Timestamp:
- Oct 5, 2023 3:24:57 PM (20 months ago)
- svn:sync-xref-src-repo-rev:
- 159361
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
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
Note:
See TracChangeset
for help on using the changeset viewer.