arXiv:2611.12622cs.CRNov 2026

Manuscript Offprint

arXiv:2611.12622

Reconfiguring System-Level Protection Through Bounded Delegation in RISC-V MCUs

Luís Cunha, José Martins, Manuel Rodríguez, Tiago Gomes, Uwe Moslehner, Kai Dieffenbach, Georg Schmalz, Kajetan Nuernberger, Thomas Roecker, Sandro Pinto

Open access. PaperVantage converted this article to text, so layout and figures may differ from the original.

Luís Cunha, José Martins, Manuel Rodríguez, Tiago Gomes, Uwe Moslehner, Kai Dieffenbach, Georg Schmalz, Kajetan Nuernberger, Thomas Roecker, and Sandro Pinto

Abstract—MCU-based embedded and cyber-physical systems increasingly require protection policies to change at runtime as resources, software, and system composition evolve. Yet widely used COTS MCU protection mechanisms are still largely designed around statically established policies. While they can restrict which domains modify protection primitives, they generally do not constrain what policy an authorized domain may create. As a result, domains may expand protection rules beyond their intended scope or interfere with boundaries established by other domains. We identify bounded configuration authority as a missing primitive for secure dynamic policy evolution and introduce an ownership-aware model in which explicit ownership and rule containment bound both configuration authority and recursive delegation. Changes to active protection-rule ranges are validated before commit, preserving protection boundaries without extending the normal access-checking datapath. We implement the model in an open-source RISC-V World Checker integrated into a CVA6-based SoC. Our FPGA evaluation shows no degradation in access latency or operating frequency, with 7.1% LUT and 1.2% FF overhead for eight rules. In an OTA update case study, direct reconfiguration under delegated authority reduces policy-transition latency by 89.5% over hypervisor mediation and 94.6% over trusted firmware mediation, while preserving established authority boundaries. All artifacts will be open-sourced to support the evolution of RISC-V specifications and system-level protection designs.

I. INTRODUCTION

Modern microcontroller (MCU)-based embedded and cyber-physical systems increasingly consolidate heterogeneous and mixed-criticality workloads over shared memories, peripherals, and accelerators [12], [29]. Unlike application processors, these systems commonly rely on lightweight, physical-address, region-based protection mechanisms, traditionally configured statically by trusted firmware or a root of trust [2], [14],

This work has been supported by FCT – Fundação para a Ciência e Tecnologia within the R&D Unit Project Scope UID/00319/2025 - Centro ALGORITMI (ALGORITMI/UM) https://doi.org/10.54499/UID/00319/2025 and the Scholarships Project Scope SFRH/BD/01007/2023. This work is funded in part by the RIGOLETTO project supported by the EU Horizon Europe research and innovation program under Grant Agreement Number 101194371; and partially supported by the Federal Ministry of Research, Technology and Space under the funding code 16MEE0548S.

Luís Cunha, Manuel Rodríguez, Tiago Gomes, and Sandro Pinto are with the ALGORITMI Research Centre/LASI, University of Minho, Braga, Portugal (e-mail: id11207@alunos.uminho.pt; id11674@alunos.uminho.pt; mr.gomes@dei.uminho.pt; sandro.pinto@dei.uminho.pt).

José Martins is with OSYX Technologies, Guimarães, Portugal (e-mail: jose@osyx.tech).

Uwe Moslehner, Kai Dieffenbach, Georg Schmalz, Kajetan Nuernberger, and Thomas Roecker are with Infineon Technologies AG, Munich, Germany (e-mail: Uwe.Moslehner@infineon.com, Kai.Dieffenbach@infineon.com, Georg.Schmalz@infineon.com, Kajetan.Nuernberger@infineon.com, Thomas.Roecker@infineon.com)

Figure

Fig. 1: Illustration of unbounded configuration authority over protection rules. DCD_{C} in green and DVD_{V} in blue. ① initial policy setup, ② configuration delegation, ③ malicious overlap by DCD_{C}, and ④ expansion into unassigned space.

[39]. Emerging MCU systems, however, increasingly require resource assignments and their associated protection policies to evolve at runtime, driven by changing operating modes and evolving criticality requirements [6], [9], [15], [51].

A prominent example is an over-the-air (OTA) software update [31]. A communication domain ( DCD_{C}) may receive an update image into a buffer ( RbR_{b}) and use a hardware accelerator ( HaH_{a}) to process the incoming data. Before installation, both the buffer and accelerator may need to be transferred to an isolated validation domain ( DVD_{V}) for authentication and validation. Copying the image introduces additional memory traffic and latency, while permanent sharing prevents exclusive control. Instead, the protection policy can be updated in place by firmware to revoke DCD_{C}'s access and grant access to DVD_{V}. Identical transitions arise when shared buffers are resized, accelerators are reassigned across operating modes, or software components are incrementally deployed [13], [42]. However, retaining configuration authority in trusted firmware requires mediation for each handover, increasing policy-transition latency. This dependency also limits autonomy in hierarchical systems, where trusted boot firmware establishes the protection state and assigns selected resources to a real-time operating system (RTOS) or hypervisor [21], [41], which may then further partition and assign them among applications or guests [19], [24], [30], [51]. Without the ability to delegate configuration authority, these software layers still require firmware intervention to update protection policies. Direct hardware-supported delegation of configuration authority through these layers avoids repeated privileged software mediation [46], but introduces a fundamental challenge: configuration access alone does not bound policy authority.

