Skip to main content

Formal reasoning under cached address translation

Authors

Hira Taqdees Syeda and Gerwin Klein

DATA61

UNSW Sydney

Abstract

Operating system (OS) kernels achieve isolation between user-level processes using hardware features such as multi-level page tables and translation lookaside buffers (TLB). The TLB caches address translation, and therefore correctly controlling the TLB is a fundamental security property of OS kernels --- yet all large-scale formal OS verification projects we are aware of leave the correct functionality of TLB as an assumption. In this paper, we present a verified sound abstraction of the memory management unit of the ARMv7-A architecture including a two-stage TLB with address space identifiers and global entries. We use this abstraction as the underlying model to develop a logic for reasoning about low-level programs in the presence of cached address translation. We extract invariants and necessary conditions for correct TLB operation that mirror the informal reasoning of OS engineers. We show that our program logic reduces to a standard logic for user-level reasoning, reduces to side-condition checks for kernel-level reasoning, and can handle typical OS kernel tasks such as context switching.

BibTeX Entry

  @article{Syeda_Klein_toappear,
    author           = {Syeda, Hira Taqdees and Klein, Gerwin},
    year             = {To appear},
    keywords         = {{TLB}, operating systems, cached adress translation, program verification, {Isabelle}/{HOL}, {ARM}},
    title            = {Formal Reasoning under Cached Address Translation},
    journal          = {Journal of Automated Reasoning},
    publisher        = {Springer}
  }

Download

Served by Apache on Linux on seL4.