[Paper Review] From MMU to MPU: adaptation of the Pip kernel to constrained devices
This paper presents Pip-MPU, a secure, flexible memory isolation kernel for constrained embedded devices by adapting the formally verified Pip microkernel from MMU-based to MPU-based memory protection. It achieves strong security guarantees—reducing attack surface by 98% and privileged operations by 99%—with only a 16% performance and energy overhead, while using under 10 kB of Flash and 550 B of RAM on an nRF52840 platform.
This article presents a hardware-based memory isolation solution for constrained devices. Existing solutions target high-end embedded systems (typically ARM Cortex-A with a Memory Management Unit, MMU) such as seL4 or Pip (formally verified kernels) or target low-end devices such as ACES, MINION, TrustLite, EwoK but with limited flexibility by proposing a single level of isolation. Our approach consists in adapting Pip to inherit its flexibility (multiple levels of isolation) but using the Memory Protection Unit (MPU) instead of the MMU since the MPU is commonly available on constrained embedded systems (typically ARMv7 Cortex-M4 or ARMv8 Cortex-M33 and similar devices). This paper describes our design of Pip-MPU (Pip's variant based on the MPU) and the rationale behind our choices. We validate our proposal with an implementation on an nRF52840 development kit and we perform various evaluations such as memory footprint, CPU cycles and energy consumption. We demonstrate that although our prototyped Pip-MPU causes a 16% overhead on both performance and energy consumption, it can reduce the attack surface of the accessible application memory from 100% down to 2% and the privileged operations by 99%. Pip-MPU takes less than 10 kB of Flash (6 kB for its core components) and 550 B of RAM.
Motivation & Objective
- Address the lack of flexible, formally verified memory isolation in low-end embedded systems using MPU instead of MMU.
- Enable multiple levels of memory isolation on resource-constrained devices (e.g., ARM Cortex-M) that lack an MMU.
- Preserve the security and composability benefits of the Pip kernel while adapting it to MPU hardware constraints.
- Demonstrate feasibility and efficiency of the approach on a real embedded platform with measurable resource and performance metrics.
Proposed method
- Adapt the Pip microkernel’s formal verification and isolation model to operate on the Memory Protection Unit (MPU) instead of the Memory Management Unit (MMU).
- Design a new memory management abstraction that maps Pip’s multiple isolation levels to the MPU’s limited number of memory regions and permissions.
- Implement a custom MPU configuration mechanism to support dynamic memory region setup and protection during runtime.
- Use formal methods to verify the correctness of the MPU-based memory isolation logic in the new Pip-MPU variant.
- Integrate the kernel into a real-time embedded system (nRF52840) to evaluate performance, memory footprint, and energy consumption.
- Benchmark the system using standard workloads to measure CPU cycles, energy usage, and attack surface reduction.
Experimental results
Research questions
- RQ1Can the formal verification and multi-level isolation model of the Pip kernel be effectively ported to MPU-based constrained devices?
- RQ2What performance and energy overhead does MPU-based isolation introduce compared to MMU-based systems?
- RQ3To what extent can MPU-based isolation reduce the attack surface of application memory and privileged operations?
- RQ4What are the practical memory and runtime resource constraints of deploying a formally verified kernel on a low-end MPU-equipped device?
- RQ5How does the security model of Pip-MPU compare to existing lightweight kernels in terms of isolation granularity and trustworthiness?
Key findings
- Pip-MPU reduces the attack surface of accessible application memory from 100% to 2%, representing a 98% reduction in exposure.
- The number of privileged operations is reduced by 99% compared to a non-isolated system, significantly limiting the potential for privilege escalation.
- The kernel consumes less than 10 kB of Flash memory (6 kB for core components) and only 550 B of RAM, making it suitable for ultra-constrained devices.
- The performance and energy overhead of Pip-MPU is 16% compared to a non-isolated baseline, demonstrating acceptable trade-offs for security.
- The implementation on the nRF52840 development kit confirms the feasibility of deploying a formally verified, multi-level isolation kernel on MPU-only platforms.
- The design successfully preserves the composability and formal verification benefits of the original Pip kernel while adapting to hardware constraints.
Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.