Passer à la navigation principale Passer à la recherche Passer au contenu principal

Traphalt: Indirect Core Halt via Trap Handling to Halt a RISC-V Core from User Mode through Kernel-Mediated Fault Handling

  • C2S Team
  • Institut Polytechnique de Paris
  • Meta
  • DALI/LIRMM

Résultats de recherche: Le chapitre dans un livre, un rapport, une anthologie ou une collection › Contribution à une conférence › Revue par des pairs

Résumé

Modern processors rely on strict privilege separation to prevent user applications from manipulating privileged architectural state directly. In RISC-V systems, user-mode programs cannot access privileged control and status registers (CSRs) or execute privileged instructions. Still, exceptions raised by user programs are handled by the operating system kernel through the trap mechanism, which runs at a higher privilege level. This interaction between user-level faults and kernel trap handling can introduce subtle system behaviours that affect processor control state. In this work, we show that a RISC-V CPU core can be indirectly halted from user mode by deliberately triggering kernel trap handling with carefully crafted illegal instruction sequences. A user-space program forces the kernel to process a fault condition that propagates through OpenSBI’s unhandled-fault path to sbi hart hang(), suspending the hart in an infinite wfi() loop. We demonstrate this behaviour on a SiFive HiFive Premier P550 platform running Linux with OpenSBI v1.6. Our results highlight how user-triggered exceptions can cause unexpected system-level effects and stress the need for careful validation of exception-handling paths in RISC-V platforms.

langue originaleAnglais
titreProceedings of the 23rd International Conference on Security and Cryptography
rédacteurs en chefSabrina De Capitani Di Vimercati, Pierangela Samarati
EditeurScience and Technology Publications, Lda
Pages1005-1013
Nombre de pages9
ISBN (imprimé)9789897588587
Les DOIs
étatPublié - 1 janv. 2026
Evénement23rd International Conference on Security and Cryptography, SECRYPT 2026 - Porto, Portugal
Durée: 16 juil. 2026 → 18 juil. 2026

Série de publications

NomProceedings of the International Conference on Security and Cryptography
ISSN (imprimé)2184-7711

Une conférence

Une conférence23rd International Conference on Security and Cryptography, SECRYPT 2026
Pays/TerritoirePortugal
La villePorto
période16/07/26 → 18/07/26

Empreinte digitale

Examiner les sujets de recherche de « Traphalt: Indirect Core Halt via Trap Handling to Halt a RISC-V Core from User Mode through Kernel-Mediated Fault Handling ». Ensemble, ils forment une empreinte digitale unique.

Contient cette citation