iovisor / iovisor/bcc

Clarifying BPF map's get_table_offline() atomicity

Open
#3,493 2 comments 0 reactions 1 assignee Claimed by @davemarchevsky View on GitHub
documentation question
Dominant language
C
Stars
22.7k
Forks
4.1k
Avg merge
5d 13h
Merged PRs (30d)
3

Description

We uses BPF map to transfer data from BPF to userspace. The code calls get_table_offline() to get all data. But we are concerned about the race condition, between the userspace code and the bpf code, as during the call of get_table_offline(), the bpf map is still being written by BPF code.

But so far we have not observed fatal breakage at all.

We speculated that the race condition might causes we read stale values, or missing values, but the data structure can still be navigated correctly.

Is there more detailed description of the atomicity of get_table_offline()?

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.