{"id":{"repo_id":"vt","oai_identifier":"oai:vtechworks.lib.vt.edu:10919/143376"},"canonical_url":"https://search.ndltd.org/etd/vt/oai:vtechworks.lib.vt.edu:10919/143376","repository":{"repo_id":"vt","name":"Virginia Tech","base_url":"https://vtechworks.lib.vt.edu/oai/request"},"display":{"title":"Exploring Static and Dynamic Safety for Safe, Expressive, and Fast Kernel Extensions","abstract":"Kernel extensions allow for flexibility in operating systems. The expressiveness of extensions that can be written is limited by requirements of safety and performance. In eBPF, a Linux kernel extension framework, an in-kernel verifier statically upholds extension safety, while a dynamically checked kernel interface enables expressiveness otherwise prohibited by the verifier. In this work, we explore the benefits and limitations of this hybrid safety model. We find that the eBPF interface has gaps in its safety and a lack of expressiveness. To address these limitations, we introduce termination to eBPF to guarantee a bound on program runtime safety, and we identify a fundamental language-verifier gap which compromises eBPF expressiveness. We evaluate the proposed termination mechanism and Rex's approach to closing the language-verifier gap, finding that both reflect different tradeoffs in safety, performance, and expressiveness while improving over the original eBPF framework.","abstract_html":"Kernel extensions allow for flexibility in operating systems. The expressiveness of extensions that can be written is limited by requirements of safety and performance. In eBPF, a Linux kernel extension framework, an in-kernel verifier statically upholds extension safety, while a dynamically checked kernel interface enables expressiveness otherwise prohibited by the verifier. In this work, we explore the benefits and limitations of this hybrid safety model. We find that the eBPF interface has gaps in its safety and a lack of expressiveness. To address these limitations, we introduce termination to eBPF to guarantee a bound on program runtime safety, and we identify a fundamental language-verifier gap which compromises eBPF expressiveness. We evaluate the proposed termination mechanism and Rex&#x27;s approach to closing the language-verifier gap, finding that both reflect different tradeoffs in safety, performance, and expressiveness while improving over the original eBPF framework.","abstract_has_math":false,"creators":["Lukiyanov, Egor Maximovich"],"institution":"Virginia Tech","degree_name":"Master of Science","degree_level":"masters","degree_discipline":"Computer Science & Applications","degree_department":"Computer Science and#38; Applications","school":null,"contributors":[],"advisors":[],"committee_chairs":["Williams, Daniel John"],"committee_members":["Butt, Ali","Back, Godmar Volker"],"year":2026,"date_issued":"2026-06-11","date_published":"2026-06-11","updated_at":"2026-11-18T20:03:33Z","subjects":["eBPF","Linux","Kernel Extensions","Expressiveness","Termination"],"languages":["en"],"rights":["Creative Commons Attribution 4.0 International"],"rights_urls":["http://creativecommons.org/licenses/by/4.0/"],"identifier_entries":[{"key":"dc:identifier.other","label":"Dc Identifier Other","values":["vt_gsexam:47336"],"render_values":[{"text":"vt_gsexam:47336","href":null,"code":true}]}],"person_identifier_entries":[]},"links":{"outbound_url":"https://hdl.handle.net/10919/143376","outbound_label":"Handle","outbound_source":"dc:identifier.uri","record_url":"https://hdl.handle.net/10919/143376","record_label":"Repository record","record_kind":"handle","record_source":"dc:identifier.uri","download_url":null,"download_label":null,"download_source":null,"access_status":null,"embargo_until":null,"access_note":null},"source_record":{"url":"https://vtechworks.lib.vt.edu/oai/request?verb=GetRecord&metadataPrefix=dim&identifier=oai%3Avtechworks.lib.vt.edu%3A10919%2F143376","prefix":"dim"},"metadata_groups":[{"id":"people","label":"People","entries":[{"key":"dc:contributor.committeechair","label":"Committee Chair","values":["Williams, Daniel John"]},{"key":"dc:contributor.committeemember","label":"Committee Member","values":["Butt, Ali","Back, Godmar Volker"]},{"key":"dc:contributor.department","label":"Department","values":["Computer Science and#38; Applications"]},{"key":"dc:creator","label":"Author","values":["Lukiyanov, Egor Maximovich"]}]},{"id":"academic_context","label":"Academic Context","entries":[{"key":"dc:date.accessioned","label":"Dc Date Accessioned","values":["2026-06-12T08:03:24Z"]},{"key":"dc:date.available","label":"Dc Date Available","values":["2026-06-12T08:03:24Z"]},{"key":"dc:date.issued","label":"Date","values":["2026-06-11"]},{"key":"dc:publisher","label":"Institution","values":["Virginia Tech"]},{"key":"dc:type","label":"Dc Type","values":["Thesis"]},{"key":"thesis:degree_discipline","label":"Discipline","values":["Computer Science & Applications"]},{"key":"thesis:degree_level","label":"Degree Level","values":["masters"]},{"key":"thesis:degree_name","label":"Degree Name","values":["Master of Science"]},{"key":"thesis:institution_name","label":"Thesis Institution Name","values":["Virginia Polytechnic Institute and State University"]}]},{"id":"subjects_keywords","label":"Subjects and Keywords","entries":[{"key":"dc:subject","label":"Dc Subject","values":["eBPF","Linux","Kernel Extensions","Expressiveness","Termination"]}]},{"id":"language_rights","label":"Language and Rights","entries":[{"key":"dc:language.iso","label":"Language (ISO)","values":["en"]},{"key":"dc:rights","label":"Dc Rights","values":["Creative Commons Attribution 4.0 International"]},{"key":"dc:rights.uri","label":"Rights URI","values":["http://creativecommons.org/licenses/by/4.0/"]}]},{"id":"identifiers","label":"Identifiers","entries":[{"key":"dc:identifier.other","label":"Dc Identifier Other","values":["vt_gsexam:47336"]},{"key":"dc:identifier.uri","label":"Identifier URI","values":["https://hdl.handle.net/10919/143376"]}]},{"id":"additional","label":"Additional Metadata","entries":[{"key":"dc:description.abstract","label":"Abstract","values":["Kernel extensions allow for flexibility in operating systems. The expressiveness of extensions that can be written is limited by requirements of safety and performance. In eBPF, a Linux kernel extension framework, an in-kernel verifier statically upholds extension safety, while a dynamically checked kernel interface enables expressiveness otherwise prohibited by the verifier. In this work, we explore the benefits and limitations of this hybrid safety model. We find that the eBPF interface has gaps in its safety and a lack of expressiveness. To address these limitations, we introduce termination to eBPF to guarantee a bound on program runtime safety, and we identify a fundamental language-verifier gap which compromises eBPF expressiveness. We evaluate the proposed termination mechanism and Rex's approach to closing the language-verifier gap, finding that both reflect different tradeoffs in safety, performance, and expressiveness while improving over the original eBPF framework."]},{"key":"dc:description.abstractgeneral","label":"General Abstract","values":["Operating systems manage computer resources such as memory, processors and storage. In server production environments, customizing the operating system is important for performance and observability. Kernel extensions allow dynamic customization of the operating system without needing to modify its code and restarting the system. Critically, systems such as eBPF, a Linux kernel extension framework, guarantee a dynamically loaded extensions cannot crash the operating system and will not slow won the machine. However, in this work we find that the eBPF interface has gaps in its safety and a lack of expressiveness. To address these problems, we explore two alternative designs. The first adds a termination mechanism to eBPF, which can stop programs that run for too long and guarantee their runtime safety. The second identifies a fundamental language-verifier gap in eBPF and shows how this gap limits expressiveness in the eBPF framework. The results have contributed to Rex, a larger project on Rust-based kernel extensions. We evaluate the proposed termination mechanism and Rex's approach to closing the language-verifier gap, finding that both reflect different tradeoffs among safety, performance, and expressiveness while improving over the original eBPF framework."]},{"key":"dc:description.degree","label":"Dc Description Degree","values":["Master of Science"]},{"key":"dc:format.medium","label":"Dc Format Medium","values":["ETD"]},{"key":"dc:title","label":"Title","values":["Exploring Static and Dynamic Safety for Safe, Expressive, and Fast Kernel Extensions"]}]}],"canonical_facts":{"dc:contributor.committeechair":["Williams, Daniel John"],"dc:contributor.committeemember":["Butt, Ali","Back, Godmar Volker"],"dc:contributor.department":["Computer Science and#38; Applications"],"dc:creator":["Lukiyanov, Egor Maximovich"],"dc:date.accessioned":["2026-06-12T08:03:24Z"],"dc:date.available":["2026-06-12T08:03:24Z"],"dc:date.issued":["2026-06-11"],"dc:description.abstract":["Kernel extensions allow for flexibility in operating systems. The expressiveness of extensions that can be written is limited by requirements of safety and performance. In eBPF, a Linux kernel extension framework, an in-kernel verifier statically upholds extension safety, while a dynamically checked kernel interface enables expressiveness otherwise prohibited by the verifier. In this work, we explore the benefits and limitations of this hybrid safety model. We find that the eBPF interface has gaps in its safety and a lack of expressiveness. To address these limitations, we introduce termination to eBPF to guarantee a bound on program runtime safety, and we identify a fundamental language-verifier gap which compromises eBPF expressiveness. We evaluate the proposed termination mechanism and Rex's approach to closing the language-verifier gap, finding that both reflect different tradeoffs in safety, performance, and expressiveness while improving over the original eBPF framework."],"dc:description.abstractgeneral":["Operating systems manage computer resources such as memory, processors and storage. In server production environments, customizing the operating system is important for performance and observability. Kernel extensions allow dynamic customization of the operating system without needing to modify its code and restarting the system. Critically, systems such as eBPF, a Linux kernel extension framework, guarantee a dynamically loaded extensions cannot crash the operating system and will not slow won the machine. However, in this work we find that the eBPF interface has gaps in its safety and a lack of expressiveness. To address these problems, we explore two alternative designs. The first adds a termination mechanism to eBPF, which can stop programs that run for too long and guarantee their runtime safety. The second identifies a fundamental language-verifier gap in eBPF and shows how this gap limits expressiveness in the eBPF framework. The results have contributed to Rex, a larger project on Rust-based kernel extensions. We evaluate the proposed termination mechanism and Rex's approach to closing the language-verifier gap, finding that both reflect different tradeoffs among safety, performance, and expressiveness while improving over the original eBPF framework."],"dc:description.degree":["Master of Science"],"dc:format.medium":["ETD"],"dc:identifier.other":["vt_gsexam:47336"],"dc:identifier.uri":["https://hdl.handle.net/10919/143376"],"dc:language.iso":["en"],"dc:publisher":["Virginia Tech"],"dc:rights":["Creative Commons Attribution 4.0 International"],"dc:rights.uri":["http://creativecommons.org/licenses/by/4.0/"],"dc:subject":["eBPF","Linux","Kernel Extensions","Expressiveness","Termination"],"dc:title":["Exploring Static and Dynamic Safety for Safe, Expressive, and Fast Kernel Extensions"],"dc:type":["Thesis"],"thesis:degree_discipline":["Computer Science & Applications"],"thesis:degree_level":["masters"],"thesis:degree_name":["Master of Science"],"thesis:institution_name":["Virginia Polytechnic Institute and State University"]},"updated_at":"2026-11-18T20:03:33Z"}