Kees Cook ea0b0bcef4 module: Annotate struct module_notes_attrs with __counted_by
Prepare for the coming implementation by GCC and Clang of the __counted_by
attribute. Flexible array members annotated with __counted_by can have
their accesses bounds-checked at run-time checking via CONFIG_UBSAN_BOUNDS
(for array indexing) and CONFIG_FORTIFY_SOURCE (for strcpy/memcpy-family
functions).

As found with Coccinelle[1], add __counted_by for struct module_notes_attrs.

[1] https://github.com/kees/kernel-tools/blob/trunk/coccinelle/examples/counted_by.cocci

Cc: Luis Chamberlain <mcgrof@kernel.org>
Cc: linux-modules@vger.kernel.org
Signed-off-by: Kees Cook <keescook@chromium.org>
Signed-off-by: Luis Chamberlain <mcgrof@kernel.org>
2023-11-01 13:07:32 -07:00
..
2023-10-31 05:10:11 -10:00
2023-10-31 05:10:11 -10:00
2023-09-04 13:20:19 -07:00
2023-10-30 17:27:56 -10:00
2023-10-30 18:01:41 -10:00
2023-10-31 05:10:11 -10:00
2023-10-31 05:10:11 -10:00
2022-09-26 10:13:13 -07:00
2023-10-30 18:01:41 -10:00
2023-10-30 20:13:17 -10:00
2023-10-19 11:02:48 +02:00
2023-03-24 11:01:29 +01:00
2023-10-19 11:02:48 +02:00
2023-08-30 09:16:56 -07:00
2023-10-09 16:59:47 +10:00
2023-08-23 09:38:17 +09:00
2023-06-28 15:51:08 -07:00
2023-09-19 13:21:33 -07:00
2023-10-30 17:56:53 -10:00
2023-09-21 19:22:10 +02:00
2023-08-15 15:26:17 -07:00
2023-10-11 08:46:01 -07:00