diff options
| author | Bill Wendling <morbo@google.com> | 2026-09-23 04:28:25 +0000 |
|---|---|---|
| committer | Jonathan Cameron <jonathan.cameron@oss.qualcomm.com> | 2026-09-28 17:07:33 +0100 |
| commit | a1b8188791004839aa985b18bb3b265875ff8073 (patch) | |
| tree | de3faf7cbea547e4023be5d86e39a46f297feee0 /tools/perf/scripts/python/stackcollapse.py | |
| parent | 525b772be2c03773c5cc828b4c8ea5d94f5b00ca (diff) | |
| download | linux-next-a1b8188791004839aa985b18bb3b265875ff8073.tar.gz linux-next-a1b8188791004839aa985b18bb3b265875ff8073.zip | |
iio: add __counted_by_ptr attribute to channels in struct iio_dev
In 'struct iio_dev', the 'channels' pointer refers to an array of IIO
channel specifications ('struct iio_chan_spec const'), and the size of
this array is tracked by the 'num_channels' field within the same
struct.
Applying the '__counted_by_ptr' attribute to 'channels' allows KASAN
and compiler-based bounds checkers to verify that accesses to 'channels'
remain within bounds at runtime.
Cc: codemender-patching+linux@google.com
Assisted-by: LLM
Signed-off-by: Bill Wendling <morbo@google.com>
Reviewed-by: Gustavo A. R. Silva <gustavoars@kernel.org>
Signed-off-by: Jonathan Cameron <jonathan.cameron@oss.qualcomm.com>
Diffstat (limited to 'tools/perf/scripts/python/stackcollapse.py')
0 files changed, 0 insertions, 0 deletions
