microsoft / microsoft/ebpf-for-windows
Serialize "check and create" map logic in ebpf_native
Open
bug
P2
triaged
- Dominant language
- C
- Stars
- 3.6k
- Forks
- 311
- Avg merge
- 6d 10h
- Merged PRs (30d)
- 21
Description
Today, if 2 native programs are being loaded in parallel, and the map is "reused" using LIBBPF_PIN_BY_NAME, there is a race possible where both threads try to create the map and "reuse". This can be fixed by serializing the "test and set" for map pin path in ebpf native.
Contributor guide
Assessment
This issue has not been assessed yet.