| commit | e89c793ac103f8fec9d40001f6383e3e450c00a6 | [log] [tgz] |
|---|---|---|
| author | J-Alves <joao.alves@arm.com> | Thu Oct 02 11:29:02 2025 +0100 |
| committer | Joao Alves <joao.alves@arm.com> | Thu Oct 02 13:10:41 2025 +0000 |
| tree | 5463750a1e392bb554a09537fef5f9e75e1464ac | |
| parent | 305bfe7a752a0cadb31bb21f790f7094dd34e0c6 [diff] |
fix(ffa_memory): avoid changing receiver's permissions The memory region descriptor sent by the sender of a memory sharing operation is cached inside Hafnium's internal state structures. The receiver's access permissions entry was getting updated with those submitted after a successful retrieve request. This is not necessary as per the current state of the implementation, and it interferes with the return of FFA_NS_RES_INFO_GET. Signed-off-by: J-Alves <joao.alves@arm.com> Change-Id: I38c186508d2f3d238c491c411d42ccd7f837dbc9
Hafnium is the Secure Partition Manager(SPM) reference implementation, following the Arm's Firmware Framework specification.
It leverages Arm's virtualization extensions in the secure world of Arm's A class of devices (feature introduced with Armv8.4 FEAT_SEL2) to allow multiple Trusted OSes or Applications to run concurrently, inside the Trusted Execution Environment, each running as a Secure Partition (SP). Its main goal is to control the system access given to Trusted OSes, and serve as a mediator to the rest of the system.
For example, it limits the memory use, and handles all system calls from Trusted OS. Thus the SPM can enforce spacial isolation, and enforce some level of access control, protecting other critical system resources such as: the secure monitor, the normal world software stack, the SPM itself and other SPs/Trusted Applications. Other important features are: secure interrupt handling, device assignment, inter-partition communication and with the Normal World Software stack, also known as Rich Execution Environment (REE).
The following diagram shows an overview of a typical aarch64-based system, and where Hafnium fits:
Get in touch and keep up-to-date at:
See feature requests and bugs through github.
To find more about Hafnium, view the full documentation. It includes valuable resources such as: Getting Started guide, Threat Model, and other documentation.