diff options
author | Kees Cook <[email protected]> | 2023-09-22 10:50:19 -0700 |
---|---|---|
committer | Alexandre Belloni <[email protected]> | 2023-09-25 23:33:38 +0200 |
commit | 751d377f0f7a09d6122de0e2232133524568c52b (patch) | |
tree | edeacc11ea9a6169ca57577360158c2aa08510a6 /tools/perf/scripts/python/export-to-sqlite.py | |
parent | 49f33846efc079eb94b044bf897e90909fd3aa11 (diff) |
i3c/master/mipi-i3c-hci: Annotate struct hci_rings_data 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 hci_rings_data.
[1] https://github.com/kees/kernel-tools/blob/trunk/coccinelle/examples/counted_by.cocci
Cc: Alexandre Belloni <[email protected]>
Cc: Nicolas Pitre <[email protected]>
Cc: Len Baker <[email protected]>
Cc: Boris Brezillon <[email protected]>
Cc: [email protected]
Signed-off-by: Kees Cook <[email protected]>
Reviewed-by: Gustavo A. R. Silva <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Alexandre Belloni <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/export-to-sqlite.py')
0 files changed, 0 insertions, 0 deletions