microsoft / microsoft/ebpf-for-windows

Serialize "check and create" map logic in ebpf_native

Open
#4,398 0 comments 1 reaction 2 assignees Claimed by @saxena-anurag View on GitHub
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

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.