Abstract
dc:description.abstractKernel memory management sits at the critical intersection of performance and security in today's complex computing environments. In this thesis, we leverage the latest hardware-level support to tackle the interconnected challenges in kernel memory management by examining instruction address translation overheads, introducing new strategies for preserving memory contiguity, and proposing transparent sandboxing mechanisms for user-provided kernel code. Modern processors suffer significant instruction address translation overhead in a variety of widely used workloads. We show how microarchitectural differences, especially TLB organization, affect these overheads and provide insights for reducing translation costs. Based on our findings, we recommend both kernel- and hardware-level approaches to automatically lower instruction address translation overhead. Next, we propose novel kernel-level heuristics to control memory fragmentation. These heuristics preserve and recover contiguity by protecting actively populating reservations, delaying a complete drain of contiguity in the buddy allocator, and proactively relocating constituents in inactive reservations. Our results demonstrate the subtle ways in which memory fragmen- tation persists in long-running systems and show that our approach virtually eliminates fragmentation-induced allocation failures. Finally, we address the challenge of isolating user-provided programs that execute in the kernel, while still allowing controlled access to shared kernel memory. Specifically, we propose a transparent sandboxing scheme for Linux eBPF that leverages the AArch64 Memory Tagging Extension, providing lightweight defense-in-depth for user-supplied code executed within the live kernel.
Degree
thesis:*- Name thesis:degree_name
- Doctor of Philosophy
- Level thesis:degree_level
- Doctoral
- Discipline thesis:degree_discipline
- Engineering
- Department thesis:degree_department
- Computer Science
- Grantor
- Rice University
- Year dc:date.issued
- 2025
Author and committee
dc:creator, dc:contributor.*- Author dc:creator
-
- Zhou, Yufeng
- Advisor dc:contributor.advisor
-
- Cox, Alan L
Subjects
dc:subject × 12Rights
dc:rights- Statement dc:rights
-
- Copyright is held by the author, unless otherwise indicated. Permission to reuse, publish, or reproduce the work beyond the bounds of fair use or other exemptions to copyright law must be obtained from the copyright holder.
- Language dc:language.iso
- eng
Identifiers
dc:identifier.*- Handle dc:identifier.uri
- https://hdl.handle.net/1911/118403