ReInstruct: Toward OS-aware CPU microcode reprogramming

Research output: Chapter in Book/Report/Conference proceedingConference contribution

Abstract

Historically, the microcode layer has been a proprietary technology which is tightly controlled by the CPU vendors. The microcode layer enables a great flexibility for translating ISA-visible instructions into internal hardware micro-operations. In x86-64, many system-level instructions are microcoded, which enables a great untapped opportunity for OS developers, who want to experiment with future ISA extensions. Recent research work has identified hidden CPU instructions, which are enabled via a firmware exploit, and also partially reverse-engineered and decrypted Intel Goldmont microcode. We go a step further and design an experimental framework for Linux, which allows to transparently modify existing microcoded instructions directly from an OS at runtime. We show how microcode alterations can be used to defeat normal root-privilege isolation in Linux almost without any trace. We also show our new approach which relies on ISA modification via microcode patching to improve performance of commonly-used lightweight Linux system calls. Our approach, effectively, adjusts the CPU ISA to better serve a specific OS kernel and applications, an idea which has been out of reach for commodity hardware previously.

Original languageEnglish (US)
Title of host publicationKISV 2025 - Proceedings of the 3rd Workshop on Kernel Isolation, Safety and Verification, Part of
Subtitle of host publicationSOSP 2025
PublisherAssociation for Computing Machinery, Inc
Pages10-16
Number of pages7
ISBN (Electronic)9798400722028
DOIs
StatePublished - Oct 13 2025
Event3rd Workshop on Kernel Isolation, Safety and Verification, KISV 2025 - Seoul, Korea, Republic of
Duration: Oct 13 2025Oct 16 2025

Publication series

NameKISV 2025 - Proceedings of the 3rd Workshop on Kernel Isolation, Safety and Verification, Part of: SOSP 2025

Conference

Conference3rd Workshop on Kernel Isolation, Safety and Verification, KISV 2025
Country/TerritoryKorea, Republic of
CitySeoul
Period10/13/2510/16/25

All Science Journal Classification (ASJC) codes

  • Computer Networks and Communications

Fingerprint

Dive into the research topics of 'ReInstruct: Toward OS-aware CPU microcode reprogramming'. Together they form a unique fingerprint.

Cite this