verify-prevail
Skill3.6k starsChanged 8 months agoMITView on GitHub
Diagnose eBPF program verification failures from the PREVAIL verifier. Use this skill for linux-compatible eBPF programs verified in the standalone PREVAIL repo (external/ebpf-verifier). For programs using Windows-specific features (bpf2c pipeline, Windows helpers, ebpf-for-windows headers), use the 'verify-bpf' skill instead.
Trending
Quiet since July.about the whole repository
Who's talking about microsoft/ebpf-for-windows
- A Hacker News story“eBPF on Windows”Hacker News · May 10, 2021 · 294 points
- sshuttle/sshuttle“Windows support 🤞”GitHub · Aug 31, 2022 · 6 reactions
- @alilleybrinker.com“Apparently there’s eBPF for Windows now github.com/microsoft/eb...”Bluesky · Jan 9, 2025 · 3 likes
- A Hacker News story“eBPF Runs on Top of Windows”Hacker News · Jul 24, 2024 · 3 points
- @breakawaybilly.bsky.social“They are working on it github.com/microsoft/eb...”Bluesky · Jun 30, 2025 · 2 likes
The biggest 5 of 42 mentions linking to the repository that our crawl found. Each line is their own headline.
See all 42
Talked about on GitHub, Bluesky and Hacker News (42 times).
On GitHub · 32
- Aug 31, 2022Windows support 🤞 — sshuttle/sshuttle6 reactions · 10 comments
- Oct 13, 2023Upload consistently times out after hitting HTTP 503 several times — actions/upload-artifact2 reactions · 2 comments
- May 19, 2022Remove Existing Program/Rule Engine in lieu of eBPF — microsoft/xdp-for-windows2 reactions · 2 comments
- Nov 10, 2025Would implementing the fix done for the following issue to the UDFS driver fix its UNEXPECTED_KERNEL_MODE_TRAP BSODs? — Zero3K/reactos1 reaction
- Oct 14, 2025windows: fix CI issues — cilium/ebpf1 reaction
27 more on GitHub
- Jul 17, 2025pipeline failures from Github runner update to LLVM 20.1.7 — microsoft/ntosebpfext1 reaction
- Nov 19, 2024Regression due to Large output redirect refactor — catchorg/Catch21 reaction · 5 comments
- Jul 29, 2024XDP must define its eBPF structs and helpers itself — microsoft/xdp-for-windows1 reaction · 1 comment
- May 23, 2024Consume eBPF program flags feature and match Linux behavior for discontiguous frames — microsoft/xdp-for-windows1 reaction · 5 comments
- Jul 20, 2026Add Renovate configuration for dependency updates — microsoft/ebpf-extension-common0 reactions
- May 27, 2026[Enhancement] dae support Running on Windows — daeuniverse/dae0 reactions · 1 comment
- May 3, 2026New package: Microsoft.eBPFforWindows version 1.1.0 — microsoft/winget-pkgs0 reactions · 3 comments
- Apr 21, 2026Add bpf_redirect_map for AF_XDP sockets — microsoft/xdp-for-windows0 reactions
- Jan 6, 2026Add AF_XDP bpf_redirect_map support — microsoft/xdp-for-windows0 reactions · 1 comment
- Dec 15, 2025Extensions require vc runtime — microsoft/ntosebpfext0 reactions · 1 comment
- Nov 10, 2025Fix UDFS overflow queue list corruption causing BSOD 0x7F — Zero3K/reactos0 reactions · 2 comments
- Nov 4, 2025[Enhancement] Support Windows platform — daeuniverse/dae0 reactions · 3 comments
- Jun 2, 2025windows: support ringbuf / perf maps — cilium/ebpf0 reactions · 4 comments
- Apr 7, 2025Bump github.com/cilium/ebpf from 0.16.0 to 0.18.0 — ganeshkumarsv/datadog-agent0 reactions · 1 comment
- Apr 3, 2025Bump github.com/cilium/ebpf from 0.17.1 to 0.18.0 — balajiv113/trackport0 reactions
- Jan 31, 2025Windows support — tjjh89017/stunmesh-go0 reactions
- Mar 23, 2024[Enhancement Request] Support for Windows — elastic/ebpf0 reactions · 3 comments
- Jun 12, 2023Skip tests for doc-only changes — openedx-unsupported/devstack0 reactions · 1 comment
- Mar 23, 2023Windows powershell command logging — gravitational/teleport0 reactions
- Feb 28, 2023Consume fix for eBPF native driver unload race condition — microsoft/xdp-for-windows0 reactions
- Feb 28, 2023Consume const-correct eBPF definitions — microsoft/xdp-for-windows0 reactions · 1 comment
- Jun 10, 2022ELF file with symbol table containing incorrect section entry size causes llvm-objdump to crash — llvm/llvm-project0 reactions · 5 comments
- Apr 4, 2022EverParse generated code should compile /W4 /WX clean — project-everest/everparse0 reactions · 2 comments
- Apr 3, 2022possibly find cross-platform alternatives to bpftrace — lun-4/awtfdb0 reactions
- Feb 16, 2022Security vulnerability reporting process — l3af-project/governance0 reactions · 4 comments
- Jan 21, 2022Port ebpf_exporter to Windows — cloudflare/ebpf_exporter0 reactions · 1 comment
- Jun 1, 2021goebpf for windows — dropbox/goebpf0 reactions · 1 comment
On Bluesky · 7
- Jan 9, 2025Apparently there’s eBPF for Windows now github.com/microsoft/eb... — @alilleybrinker.com3 likes and reposts
- Jun 30, 2025They are working on it github.com/microsoft/eb... — @breakawaybilly.bsky.social2 likes and reposts · 1 reply
- Feb 25, 2025#eBPF is a great technology extending an OS kernel, for use cases such as DoS protection, observability, and beyond, this space should be… — @cloudnativeboy.bsky.social2 likes and reposts
- Feb 14, 2025Or maybe not? github.com/microsoft/eb... — @notwes.bsky.social2 likes and reposts
- Nov 27, 2024Fun fact, ebpf also exists (albeit in a user-mode vm) on Windows! github.com/microsoft/eb... — @adamkadaban.com2 likes and reposts · 1 reply
2 more on Bluesky
- Nov 16, 2024I just discovered that there's an eBPF implementation for Windows. github.com/microsoft/eb... — @bwoodfin.bsky.social2 likes and reposts
- Sep 17, 2025non mais ça arrivera ptet un jour github.com/microsoft/eb... — @erwanaliasr1.bsky.social1 likes and repost · 1 reply
On Hacker News · 3
- May 10, 2021eBPF on Windows294 points · 165 comments
- Jul 24, 2024eBPF Runs on Top of Windows3 points
- Apr 6, 2023eBPF for Windows2 points
In this repository7 other files it gives its agents.
- .github/copilot-instructions.mdCopilot instructions
- adversarial-branch-reviewSkill
- build-ebpfSkill
- build-prevailSkill
- debug-crash-dumpSkill
- pr-triage-reportSkill
- verify-bpfSkill
The file
We split this skill into the rules it gives an agent
6 rules. About 0 are common, 5 are distinctive, and 1 is very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈5
Distinctive · estimate
This author's own choices. Worth a look.
1
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 38
Read the full PREVAIL diagnostic reference before diagnosing:
- Very specific: line 57
Read external/ebpf-verifier/docs/llm-context.md to load the full diagnostic context.
- Distinctive: line 61
Ask the user to provide (if not already given):
- Distinctive: line 88
Follow the reasoning protocol from the reference:
- Distinctive: line 100
If it's a verifier limitation, suggest workarounds (direct pointer comparisons, restructured control flow, etc.)
- Distinctive: line 107
Never assume a register has a type or constraint unless it appears in the pre-invariant.
≈ “Common” is an estimate: at least 1 in 5 of the 213,895 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
Diagnose PREVAIL Verification Failures (Linux-Compatible Programs)
Diagnose eBPF program verification failures using the standalone PREVAIL verifier
(external/ebpf-verifier). This skill covers linux-compatible eBPF programs
that can be verified directly with the PREVAIL check or run_yaml tools.
When to Use
- User shares a PREVAIL verifier error or log and asks why verification failed
- User asks to diagnose, debug, or explain an eBPF verification failure in the
PREVAIL repo (
external/ebpf-verifier) - User asks to debug PREVAIL YAML test failures or abstract-interpretation issues
- User is working on verifier internals (abstract domains, widening, transformers)
- User mentions "verifier", "verification", "PREVAIL", or "abstract interpretation" errors for linux-compatible BPF programs
When NOT to Use
- Program uses Windows-specific helpers or headers (e.g.,
ebpf_helpers.h,sample_ext_helpers.h, WFP hook types) → useverify-bpfinstead - User wants to run the bpf2c pipeline (clang → bpf2c → native driver) → use
verify-bpfinstead - User needs to compile a
.cBPF source to.ofor ebpf-for-windows → useverify-bpfinstead
Reference Document
Read the full PREVAIL diagnostic reference before diagnosing:
external/ebpf-verifier/docs/llm-context.mdThis document contains:
- How to interpret PREVAIL log output (register state, stack state, invariants)
- Glossary of log terms, types, type groups, and assertions
- Common failure patterns with symptoms, causes, and fixes
- Advanced topics (widening, path-insensitivity, pointer provenance)
- A step-by-step reasoning protocol for diagnosis
Always read this file first — it is the authoritative reference for PREVAIL diagnostics.
Diagnosis Instructions
Step 1: Read the Reference
Read external/ebpf-verifier/docs/llm-context.md to load the full diagnostic context.
Step 2: Gather the Error
Ask the user to provide (if not already given):
- The verifier error message (the line with
<pc>: <message> (<assertion>)) - The pre-invariant at the failing instruction
- The 3–5 instructions leading up to the failure
- The source code of the eBPF program (or the relevant section)
- Any map or context definitions (for map/context-related errors)
Step 3: Identify the Failure Pattern
Using the reference document, match the error to one of the common failure patterns:
| Pattern | Key Symptom |
| Uninitialized register | Invalid type (r<N>.type in {...}) |
| Unbounded packet access | Upper bound must be at most packet_size |
| Stack out-of-bounds | Lower bound must be at least r10.stack_offset - EBPF_SUBPROGRAM_STACK_SIZE |
| Null pointer (map lookup) | Possible null access |
| Type mismatch | Only pointers can be dereferenced |
| Pointer arithmetic error | Only numbers can be added to pointers |
| Infinite loop | Loop counter is too large (pc[N] < 100000) |
| Division by zero | Possible division by zero |
| Map key/value mismatch | Illegal map update with a non-numerical value |
| Context bounds violation | Nonzero context offset or context Upper bound error |
| Lost correlation (verifier limitation) | Bounds check present but verifier can't prove safety |
Step 4: Trace the Root Cause
Follow the reasoning protocol from the reference:
- Check the pre-invariant — what types and constraints do the relevant registers have?
- Identify missing constraints — what constraint would make the assertion pass?
- Trace backwards — where was the constraint lost or never established?
- Check for verifier limitations — is this a code bug or a verifier precision issue?
Step 5: Recommend a Fix
Provide:
- A clear explanation of why verification failed
- The specific constraint that is missing or violated
- A concrete code fix (with before/after examples when possible)
- If it's a verifier limitation, suggest workarounds (direct pointer comparisons, restructured control flow, etc.)
Important Notes
- PREVAIL is more conservative than the Linux kernel verifier — code accepted by Linux may be rejected by PREVAIL.
- PREVAIL is path-insensitive — it uses a single abstract state per program point, so correlated conditions across branches may be lost.
- Widening at loop headers can destroy constraints — if a loop-related failure occurs, check whether widening eliminated a needed bound.
- Never assume a register has a type or constraint unless it appears in the pre-invariant.
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

