KernelScript: Cross-Boundary Typed DSL for eBPF Applications

Jimmc4141 pts0 comments

[2607.23900] KernelScript: Cross-Boundary Typed DSL for eBPF Applications

Skip to main content

Search arXiv

Press Enter to search · Advanced search

-->

Computer Science > Programming Languages

arXiv:2607.23900 (cs)

[Submitted on 27 Jul 2026]

Title:KernelScript: Cross-Boundary Typed DSL for eBPF Applications

Authors:Cong Wang, Siyuan Sun, Yusheng Zheng<br>View a PDF of the paper titled KernelScript: Cross-Boundary Typed DSL for eBPF Applications, by Cong Wang and 2 other authors

View PDF<br>HTML (experimental)

Abstract:eBPF lets developers extend Linux with custom packet processing, tracing, and scheduling logic, and a verifier proves before execution that the code will not crash the kernel. The programming model, however, is fragmented: a single application spans kernel code, a userspace loader, and shared maps, yet the relationships among these pieces go unchecked. E.g. A map or event type defined differently on each side silently corrupts shared state. We observe that these cross-boundary relationships duplicate information that a type system can unify. We present KernelScript, a DSL that types maps, program handles, and execution domains in one source, then compiles to standard C through the original toolchain. We evaluate KernelScript on 43 eBPF workloads covering XDP, TC, kprobe, tracepoint, and struct_ops. KernelScript rejects cross-boundary bugs at compile time that standard C/libbpf still builds and loads, a unified source shrinks the diffs for cross-boundary changes by 5x, and generated code remains compatible with the existing toolchain.

Subjects:

Programming Languages (cs.PL); Operating Systems (cs.OS)

Cite as:<br>arXiv:2607.23900 [cs.PL]

(or<br>arXiv:2607.23900v1 [cs.PL] for this version)

https://doi.org/10.48550/arXiv.2607.23900

Focus to learn more

arXiv-issued DOI via DataCite (pending registration)

Submission history<br>From: Yusheng Zheng [view email]<br>[v1]<br>Mon, 27 Jul 2026 00:14:33 UTC (79 KB)

Full-text links:<br>Access Paper:

View a PDF of the paper titled KernelScript: Cross-Boundary Typed DSL for eBPF Applications, by Cong Wang and 2 other authors<br>View PDF<br>HTML (experimental)<br>TeX Source

view license

Current browse context:

cs.PL

next >

new<br>recent<br>| 2026-07

Change to browse by:

cs<br>cs.OS

References & Citations

NASA ADS<br>Google Scholar

Semantic Scholar

export BibTeX citation<br>Loading...

BibTeX formatted citation

&times;

loading...

Data provided by:

Bookmark

Bibliographic Tools

Bibliographic and Citation Tools

Bibliographic Explorer Toggle

Bibliographic Explorer (What is the Explorer?)

Connected Papers Toggle

Connected Papers (What is Connected Papers?)

Litmaps Toggle

Litmaps (What is Litmaps?)

scite.ai Toggle

scite Smart Citations (What are Smart Citations?)

Code, Data, Media

Code, Data and Media Associated with this Article

alphaXiv Toggle

alphaXiv (What is alphaXiv?)

Links to Code Toggle

CatalyzeX Code Finder for Papers (What is CatalyzeX?)

DagsHub Toggle

DagsHub (What is DagsHub?)

GotitPub Toggle

Gotit.pub (What is GotitPub?)

Huggingface Toggle

Hugging Face (What is Huggingface?)

ScienceCast Toggle

ScienceCast (What is ScienceCast?)

Demos

Demos

Replicate Toggle

Replicate (What is Replicate?)

Spaces Toggle

Hugging Face Spaces (What is Spaces?)

Spaces Toggle

TXYZ.AI (What is TXYZ.AI?)

Related Papers

Recommenders and Search Tools

Link to Influence Flower

Influence Flower (What are Influence Flowers?)

Core recommender toggle

CORE Recommender (What is CORE?)

Author

Venue

Institution

Topic

About arXivLabs

arXivLabs: experimental projects with community collaborators

arXivLabs is a framework that allows collaborators to develop and share new arXiv features directly on our website.

Both individuals and organizations that work with arXivLabs have embraced and accepted our values of openness, community, excellence, and user data privacy. arXiv is committed to these values and only works with partners that adhere to them.

Have an idea for a project that will add value for arXiv's community? Learn more about arXivLabs .

Which authors of this paper are endorsers? |<br>Disable MathJax (What is MathJax?)

Major funding support from

toggle arxiv kernelscript cross boundary ebpf

Related Articles