]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
bpf: Move bpf map owner out of common struct
authorDaniel Borkmann <daniel@iogearbox.net>
Wed, 30 Jul 2025 23:47:31 +0000 (01:47 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 9 Sep 2025 16:56:18 +0000 (18:56 +0200)
commitdbd8ec2261b8fe76b8dc8f0b0bc6655b68d8a43f
treec02ae646330e599c9558e4fff37121730193f7d2
parent8e573ac21fcdcca5bd03c80e26071d860dfe6df7
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