diff options
| author | Puranjay Mohan <puranjay@kernel.org> | 2026-04-17 08:21:33 -0700 |
|---|---|---|
| committer | Alexei Starovoitov <ast@kernel.org> | 2026-04-17 10:12:55 -0700 |
| commit | 2845989f2ebaf7848e4eccf9a779daf3156ea0a5 (patch) | |
| tree | 15e6cccd687d253fc89ecabfb3f9974357b50e67 /tools/perf/scripts/python | |
| parent | 380044c40b1636a72fd8f188b5806be6ae564279 (diff) | |
bpf: Validate node_id in arena_alloc_pages()
arena_alloc_pages() accepts a plain int node_id and forwards it through
the entire allocation chain without any bounds checking.
Validate node_id before passing it down the allocation chain in
arena_alloc_pages().
Fixes: 317460317a02 ("bpf: Introduce bpf_arena.")
Signed-off-by: Puranjay Mohan <puranjay@kernel.org>
Reviewed-by: Emil Tsalapatis <emil@etsalapatis.com>
Link: https://lore.kernel.org/r/20260417152135.1383754-1-puranjay@kernel.org
Signed-off-by: Alexei Starovoitov <ast@kernel.org>
Diffstat (limited to 'tools/perf/scripts/python')
0 files changed, 0 insertions, 0 deletions