Protection mechanisms used in mainstream commercial of-the-shelf (COTS) MCUs commonly expose memory-mapped configuration interfaces through which trusted software pro-grams rules associating physical address ranges or resources with execution contexts and access permissions [1], [38]. Access to these interfaces may itself be restricted through additional protection rules [18], execution-domain identifiers [25], [27], or write-protection mechanisms [16], [34]. These mechanisms determine who may issue an update, but generally do not constrain what policy an authorized domain may create. Consider again the OTA update. The boot process delegates configuration authority over RbR_{b} to DCD_{C}, making DCD_{C} the only domain authorized to reprogram the corresponding protection rule. However, DCD_{C} may then expand that rule beyond the intended subregion (Figure 1). In mechanisms where multiple matching rules contribute to the effective policy, DCD_{C} may also create an overlapping rule that weakens protection over a region belonging to another domain. In both cases, DCD_{C} modifies only configuration state it controls, yet affects policy outside its intended authority. Existing mechanisms can therefore transfer configuration access without necessarily binding that authority to an enforceable policy boundary.

We identify bounded configuration authority as a missing architectural primitive to constrain the policy changes an authorized domain may create. It allows protection policies to evolve at runtime with hardware enforcing who may modify each rule and which updates are valid. Moreover, this authority must compose hierarchically: a receiving domain should be able to refine and further delegate its authority without escaping boundaries established by previous owners. Our key observation is that this hierarchy does not need to be represented through a separate delegation hierarchy. Explicit rule ownership identifies the domain holding configuration authority, while active enclosing rules naturally encode the bounds within which contained rules may be refined and recursively delegated. In the OTA example, firmware can retain an enclosing rule over RbR_{b} and delegate a contained rule to DVD_{V}, allowing DVD_{V} to grant or revoke DCD_{C}'s access within policy bounds without further firmware mediation. Changes to protection-rule address ranges are validated against the committed protection state before becoming active. Because configuration changes are infrequent relative to normal resource accesses, this validation can execute on the configuration path without extending the critical access-checking datapath.

Based on these observations, we introduce an ISA-independent ownership-aware model for rule-based system-level protection mechanisms. The model defines three architectural semantics: (1) explicit per-rule ownership, (2) protection-state-derived authority bounds, and (3) validate-before-commit reconfiguration. Ownership determines who may modify a rule, while rule containment bounds the policy scope that may be recursively delegated. Invalid updates are rejected without exposing candidate state to the access-checking datapath, enabling direct runtime reconfiguration while preserving protection boundaries established by preceding domains.

We implement the model in an open-source RISC-V World Checker integrated into a CVA6-based system-on-chip (SoC) and evaluate it through FPGA measurements and complete OpenSBI, Bao, and Zephyr deployments. The design preserves baseline access latency while adding 7.1% LUT and 1.2% FF overhead for an eight-rule checker. In an OTA update case study, direct delegation reduces policy-transition latency by 89.5% over hypervisor mediation and 94.6% over trusted firmware mediation while preserving authority boundaries. Beyond the prototype, the proposed mechanisms are expected to provide an architectural basis for system-level protection checkers in next-generation RISC-V MCUs. We will open-source all artifacts and expect the results to inform ongoing ratification and architectural evolution of system-level specifications within RISC-V International.

In summary, this paper makes the following contributions:

  • We identify bounded configuration authority as a missing architectural primitive in rule-based system-level protection mechanisms: existing designs can restrict who modifies protection state, but not the policy scope that an authorized configurator may affect ( §II§ II).

  • We introduce an ISA-independent architectural model that combines explicit per-rule ownership with protection-state-derived authority bounds, enabling configuration authority to be recursively delegated without a separate delegation hierarchy ( §III§ III).

  • We design an off-datapath validation microarchitecture that checks candidate protection-state updates before commitment, enabling bounded reconfiguration without affecting latency-critical resource-access ( §III§ III and IV).

  • We implement the model in a RISC-V World Checker and evaluate its hardware cost, reconfiguration latency, and scalability, together with complete OpenSBI, Bao, and Zephyr deployments demonstrating direct bounded runtime resource handover ( §V§ V and §VI§ VI).

References (50)