diff options
author | Kees Cook <keescook@chromium.org> | 2024-03-07 02:51:36 +0300 |
---|---|---|
committer | Kees Cook <keescook@chromium.org> | 2024-03-23 02:25:31 +0300 |
commit | d8e45f2929b94099913eb66c3ebb18b5063e9421 (patch) | |
tree | 236c22e5ae9d2d4b3066a6982369edd73d66a7c5 /drivers/misc | |
parent | acd80cdcee17eb770fcb2b0dc659b78f369d8c01 (diff) | |
download | linux-d8e45f2929b94099913eb66c3ebb18b5063e9421.tar.xz |
overflow: Change DEFINE_FLEX to take __counted_by member
The norm should be flexible array structures with __counted_by
annotations, so DEFINE_FLEX() is updated to expect that. Rename
the non-annotated version to DEFINE_RAW_FLEX(), and update the
few existing users. Additionally add selftests for the macros.
Reviewed-by: Gustavo A. R. Silva <gustavoars@kernel.org>
Link: https://lore.kernel.org/r/20240306235128.it.933-kees@kernel.org
Reviewed-by: Przemek Kitszel <przemyslaw.kitszel@intel.com>
Signed-off-by: Kees Cook <keescook@chromium.org>
Diffstat (limited to 'drivers/misc')
0 files changed, 0 insertions, 0 deletions