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)
committerAlexei Starovoitov <ast@kernel.org>
Thu, 31 Jul 2025 18:30:05 +0000 (11:30 -0700)
commitfd1c98f0ef5cbcec842209776505d9e70d8fcd53
tree9d2c1aa807b25dc3fc7921c88587d612b2676eca
parent12df58ad294253ac1d8df0c9bb9cf726397a671d
bpf: Move bpf map owner out of common struct

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>
include/linux/bpf.h
kernel/bpf/core.c
kernel/bpf/syscall.c