]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
bpf: Add cookie object to bpf maps
authorDaniel Borkmann <daniel@iogearbox.net>
Wed, 30 Jul 2025 23:47:30 +0000 (01:47 +0200)
committerAlexei Starovoitov <ast@kernel.org>
Thu, 31 Jul 2025 18:30:05 +0000 (11:30 -0700)
commit12df58ad294253ac1d8df0c9bb9cf726397a671d
tree2c41db06de937e6136bf501931826eb6bcf38867
parentd6084bb815c453de27af8071a23163a711586a6c
bpf: Add cookie object to bpf maps

Add a cookie to BPF maps to uniquely identify BPF maps for the timespan
when the node is up. This is different to comparing a pointer or BPF map
id which could get rolled over and reused.

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