Towards Trustworthy RISC-V Designs: Formal Verification of the MFENCE Instruction

被引:0
|
作者
Ponugoti, Kushal K. [1 ]
Karlapalem, Nikhila [1 ]
机构
[1] North Dakota State Univ, Dept Elect & Comp Engn, Fargo, ND 58105 USA
关键词
Formal Verification; Hardware Security; Memory Barriers; MFENCE; RISC-V;
D O I
10.1109/INTCEC61833.2024.10603157
中图分类号
TP39 [计算机的应用];
学科分类号
081203 ; 0835 ;
摘要
Memory barriers play a crucial role in maintaining the consistency of shared data in parallel and multithreaded programming. The mfence instruction is a key component in addressing memory inconsistencies and preventing certain microarchitectural data sampling attacks. Specifically, mfence ensures the completion of certain memory operations in a specific order, preventing the reordering of memory operations across the barrier. Despite its significance, potential security vulnerabilities in the hardware implementation of mfence could be exploited by attackers, compromising its defense mechanism. This paper introduces a formal method for verifying the hardware implementation of mfence, aiming to identify and address potential bugs and trojans. The methodology is designed to detect areas where trojans could be crafted to circumvent the protective features of mfence. The efficacy of this approach is demonstrated using the RSD, an open-source RISC-V-based superscalar Out-of-Order processor.
引用
收藏
页数:6
相关论文
共 50 条
  • [1] Formal Verification of Security Properties on RISC-V Processors
    Chuah, Czea Sie
    Appold, Christian
    Leinmueller, Tim
    Proceedings - 2023 21st ACM/IEEE International Symposium on Formal Methods and Models for System Design, MEMOCODE 2023, 2023, : 159 - 168
  • [2] Formal Verification of Security Properties on RISC-V Processors
    Chuah, Czea Sie
    Appold, Christian
    Leinmueller, Tim
    2023 21ST ACM-IEEE INTERNATIONAL SYMPOSIUM ON FORMAL METHODS AND MODELS FOR SYSTEM DESIGN, MEMOCODE, 2023, : 159 - 168
  • [3] Simulation and Formal: The Best of Both Domains for Instruction Set Verification of RISC-V Based Processors
    Duran, Ckristian
    Morales, Hanssel
    Rojas, Camilo
    Ruospo, Annachiara
    Sanchez, Ernesto
    Roa, Elkim
    2020 IEEE INTERNATIONAL SYMPOSIUM ON CIRCUITS AND SYSTEMS (ISCAS), 2020,
  • [4] Complete and Efficient Verification for a RISC-V Processor using Formal Verification
    Weingarten, Lennart
    Datta, Kamalika
    Kole, Abhoy
    Drechsler, Rolf
    2024 DESIGN, AUTOMATION & TEST IN EUROPE CONFERENCE & EXHIBITION, DATE, 2024,
  • [5] Polynomial Formal Verification of a Processor: A RISC-V Case Study
    Weingarten, Lennart
    Mahzoon, Alireza
    Goli, Mehran
    Drechsler, Rolf
    2023 24TH INTERNATIONAL SYMPOSIUM ON QUALITY ELECTRONIC DESIGN, ISQED, 2023, : 41 - 47
  • [6] Efficient Verification Framework for RISC-V Instruction Extensions with FPGA Acceleration
    Jiang, Zijian
    Zheng, Keran
    Bao, Yungang
    Shi, Kan
    2024 INTERNATIONAL SYMPOSIUM OF ELECTRONICS DESIGN AUTOMATION, ISEDA 2024, 2024, : 345 - 350
  • [7] A CFI Verification System based on the RISC-V Instruction Trace Encoder
    Zgheib, Anthony
    Potin, Olivier
    Rigaud, Jean-Baptiste
    Dutertre, Jean-Max
    2022 25TH EUROMICRO CONFERENCE ON DIGITAL SYSTEM DESIGN (DSD), 2022, : 456 - 463
  • [8] Metamorphic Testing for Processor Verification: A RISC-V Case Study at the Instruction Level
    Riese, Frank
    Herdt, Vladimir
    Grosse, Daniel
    Drechsler, Rolf
    PROCEEDINGS OF THE 2021 IFIP/IEEE INTERNATIONAL CONFERENCE ON VERY LARGE SCALE INTEGRATION (VLSI-SOC), 2021, : 78 - 83
  • [9] FlexBex: A RISC-V with a Reconfigurable Instruction Extension
    Nguyen Dao
    Attwood, Andrew
    Healy, Bea
    Koch, Dirk
    2020 INTERNATIONAL CONFERENCE ON FIELD-PROGRAMMABLE TECHNOLOGY (ICFPT 2020), 2020, : 190 - 195
  • [10] Towards a firmware TPM on RISC-V
    Boubakri, Marouene
    Chiatante, Fausto
    Zouari, Belhassen
    PROCEEDINGS OF THE 2021 DESIGN, AUTOMATION & TEST IN EUROPE CONFERENCE & EXHIBITION (DATE 2021), 2021, : 647 - 650