theelderemo/linux-asm-pairs
Linux Kernel Assembly → Explanation Dataset A dataset of disassembled Linux kernel functions paired with structured natural-language explanations, built from the Linux Commits Dataset (Zenodo 10654193). Each row corresponds to a single compiled function extracted from a .c or .h file touched by a Bug-Fix Commit (BFC) or Bug-Introducing Commit (BIC) in the Linux kernel git history. Source files are compiled with gcc -O2 -g -fno-inline -fno-omit-frame-pointer and disassembled with… See the full description on the dataset page: https://huggingface.co/datasets/theelderemo/linux-asm-pairs.
Linux Kernel Assembly → Explanation Dataset
A dataset of disassembled Linux kernel functions paired with structured natural-language explanations, built from the Linux Commits Dataset (Zenodo 10654193).
Each row corresponds to a single compiled function extracted from a .c or .h file touched by a Bug-Fix Commit (BFC) or Bug-Introducing Commit (BIC) in the Linux kernel git history. Source files are compiled with gcc -O2 -g -fno-inline -fno-omit-frame-pointer and disassembled with objdump -d -S (AT&T syntax, source-interleaved).
Intended for training or evaluating models on assembly code understanding, specifically, generating natural language explanations from disassembled Linux kernel functions.
Schema
Usage
from datasets import load_dataset
ds = load_dataset("theelderemo/linux-asm-pairs", split="train")
print(ds["asm"])
print(ds["explanation"])Filter to only bug-fix commits:
bfc_only = ds.filter(lambda x: x["commit_type"] == "bfc")Data Pipeline
- BFC/BIC pairs sourced from
bfc_bic.csvin Zenodo record 10654193 - Full diffs fetched from a local bare clone of the Linux kernel git repo (snapshot: 2023-11-12)
- Changed
.c/.hfiles compiled withgcc -O2 -g -fno-inline -fno-omit-frame-pointer - Functions extracted via
objdump -d -S --no-show-raw-insn - Explanations constructed from Perceval-parsed commit metadata
License
Source assembly is derived from the Linux kernel, which is licensed under GPL-2.0. This dataset inherits that license. See kernel.org/doc/html/latest/process/license-rules.html for details.
Citation
If you use this dataset, please also cite the upstream source:
@dataset{linux_commits_2023,
title = {Linux Commits Dataset},
year = {2023},
url = {https://zenodo.org/records/10654193}
}
@dataset{christopher_dickinson_2026,
author = { Christopher Dickinson },
title = { linux-asm-pairs (Revision 9ea25c3) },
year = 2026,
url = { https://huggingface.co/datasets/theelderemo/linux-asm-pairs },
doi = { 10.57967/hf/8453 },
publisher = { Hugging Face }
}