Files
linux-stable-mirror/kernel
Puranjay Mohan 31d3b4b28e bpf: Validate node_id in arena_alloc_pages()
[ Upstream commit 2845989f2e ]

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: 317460317a ("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>
Signed-off-by: Sasha Levin <sashal@kernel.org>
2026-05-23 13:04:42 +02:00
..
2026-05-23 13:04:35 +02:00
2025-11-24 10:35:59 +01:00
2024-10-09 12:47:19 -07:00
2024-09-03 21:15:26 -07:00
2026-05-23 13:04:35 +02:00
2026-05-23 13:04:35 +02:00
2024-09-27 08:18:43 -07:00
2026-05-23 13:04:35 +02:00
2025-12-18 13:54:50 +01:00
2026-05-23 13:04:35 +02:00