diff options
| author | Kees Cook <[email protected]> | 2023-08-17 21:03:01 +0000 |
|---|---|---|
| committer | Mickaël Salaün <[email protected]> | 2023-08-18 09:44:42 +0000 |
| commit | 246c713a3655c840337c4b24d3838558673c0d6b (patch) | |
| tree | 86263e8a121047685a2e585f92932deb749bfa53 /tools/perf/scripts/python/flamegraph.py | |
| parent | Linux 6.5-rc6 (diff) | |
| download | kernel-246c713a3655c840337c4b24d3838558673c0d6b.tar.gz kernel-246c713a3655c840337c4b24d3838558673c0d6b.zip | |
landlock: Annotate struct landlock_rule 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 landlock_rule.
[1] https://github.com/kees/kernel-tools/blob/trunk/coccinelle/examples/counted_by.cocci
Cc: Paul Moore <[email protected]>
Cc: James Morris <[email protected]>
Cc: "Serge E. Hallyn" <[email protected]>
Cc: [email protected]
Signed-off-by: Kees Cook <[email protected]>
Reviewed-by: Justin Stitt <[email protected]>
Reviewed-by: "Gustavo A. R. Silva" <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Mickaël Salaün <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/flamegraph.py')
0 files changed, 0 insertions, 0 deletions
