]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
bpf: Move bpf map owner out of common struct
authorDaniel Borkmann <daniel@iogearbox.net>
Mon, 1 Sep 2025 17:34:50 +0000 (13:34 -0400)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 9 Sep 2025 16:54:11 +0000 (18:54 +0200)
commit56ca85f614bea95d5367e21be61999c6f89b0f54
tree621b98213d985501f0f59a5340ee3eecbd6ac758
parent2f7877e003fa68af4932ebad345763282e9466db
bpf: Move bpf map owner out of common struct

[ Upstream commit fd1c98f0ef5cbcec842209776505d9e70d8fcd53 ]

Given this is only relevant for BPF tail call maps, it is adding up space
and penalizing other map types. We also need to extend this with further
objects to track / compare to. Therefore, lets move this out into a separate
structure and dynamically allocate it only for BPF tail call maps.

Signed-off-by: Daniel Borkmann <daniel@iogearbox.net>
Link: https://lore.kernel.org/r/20250730234733.530041-2-daniel@iogearbox.net
Signed-off-by: Alexei Starovoitov <ast@kernel.org>
Signed-off-by: Sasha Levin <sashal@kernel.org>
include/linux/bpf.h
kernel/bpf/core.c
kernel/bpf/syscall.c