VirtualBox

Ignore:
Timestamp:
Oct 5, 2023 3:24:57 PM (20 months ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
159361
Message:

Linux: vboxdrv: Replace SUPDRV_UNFORTIFIED_MEMCPY with RT_BCOPY_UNFORTIFIED, bugref:10209.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/HostDrivers/Support/SUPDrvInternal.h

    r99861 r101358  
    243243#       endif
    244244#   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_memcpy
    247 #   endif
    248245#   define SUPR0_EXPORT_SYMBOL(a_Name) EXPORT_SYMBOL(a_Name)
    249246
     
    375372 * @todo Test on servers with many CPUs and sockets. */
    376373# define SUPDRV_USE_TSC_DELTA_THREAD
    377 #endif
    378 
    379 /** @def SUPDRV_UNFORTIFIED_MEMCPY
    380  * Use when copying to variable length structures, it prevents a fortified
    381  * 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 memcpy
    387374#endif
    388375
Note: See TracChangeset for help on using the changeset viewer.

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