commit | ed7ed3d0115e21aeb75bb781949da45157f12c74 | [log] [tgz] |
---|---|---|
author | leisen <leisen1@huawei.com> | Tue Aug 06 17:25:18 2024 +0800 |
committer | Joao Alves <joao.alves@arm.com> | Fri Feb 28 18:05:08 2025 +0100 |
tree | b0cffcfb0b585e52d1b5219643270c4accb67e6f | |
parent | 5084bdce20457762a9e8adde7c83f796ab6e276f [diff] |
fix: free 'allocated_entry' to avoid memory leaks Before memory_region = allocated_entry, when api_ffa_mem_send return or goto out, allocated_entry shoule be freed, which has been successfully alloced. Change-Id: Ifebb5018c21650c31e2259516c9d59cb48899737 Signed-off-by: leisen <leisen1@huawei.com> Signed-off-by: J-Alves <joao.alves@arm.com>
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.