Kees Cook d8e45f2929 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>
2024-03-22 16:25:31 -07:00
..
2024-03-07 21:12:43 -08:00
2024-02-02 09:13:13 -08:00
2023-12-18 11:20:26 -08:00
2023-12-18 11:20:43 -08:00
2023-12-18 11:20:43 -08:00
2023-01-19 08:18:03 -08:00
2023-12-18 11:20:26 -08:00
2023-11-13 11:42:15 -08:00
2023-12-18 11:20:43 -08:00
2023-10-26 20:32:38 -07:00
2023-12-18 11:20:26 -08:00
2023-12-18 11:20:26 -08:00
2023-12-13 16:16:40 -08:00
2023-12-18 11:20:43 -08:00
2023-12-05 11:40:12 +01:00
2023-12-05 11:40:12 +01:00
2023-11-13 11:42:14 -08:00
2023-11-13 11:42:14 -08:00
2023-10-20 12:53:05 +01:00
2023-08-17 10:43:06 -07:00
2024-03-04 10:25:07 -08:00
2024-03-04 10:25:07 -08:00
2024-02-12 10:12:42 -08:00
2023-12-14 09:50:48 -08:00