Changeset 99420 in vbox for trunk/src/VBox/Additions/linux/sharedfolders/vfsmod.h
- Timestamp:
- Apr 17, 2023 2:25:25 PM (21 months ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Additions/linux/sharedfolders/vfsmod.h
r98869 r99420 80 80 81 81 82 /* Simmilar workaround for CONFIG_FORTIFY_SOURCE kernel config option as we have for host drivers. 83 * In Linux 5.18-rc1, memcpy became a wrapper which does fortify checks 84 * before triggering __underlying_memcpy() call. We do not pass these checks in some places so 85 * bypass them for now. */ 82 /** Similar workaround for CONFIG_FORTIFY_SOURCE kernel config option as we 83 * have in the host drivers. 84 * 85 * In Linux 5.18-rc1, memcpy became a wrapper which does fortify checks before 86 * making a call to __underlying_memcpy(). There are a number of places where 87 * we trigger the "field-spanning write" fortify check, typically when copying 88 * to SHFLSTRING structure members as these are actually of variable length but 89 * we don't (cannot with gcc) use RT_FLEXIBLE_ARRAY_NESTED. 90 * 91 * Use this when copying to structures or members with a variable length member. 92 * 93 * @see @ticketref{21410}, @bugref{10209} 94 */ 86 95 #if RTLNX_VER_MIN(5,18,0) && !defined(__NO_FORTIFY) && defined(__OPTIMIZE__) && defined(CONFIG_FORTIFY_SOURCE) 87 # define VB OX_LINUX_MEMCPY __underlying_memcpy96 # define VBSF_UNFORTIFIED_MEMCPY __underlying_memcpy 88 97 #else 89 # define VBOX_LINUX_MEMCPYmemcpy98 # define VBSF_UNFORTIFIED_MEMCPY memcpy 90 99 #endif 91 100
Note:
See TracChangeset
for help on using the changeset viewer.