summaryrefslogtreecommitdiff
path: root/scripts/lib/kdoc/kdoc_re.py
diff options
context:
space:
mode:
authorYureka Lilian <yuka@yuka.dev>2025-08-14 20:01:12 +0200
committerAndrii Nakryiko <andrii@kernel.org>2025-08-15 16:52:50 -0700
commit6c6b4146deb12d20f42490d5013f2043df942161 (patch)
treedfbe3fbe87b3552f4fe44675ee286a69bfc916ff /scripts/lib/kdoc/kdoc_re.py
parentabdaf49be5424db74e19d167c10d7dad79a0efc2 (diff)
libbpf: Fix reuse of DEVMAP
Previously, re-using pinned DEVMAP maps would always fail, because get_map_info on a DEVMAP always returns flags with BPF_F_RDONLY_PROG set, but BPF_F_RDONLY_PROG being set on a map during creation is invalid. Thus, ignore the BPF_F_RDONLY_PROG flag in the flags returned from get_map_info when checking for compatibility with an existing DEVMAP. The same problem is handled in a third-party ebpf library: - https://github.com/cilium/ebpf/issues/925 - https://github.com/cilium/ebpf/pull/930 Fixes: 0cdbb4b09a06 ("devmap: Allow map lookups from eBPF") Signed-off-by: Yureka Lilian <yuka@yuka.dev> Signed-off-by: Andrii Nakryiko <andrii@kernel.org> Link: https://lore.kernel.org/bpf/20250814180113.1245565-3-yuka@yuka.dev
Diffstat (limited to 'scripts/lib/kdoc/kdoc_re.py')
0 files changed, 0 insertions, 0 deletions