microsoft / microsoft/ebpf-for-windows

When ebpfcore is not running, ebpf_program_load() returns EBPF_INVALID_FD

Open
#662 0 comments 0 reactions 0 assignees View on GitHub
cleanup good first issue triaged
Dominant language
C
Stars
3.6k
Forks
311
Avg merge
6d 10h
Merged PRs (30d)
21

Description

When ebpfcore is not running, `ebpf_program_load()` API returns `EBPF_INVALID_FD`, which is confusing to debug.

In the case when ebpfcore is not running, the API should return a clearer error code.

Contributor guide

Open the contributing guide

Research direction

Start by tracing the ebpf_program_load() API path for the case where ebpfcore is unavailable, and find where that condition becomes EBPF_INVALID_FD. Identify the existing error-code tests or test entry points for this API. Done means the unavailable-service case returns a clearer, distinct error code and the behavior is covered by a test.

Written by the indexing model from the issue text.

Assessment

Tech stack
c
Domain
backend-api-design, operating-systems
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.