Multi-Tag: A Hardware-Software Co-Design for Memory Safety based on Multi-Granular Memory Tagging

Martin Unterguggenberger*, David Schrammel, Pascal Nasahl, Robert Schilling, Lukas Anton Lamster, Stefan Mangard

*Korrespondierende/r Autor/-in für diese Arbeit

Publikation: Beitrag in Buch/Bericht/KonferenzbandBeitrag in einem KonferenzbandBegutachtung

Abstract

Memory safety vulnerabilities are a severe threat to modern computer systems allowing adversaries to leak or modify security-critical data. To protect systems from this attack vector, full memory safety is required. As software-based countermeasures tend to induce significant runtime overheads, which is not acceptable for production code, hardware assistance is needed. Tagged memory architectures, e.g., already offered by the ARM MTE and SPARC ADI extensions, assign meta-information to memory objects, thus allowing to implement memory safety policies. However, due to the high tag collision probability caused by the small tag sizes, the protection guarantees of these schemes are limited.

This paper presents Multi-Tag, the first hardware-software co-design utilizing a multi-granular tagging structure that provides strong protection against spatial and temporal memory safety violations. By combining object-granular memory tags with page-granular tags stored in the page table entries, Multi-Tag overcomes the limitation of small tag sizes. Introducing page-granular tags significantly enhances the probabilistic protection capabilities of memory tagging without increasing the memory overhead or the system's complexity. We develop a prototype implementation comprising a gem5 model of the tagged architecture, a Linux kernel extension, and an LLVM-based compiler toolchain. The simulated performance overhead for the SPEC CPU2017 and nbench-byte benchmarks highlights the practicability of our design.
Originalspracheenglisch
TitelASIA CCS 2023 - Proceedings of the 2023 ACM Asia Conference on Computer and Communications Security
Herausgeber (Verlag)Association of Computing Machinery
Seiten177-189
Seitenumfang13
ISBN (elektronisch)9798400700989
DOIs
PublikationsstatusVeröffentlicht - 10 Juli 2023
Veranstaltung2023 ACM ASIA Conference on Computer and Communications Security: ASIA CCS 2023 - Melbourne, Australien
Dauer: 10 Juli 202314 Juli 2023
Konferenznummer: 2023

Publikationsreihe

NameProceedings of the ACM Conference on Computer and Communications Security
ISSN (Print)1543-7221

Konferenz

Konferenz2023 ACM ASIA Conference on Computer and Communications Security
KurztitelASIA CCS 2023
Land/GebietAustralien
OrtMelbourne
Zeitraum10/07/2314/07/23

ASJC Scopus subject areas

  • Software
  • Computernetzwerke und -kommunikation

Fingerprint

Untersuchen Sie die Forschungsthemen von „Multi-Tag: A Hardware-Software Co-Design for Memory Safety based on Multi-Granular Memory Tagging“. Zusammen bilden sie einen einzigartigen Fingerprint.

Dieses zitieren