Datasets:
example_id stringlengths 18 21 | task_id stringlengths 10 13 | category stringclasses 4
values | difficulty stringclasses 3
values | template_family stringclasses 47
values | example_type stringclasses 2
values | messages listlengths 3 3 |
|---|---|---|---|---|---|---|
sft_rep_nrf_l1_001_01 | nrf_l1_001 | network_routing_forwarding | level_1 | nrf_l2_mac_swap | repair | [
{
"role": "system",
"content": "You are an expert Linux kernel eBPF and XDP systems programmer.\nYou are fixing an XDP program that produced diagnostic errors during evaluation."
},
{
"role": "user",
"content": "Task ID: nrf_l1_001\nCategory: network_routing_forwarding\nDifficulty: level_1\n\nOr... |
sft_rep_nrf_l1_002_01 | nrf_l1_002 | network_routing_forwarding | level_1 | nrf_l2_mac_swap | repair | [
{
"role": "system",
"content": "You are an expert Linux kernel eBPF and XDP systems programmer.\nYou are fixing an XDP program that produced diagnostic errors during evaluation."
},
{
"role": "user",
"content": "Task ID: nrf_l1_002\nCategory: network_routing_forwarding\nDifficulty: level_1\n\nOr... |
sft_rep_nrf_l1_003_01 | nrf_l1_003 | network_routing_forwarding | level_1 | nrf_l2_mac_swap | repair | [
{
"role": "system",
"content": "You are an expert Linux kernel eBPF and XDP systems programmer.\nYou are fixing an XDP program that produced diagnostic errors during evaluation."
},
{
"role": "user",
"content": "Task ID: nrf_l1_003\nCategory: network_routing_forwarding\nDifficulty: level_1\n\nOr... |
sft_rep_nrf_l1_005_01 | nrf_l1_005 | network_routing_forwarding | level_1 | nrf_l2_mac_swap | repair | [
{
"role": "system",
"content": "You are an expert Linux kernel eBPF and XDP systems programmer.\nYou are fixing an XDP program that produced diagnostic errors during evaluation."
},
{
"role": "user",
"content": "Task ID: nrf_l1_005\nCategory: network_routing_forwarding\nDifficulty: level_1\n\nOr... |
sft_rep_nrf_l1_006_01 | nrf_l1_006 | network_routing_forwarding | level_1 | nrf_l2_mac_swap | repair | [
{
"role": "system",
"content": "You are an expert Linux kernel eBPF and XDP systems programmer.\nYou are fixing an XDP program that produced diagnostic errors during evaluation."
},
{
"role": "user",
"content": "Task ID: nrf_l1_006\nCategory: network_routing_forwarding\nDifficulty: level_1\n\nOr... |
sft_rep_nrf_l1_007_01 | nrf_l1_007 | network_routing_forwarding | level_1 | nrf_l2_mac_swap | repair | [
{
"role": "system",
"content": "You are an expert Linux kernel eBPF and XDP systems programmer.\nYou are fixing an XDP program that produced diagnostic errors during evaluation."
},
{
"role": "user",
"content": "Task ID: nrf_l1_007\nCategory: network_routing_forwarding\nDifficulty: level_1\n\nOr... |
sft_rep_nrf_l1_009_01 | nrf_l1_009 | network_routing_forwarding | level_1 | nrf_l2_mac_swap | repair | [
{
"role": "system",
"content": "You are an expert Linux kernel eBPF and XDP systems programmer.\nYou are fixing an XDP program that produced diagnostic errors during evaluation."
},
{
"role": "user",
"content": "Task ID: nrf_l1_009\nCategory: network_routing_forwarding\nDifficulty: level_1\n\nOr... |
sft_rep_nrf_l1_010_01 | nrf_l1_010 | network_routing_forwarding | level_1 | nrf_l2_mac_swap | repair | [
{
"role": "system",
"content": "You are an expert Linux kernel eBPF and XDP systems programmer.\nYou are fixing an XDP program that produced diagnostic errors during evaluation."
},
{
"role": "user",
"content": "Task ID: nrf_l1_010\nCategory: network_routing_forwarding\nDifficulty: level_1\n\nOr... |
sft_rep_nrf_l1_011_01 | nrf_l1_011 | network_routing_forwarding | level_1 | nrf_l2_mac_swap | repair | [
{
"role": "system",
"content": "You are an expert Linux kernel eBPF and XDP systems programmer.\nYou are fixing an XDP program that produced diagnostic errors during evaluation."
},
{
"role": "user",
"content": "Task ID: nrf_l1_011\nCategory: network_routing_forwarding\nDifficulty: level_1\n\nOr... |
sft_rep_nrf_l1_013_01 | nrf_l1_013 | network_routing_forwarding | level_1 | nrf_l2_mac_swap | repair | [
{
"role": "system",
"content": "You are an expert Linux kernel eBPF and XDP systems programmer.\nYou are fixing an XDP program that produced diagnostic errors during evaluation."
},
{
"role": "user",
"content": "Task ID: nrf_l1_013\nCategory: network_routing_forwarding\nDifficulty: level_1\n\nOr... |
sft_rep_nrf_l1_014_01 | nrf_l1_014 | network_routing_forwarding | level_1 | nrf_l2_mac_swap | repair | [
{
"role": "system",
"content": "You are an expert Linux kernel eBPF and XDP systems programmer.\nYou are fixing an XDP program that produced diagnostic errors during evaluation."
},
{
"role": "user",
"content": "Task ID: nrf_l1_014\nCategory: network_routing_forwarding\nDifficulty: level_1\n\nOr... |
sft_rep_nrf_l1_015_01 | nrf_l1_015 | network_routing_forwarding | level_1 | nrf_l2_mac_swap | repair | [
{
"role": "system",
"content": "You are an expert Linux kernel eBPF and XDP systems programmer.\nYou are fixing an XDP program that produced diagnostic errors during evaluation."
},
{
"role": "user",
"content": "Task ID: nrf_l1_015\nCategory: network_routing_forwarding\nDifficulty: level_1\n\nOr... |
sft_rep_nrf_l1_017_01 | nrf_l1_017 | network_routing_forwarding | level_1 | nrf_l2_mac_swap | repair | [
{
"role": "system",
"content": "You are an expert Linux kernel eBPF and XDP systems programmer.\nYou are fixing an XDP program that produced diagnostic errors during evaluation."
},
{
"role": "user",
"content": "Task ID: nrf_l1_017\nCategory: network_routing_forwarding\nDifficulty: level_1\n\nOr... |
sft_rep_nrf_l1_018_01 | nrf_l1_018 | network_routing_forwarding | level_1 | nrf_l2_mac_swap | repair | [
{
"role": "system",
"content": "You are an expert Linux kernel eBPF and XDP systems programmer.\nYou are fixing an XDP program that produced diagnostic errors during evaluation."
},
{
"role": "user",
"content": "Task ID: nrf_l1_018\nCategory: network_routing_forwarding\nDifficulty: level_1\n\nOr... |
sft_rep_nrf_l1_019_01 | nrf_l1_019 | network_routing_forwarding | level_1 | nrf_l2_mac_swap | repair | [
{
"role": "system",
"content": "You are an expert Linux kernel eBPF and XDP systems programmer.\nYou are fixing an XDP program that produced diagnostic errors during evaluation."
},
{
"role": "user",
"content": "Task ID: nrf_l1_019\nCategory: network_routing_forwarding\nDifficulty: level_1\n\nOr... |
sft_rep_nrf_l1_021_01 | nrf_l1_021 | network_routing_forwarding | level_1 | nrf_l2_mac_swap | repair | [
{
"role": "system",
"content": "You are an expert Linux kernel eBPF and XDP systems programmer.\nYou are fixing an XDP program that produced diagnostic errors during evaluation."
},
{
"role": "user",
"content": "Task ID: nrf_l1_021\nCategory: network_routing_forwarding\nDifficulty: level_1\n\nOr... |
sft_rep_nrf_l1_022_01 | nrf_l1_022 | network_routing_forwarding | level_1 | nrf_l2_mac_swap | repair | [
{
"role": "system",
"content": "You are an expert Linux kernel eBPF and XDP systems programmer.\nYou are fixing an XDP program that produced diagnostic errors during evaluation."
},
{
"role": "user",
"content": "Task ID: nrf_l1_022\nCategory: network_routing_forwarding\nDifficulty: level_1\n\nOr... |
sft_rep_nrf_l1_025_01 | nrf_l1_025 | network_routing_forwarding | level_1 | nrf_l2_mac_swap | repair | [
{
"role": "system",
"content": "You are an expert Linux kernel eBPF and XDP systems programmer.\nYou are fixing an XDP program that produced diagnostic errors during evaluation."
},
{
"role": "user",
"content": "Task ID: nrf_l1_025\nCategory: network_routing_forwarding\nDifficulty: level_1\n\nOr... |
sft_rep_nrf_l1_027_01 | nrf_l1_027 | network_routing_forwarding | level_1 | nrf_l2_mac_swap | repair | [
{
"role": "system",
"content": "You are an expert Linux kernel eBPF and XDP systems programmer.\nYou are fixing an XDP program that produced diagnostic errors during evaluation."
},
{
"role": "user",
"content": "Task ID: nrf_l1_027\nCategory: network_routing_forwarding\nDifficulty: level_1\n\nOr... |
sft_rep_nrf_l1_029_01 | nrf_l1_029 | network_routing_forwarding | level_1 | nrf_l2_mac_swap | repair | [
{
"role": "system",
"content": "You are an expert Linux kernel eBPF and XDP systems programmer.\nYou are fixing an XDP program that produced diagnostic errors during evaluation."
},
{
"role": "user",
"content": "Task ID: nrf_l1_029\nCategory: network_routing_forwarding\nDifficulty: level_1\n\nOr... |
sft_rep_nrf_l1_030_01 | nrf_l1_030 | network_routing_forwarding | level_1 | nrf_l2_mac_swap | repair | [
{
"role": "system",
"content": "You are an expert Linux kernel eBPF and XDP systems programmer.\nYou are fixing an XDP program that produced diagnostic errors during evaluation."
},
{
"role": "user",
"content": "Task ID: nrf_l1_030\nCategory: network_routing_forwarding\nDifficulty: level_1\n\nOr... |
sft_rep_nrf_l1_031_01 | nrf_l1_031 | network_routing_forwarding | level_1 | nrf_l2_mac_swap | repair | [
{
"role": "system",
"content": "You are an expert Linux kernel eBPF and XDP systems programmer.\nYou are fixing an XDP program that produced diagnostic errors during evaluation."
},
{
"role": "user",
"content": "Task ID: nrf_l1_031\nCategory: network_routing_forwarding\nDifficulty: level_1\n\nOr... |
sft_rep_nrf_l1_035_01 | nrf_l1_035 | network_routing_forwarding | level_1 | nrf_l2_mac_swap | repair | [
{
"role": "system",
"content": "You are an expert Linux kernel eBPF and XDP systems programmer.\nYou are fixing an XDP program that produced diagnostic errors during evaluation."
},
{
"role": "user",
"content": "Task ID: nrf_l1_035\nCategory: network_routing_forwarding\nDifficulty: level_1\n\nOr... |
sft_rep_nrf_l1_037_01 | nrf_l1_037 | network_routing_forwarding | level_1 | nrf_l2_mac_swap | repair | [
{
"role": "system",
"content": "You are an expert Linux kernel eBPF and XDP systems programmer.\nYou are fixing an XDP program that produced diagnostic errors during evaluation."
},
{
"role": "user",
"content": "Task ID: nrf_l1_037\nCategory: network_routing_forwarding\nDifficulty: level_1\n\nOr... |
sft_rep_nrf_l1_038_01 | nrf_l1_038 | network_routing_forwarding | level_1 | nrf_l2_mac_swap | repair | [
{
"role": "system",
"content": "You are an expert Linux kernel eBPF and XDP systems programmer.\nYou are fixing an XDP program that produced diagnostic errors during evaluation."
},
{
"role": "user",
"content": "Task ID: nrf_l1_038\nCategory: network_routing_forwarding\nDifficulty: level_1\n\nOr... |
sft_rep_nrf_l1_041_01 | nrf_l1_041 | network_routing_forwarding | level_1 | nrf_l2_mac_swap | repair | [
{
"role": "system",
"content": "You are an expert Linux kernel eBPF and XDP systems programmer.\nYou are fixing an XDP program that produced diagnostic errors during evaluation."
},
{
"role": "user",
"content": "Task ID: nrf_l1_041\nCategory: network_routing_forwarding\nDifficulty: level_1\n\nOr... |
sft_rep_nrf_l1_042_01 | nrf_l1_042 | network_routing_forwarding | level_1 | nrf_l2_mac_swap | repair | [
{
"role": "system",
"content": "You are an expert Linux kernel eBPF and XDP systems programmer.\nYou are fixing an XDP program that produced diagnostic errors during evaluation."
},
{
"role": "user",
"content": "Task ID: nrf_l1_042\nCategory: network_routing_forwarding\nDifficulty: level_1\n\nOr... |
sft_rep_nrf_l1_043_01 | nrf_l1_043 | network_routing_forwarding | level_1 | nrf_l2_mac_swap | repair | [
{
"role": "system",
"content": "You are an expert Linux kernel eBPF and XDP systems programmer.\nYou are fixing an XDP program that produced diagnostic errors during evaluation."
},
{
"role": "user",
"content": "Task ID: nrf_l1_043\nCategory: network_routing_forwarding\nDifficulty: level_1\n\nOr... |
sft_rep_nrf_l1_045_01 | nrf_l1_045 | network_routing_forwarding | level_1 | nrf_l2_mac_swap | repair | [
{
"role": "system",
"content": "You are an expert Linux kernel eBPF and XDP systems programmer.\nYou are fixing an XDP program that produced diagnostic errors during evaluation."
},
{
"role": "user",
"content": "Task ID: nrf_l1_045\nCategory: network_routing_forwarding\nDifficulty: level_1\n\nOr... |
sft_rep_nrf_l1_047_01 | nrf_l1_047 | network_routing_forwarding | level_1 | nrf_l2_mac_swap | repair | [
{
"role": "system",
"content": "You are an expert Linux kernel eBPF and XDP systems programmer.\nYou are fixing an XDP program that produced diagnostic errors during evaluation."
},
{
"role": "user",
"content": "Task ID: nrf_l1_047\nCategory: network_routing_forwarding\nDifficulty: level_1\n\nOr... |
sft_rep_nrf_l1_049_01 | nrf_l1_049 | network_routing_forwarding | level_1 | nrf_l2_mac_swap | repair | [
{
"role": "system",
"content": "You are an expert Linux kernel eBPF and XDP systems programmer.\nYou are fixing an XDP program that produced diagnostic errors during evaluation."
},
{
"role": "user",
"content": "Task ID: nrf_l1_049\nCategory: network_routing_forwarding\nDifficulty: level_1\n\nOr... |
sft_rep_nrf_l1_050_01 | nrf_l1_050 | network_routing_forwarding | level_1 | nrf_l2_mac_swap | repair | [
{
"role": "system",
"content": "You are an expert Linux kernel eBPF and XDP systems programmer.\nYou are fixing an XDP program that produced diagnostic errors during evaluation."
},
{
"role": "user",
"content": "Task ID: nrf_l1_050\nCategory: network_routing_forwarding\nDifficulty: level_1\n\nOr... |
sft_rep_nrf_l1_051_01 | nrf_l1_051 | network_routing_forwarding | level_1 | nrf_l2_mac_swap | repair | [
{
"role": "system",
"content": "You are an expert Linux kernel eBPF and XDP systems programmer.\nYou are fixing an XDP program that produced diagnostic errors during evaluation."
},
{
"role": "user",
"content": "Task ID: nrf_l1_051\nCategory: network_routing_forwarding\nDifficulty: level_1\n\nOr... |
sft_rep_nrf_l1_053_01 | nrf_l1_053 | network_routing_forwarding | level_1 | nrf_l2_mac_swap | repair | [
{
"role": "system",
"content": "You are an expert Linux kernel eBPF and XDP systems programmer.\nYou are fixing an XDP program that produced diagnostic errors during evaluation."
},
{
"role": "user",
"content": "Task ID: nrf_l1_053\nCategory: network_routing_forwarding\nDifficulty: level_1\n\nOr... |
sft_rep_nrf_l1_054_01 | nrf_l1_054 | network_routing_forwarding | level_1 | nrf_l2_mac_swap | repair | [
{
"role": "system",
"content": "You are an expert Linux kernel eBPF and XDP systems programmer.\nYou are fixing an XDP program that produced diagnostic errors during evaluation."
},
{
"role": "user",
"content": "Task ID: nrf_l1_054\nCategory: network_routing_forwarding\nDifficulty: level_1\n\nOr... |
sft_rep_nrf_l1_055_01 | nrf_l1_055 | network_routing_forwarding | level_1 | nrf_l2_mac_swap | repair | [
{
"role": "system",
"content": "You are an expert Linux kernel eBPF and XDP systems programmer.\nYou are fixing an XDP program that produced diagnostic errors during evaluation."
},
{
"role": "user",
"content": "Task ID: nrf_l1_055\nCategory: network_routing_forwarding\nDifficulty: level_1\n\nOr... |
sft_rep_nrf_l1_057_01 | nrf_l1_057 | network_routing_forwarding | level_1 | nrf_l2_mac_swap | repair | [
{
"role": "system",
"content": "You are an expert Linux kernel eBPF and XDP systems programmer.\nYou are fixing an XDP program that produced diagnostic errors during evaluation."
},
{
"role": "user",
"content": "Task ID: nrf_l1_057\nCategory: network_routing_forwarding\nDifficulty: level_1\n\nOr... |
sft_rep_nrf_l1_058_01 | nrf_l1_058 | network_routing_forwarding | level_1 | nrf_l2_mac_swap | repair | [
{
"role": "system",
"content": "You are an expert Linux kernel eBPF and XDP systems programmer.\nYou are fixing an XDP program that produced diagnostic errors during evaluation."
},
{
"role": "user",
"content": "Task ID: nrf_l1_058\nCategory: network_routing_forwarding\nDifficulty: level_1\n\nOr... |
sft_rep_nrf_l1_059_01 | nrf_l1_059 | network_routing_forwarding | level_1 | nrf_l2_mac_swap | repair | [
{
"role": "system",
"content": "You are an expert Linux kernel eBPF and XDP systems programmer.\nYou are fixing an XDP program that produced diagnostic errors during evaluation."
},
{
"role": "user",
"content": "Task ID: nrf_l1_059\nCategory: network_routing_forwarding\nDifficulty: level_1\n\nOr... |
End of preview. Expand in Data Studio
BPF-Guardian SFT: Combined eBPF/XDP Instruction Tuning Corpus
BPF-Guardian SFT is a curated, high-quality instruction-tuning dataset specifically designed for synthesizing and repairing Linux in-kernel eBPF/XDP (eXpress Data Path) network programs.
All reference solutions in this corpus have been empirically compiled using clang-18 -target bpf -O2 and verified against the live Linux in-kernel verifier and packet testing harness (BPF_PROG_TEST_RUN) on Linux Kernel 6.8.0-106-generic.
Dataset Summary
- Total Examples: 2320
- Train Examples: 1913 (1123 unique tasks)
- Validation Examples: 407 (237 unique tasks)
- Calibration Set: Excluded (zero contamination against evaluation benchmarks)
- Program Type: Linux Kernel eBPF/XDP (
BPF_PROG_TYPE_XDP)
Functional Categories
- Packet Filtering & Security (
pfs): DDoS mitigation, port knock authentication, token bucket policers, bloom filter IP blocklists, protocol drops. - Network Routing & Forwarding (
nrf): LPM trie IP routing, Maglev consistent hash load balancing, ECMP multipath routing, proxy ARP, tunnel encapsulation/decapsulation. - Packet Inspection & Telemetry (
pit): Flow telemetry, count-min sketch heavy hitters, TCP RTT and options analysis, connection churn tracking, DSCP QoS monitoring. - Packet Transformation & Rewrite (
ptr): VLAN/QinQ manipulation, IPv4/IPv6 header rewrites, GTP-U and VXLAN decapsulation, ICMP time-exceeded generation.
Data Schema
Each JSONL row contains:
example_id: Unique string identifier for the example.task_id: Canonical functional specification identifier.category: Application domain (packet_filtering_security,network_routing_forwarding,packet_inspection_telemetry,protocol_transformation).difficulty: Complexity stratum (level_1,level_2,level_3).template_family: Synthesizer architectural family.example_type: Task type (synthesisorrepair).messages: List of chat messages (system,user,assistant), formatted for standard LLM chat templates.
Verification & Integrity
All examples are guaranteed:
- Pure, self-contained C source code targeting the Linux BPF sub-architecture.
- 100% compliant with bounded memory access rules and verifier instruction limits on modern Linux kernels (Kernel 6.8+).
- Zero task-level leakage between the
trainandvalidationsplits.
Citation
If you use this dataset in your research or deployment, please cite:
@dataset{bpf_guardian_sft_2026,
author = {BPF-Guardian Research Team},
title = {BPF-Guardian: Verified Linux eBPF/XDP Instruction Tuning Corpus},
year = {2026},
publisher = {Hugging Face},
howpublished = {\url{https://huggingface.co/datasets/rvindra/bpf-guardian-sft}}
}
- Downloads last month
- 18