aboutsummaryrefslogtreecommitdiffstats
path: root/rust/helpers/mutex.c
diff options
context:
space:
mode:
authorThorsten Blum <[email protected]>2025-06-10 10:40:59 +0000
committerKees Cook <[email protected]>2025-06-18 21:20:32 +0000
commit4bfbc2691de8c869339090e851703209b17ba378 (patch)
treeef06a674df6c4fb642331c2f137315e1de5460e8 /rust/helpers/mutex.c
parentLinux 6.16-rc2 (diff)
downloadkernel-4bfbc2691de8c869339090e851703209b17ba378.tar.gz
kernel-4bfbc2691de8c869339090e851703209b17ba378.zip
mux: Convert mux_control_ops to a flex array member in mux_chip
Convert mux_control_ops to a flexible array member at the end of the mux_chip struct and add the __counted_by() compiler attribute to improve access bounds-checking via CONFIG_UBSAN_BOUNDS and CONFIG_FORTIFY_SOURCE. Use struct_size() to calculate the number of bytes to allocate for a new mux chip and to remove the following Coccinelle/coccicheck warning: WARNING: Use struct_size Use size_add() to safely add any extra bytes. No functional changes intended. Link: https://github.com/KSPP/linux/issues/83 Signed-off-by: Thorsten Blum <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Kees Cook <[email protected]>
Diffstat (limited to 'rust/helpers/mutex.c')
0 files changed, 0 insertions, 0 deletions