aboutsummaryrefslogtreecommitdiffstats
path: root/scripts/gcc-plugins/randomize_layout_plugin.c
diff options
context:
space:
mode:
authorKees Cook <[email protected]>2025-05-30 19:06:47 +0000
committerKees Cook <[email protected]>2025-06-01 15:41:11 +0000
commit5c78e793f78732b60276401f75cc1a101f9ad121 (patch)
tree16248215b7a05577019cc6c02443a8f7b4255e8d /scripts/gcc-plugins/randomize_layout_plugin.c
parentubsan: integer-overflow: depend on BROKEN to keep this out of CI (diff)
downloadkernel-5c78e793f78732b60276401f75cc1a101f9ad121.tar.gz
kernel-5c78e793f78732b60276401f75cc1a101f9ad121.zip
overflow: Introduce __DEFINE_FLEX for having no initializer
While not yet in the tree, there is a proposed patch[1] that was depending on the prior behavior of _DEFINE_FLEX, which did not have an explicit initializer. Provide this via __DEFINE_FLEX now, which can also have attributes applied (e.g. __uninitialized). Examples of the resulting initializer behaviors can be seen here: https://godbolt.org/z/P7Go8Tr33 Link: https://lore.kernel.org/netdev/[email protected] [1] Fixes: 47e36ed78406 ("overflow: Fix direct struct member initialization in _DEFINE_FLEX()") Signed-off-by: Kees Cook <[email protected]>
Diffstat (limited to 'scripts/gcc-plugins/randomize_layout_plugin.c')
0 files changed, 0 insertions, 0 deletions