Link to a list of all commits between this release and the previous one (2.6.0).
About backwards compatibility: Trusted Applications built with OP-TEE 2.5.0 or earlier will not run properly with a debug build of this release due to commit 0e1c6e8e (“Dump call stack on TA panic”). Non-debug builds are not affected.
The release was tested successfully on the platforms listed below.
Link to a list of all commits between this release and the previous one (2.5.0).
The release was tested successfully on the platforms listed below. If a platform is not listed, it means the release was not tested on this platform.
Link to a list of all commits between this release and the previous one (2.4.0).
CFG_SQL_FS=y
) (#1490)CFG_SMALL_PAGE_USER_TA=n
) (#1559). TAs are always mapped using small pages.TA_FLAG_MULTI_SESSION
and TA_FLAG_INSTANCE_KEEP_ALIVE
when TA_FLAG_SINGLE_INSTANCE
is not set (#1574)DEBUG=y
and CFG_TEE_CORE_LOG_LEVEL=0
(#1502)plat_cpu_reset_early()
) overwrites SCTLR bits configured by generic code. This affects alignment checks (SCTLR.A
) and write-implies-no-exec (SCTLR.WXN
, SCTLR.UWXN
), which can therefore not be configured via the compile-time CFG_
variables.SCLTR.Z
) for improved performance.In the list below, standard means that the xtest
program passed with its default configuration, while extended means it was run successfully with the additional GlobalPlatform™ TEE Initial Configuration Test Suite v1.1.0.4.
If a platform is not listed, it means the release was not tested on this platform.
Link to a list of all commits between this release and the previous one (2.3.0).
Please note: this release is API-compatible with the previous one, but the Secure Storage internal format for the REE and SQL FS is not compatible due to commits a238b74 (“core: REE FS: use the new hash tree interface”) and 44e900e (“core: SQL FS: use the new hash tree interface”).
Add porting guidelines
Add support for Secure Data Path which allows Client and Trusted Applications to share references to secure memory
New supported platform: Texas Instruments AM57xx (PLATFORM=ti-am57xx
)
ARMv7-A: add support for platform services in secure monitor and add these services for the DRA7xx platform
SPI framework and PL022 driver cleanup and improvements
Use CNTPCT (when available) to add entropy to the software PRNG
Add GlobalPlatform Socket API for UDP and TCP (IPv4 and IPv6)
DRA7: add TRNG driver, enable GICv2 driver
Support load address larger than 4G
libutee: preserve error code when calling TEE_Panic() for easier troubleshooting
Support TA profiling with gprof (-pg compiler switch)
Optimize the ELF loader for TAs when pager is enabled
Update documentation
Add paged secure shared memory that can be transferred between TAs as needed
Introduce MOBJ abstraction
i.MX6: add PSCI “on” function
arm32: introduce PSCI framework
Secure storage: improve integrity checking of the REE and SQL filesystems by adding a hash tree on the internal data structures. Any external modification is detected, except full rollback. Fixes #1188.
The linux driver will set the ‘privileged’ flag (TEE_GEN_CAP_PRIVILEGED) on the device intended for use by tee-supplicant. Fixes #1199.
RPMB: don't try to program the RPMB key by default
Fix “make clean” error cases
Fix issue when resetting persistent storage enumerator #1332
Fix TA panic when doing AES CTS with specific buffer sizes #1203.
In the list below, standard means that the xtest
program passed with its default configuration, while extended means it was run successfully with the additional GlobalPlatform™ TEE Initial Configuration Test Suite v1.1.0.4.
If a platform is not listed, it means the release was not tested on this platform.
Link to a list of all commits between this release and the previous one (2.2.0).
Please note: this release is API-compatible with the previous one, but the Secure Storage internal format for the REE FS is not compatible due to commit 361fb3e (“core: REE FS: use a single file per object”).
New supported platform: Xilinx Zynq 7000 ZC702 (PLATFORM=zynq7k-zc702
)
Add debug assertions to spinlocks and mutexes
Add more CP15 register access macros for Cortex-A9
ARMv7-A: redesign secure monitor to make it easier to register services
ARMv7-A: cleanup boot arguments
libutee: extend TEE_CheckMemoryAccessRights()
with TEE_MEMORY_ACCESS_SECURE
and TEE_MEMORY_ACCESS_NONSECURE
plat-hikey: enable SPI by default and add sample test code
Consider CFLAGS_ta_arm64
and CFLAGS_ta_arm32
when building TAs
Secure storage refactoring
Print call stack in panic()
Fix UUID encoding when communicating with normal world (use big endian mode instead of native endianness). Related to this, the string format for UUIDs has changed in tee-supplicant, so that TA file names now follow the format defined in RFC4122 (a missing hyphen was added). The old format is still supported, but deprecated, and will likely be removed with the next major release.
Drop write permission to non-writable ELF segments after TA loading is complete.
mm: fix confusing memory mapping debug traces
plat-ti: fix issues with MMU mapping
crypto: fix clearing of big numbers
build: allow spaces and double quotes in CFG_ variables
mm: use paddr_t to support both 32- and 64-bit architectures properly. Resolves 32-bit truncation error when pool is at top of 32 bit address space on 64-bit architecture.
plat-stm: support pager. Fix pager on ARMv7-A SMP boards.
Fix debug output of Trusted Applications (remove “ERROR: TEE-CORE:” prefix)
Do not consider TA memref parameters as TA private memory
crypto: fix cipher_final()
which would not call cbc_done()
for CBC_MAC algorithms
fix for 16-way PL310
arm32: fix call stack unwinding (print_stack()
)
arm32: fix spinlock assembly code
plat-stm, plat-imx: fix SCR initalization
Fix user L1 MMU entries calculation (non-LPAE), allowing TTBCR.N values other than 7.
mtk-mt8173: fix panic caused by incorrect size of SHMEM
plat-stm: fix RNG driver (non-flat mapping)
In the list below, standard means that the xtest
program passed with its default configuration, while extended means it was run successfully with the additional GlobalPlatform™ TEE Initial Configuration Test Suite v1.1.0.4.
If a platform is not listed, it means the release was not tested on this platform.
Link to a list of all commits between this release and the previous one (2.1.0).
Please note: this release is API-compatible with the previous one, but the Secure Storage internal format is not compatible due to commit fde4a75 (“storage: encrypt the FEK with a TA-specific key”).
New supported platforms:
Pager: Support paging of read/write pages by encrypting them with AES-GCM. Support paging of user TAs. Add global setting for TZSRAM size (CFG_CORE_TZSRAM_EMUL_SIZE), defaults to 300K.
Support for more than 8 CPU cores
Added SPI framework and PL022 driver
GPIO: framework supports multiple instances, PL061 driver now has get/set interrupt and mode control functions
Secure storage: Encrypt the File Encryption Key with a TA-specific key for better TA isolation. Add build-time and run-time support for multiple storage backends. Add SQLite backend.
Trusted User Interface: some code is introduced to support the implementation of TUI. This includes: a generic framebuffer driver, display and serial abstractions, and drivers for PL111 (LCD) / PL050 (KMI) / TZC400 and PS2 mouse.
AES acceleration using ARMv8-A Cryptographic Extensions instructions is now supported in AArch32 mode
Add support for GCC flags: -fsanitize=undefined and -fsanitize=kernel-address
Use a global setting for core heap size (CFG_CORE_HEAP_SIZE), 64K by default.
Add macros to unwind and print the call stack of TEE core
Libtomcrypt: sync with the latest develop
branch.
The Trusted Application SDK (ta_dev_kit.mk) can produce libraries (.a)
Rework assertions and TEE core panics and properly honor NDEBUG
Fix incorrect algorithm passed to cipher.final()
scripts: support Python 2.x and 3.x
Secure storage: Add proper locking to support concurrent access. Fix sign extension bug with offset parameter of syscall storage_obj_seek which could cause errors in Aarch32 mode. Fix reading beyond end of file.
Aarch64: mask all maskable exceptions before doing a normal return from call.
Device Tree: add no-map property to OP-TEE node in reserved-memory.
LibTomcrypt: fix CVE-2016-6129
In the list below, standard means that the xtest
program passed with its default configuration, while extended means it was run successfully with the additional GlobalPlatform™ TEE Initial Configuration Test Suite v1.1.0.4.
If a platform is not listed, it means the release was not tested on this platform.
New supported platforms:
GCC5 support
Non Linear Mapping support: In OP-TEE kernel mode, the physical to virtual addresses was linear until this release, meaning the virtual addresses were equal to the physical addresses. This is no more the case in this release.
Font rendering routines have been introduced in order to ease an implementation of Trusted UI.
File Storage: Possibility to use the normal world filesystem and the RPMB implementations simultaneously.
AOSP: There is a local manifest to build OP-TEE into an AOSP build, running on HiKey. Please refer to the README in that repo for instructions.
OpenEmbedded: In addition to the makefile-based build described in the optee_os README, there is an OpenEmbedded-based build that supports Qemu (32-bit), FVP (64-bit), and HiKey (64-bit). Please refer to the README in that repo for instructions.
Link to a list of all commits between this and previous release.
Definitions:
Type | Meaning |
---|---|
Standard tests | The optee_test project. |
Extended tests | optee_test with tests from the GlobalPlatform™ TEE Initial Configuration Test Suite v1.1.0.4. |
Note that the following platform has not been tested:
Generic driver: A new generic TEE driver is in the process of being upstreamed. In this release, OP-TEE/optee_linuxdriver is no more used. Instead, linux v4.5 is being patched using the proposed Generic TEE Driver, as it can be found in https://github.com/linaro-swg/linux/tree/optee
RPMB support: Secure Storage can now use Replay Protected Memory Block (RPMB) partition of an eMMC device. Check the full documentation
Hard-float ABI is now available.
Link to a list of all commits between this and previous release.
Definitions:
Type | Meaning |
---|---|
Standard tests | The optee_test project. |
Extended tests | optee_test with tests from the GlobalPlatform™ TEE Initial Configuration Test Suite v1.1.0.4. |
Softfloat library: floating point support is now available in 32bits TA.
Support running 64-bits TA: on ARMv8-A platform, TA can be compiled in AArch32 and/or in AArch64 in case the core is compiled in AArch64. An example can be found in HiKey configuration file. Using the following excerpt code, the user TA libraries are compiled in both AArch32 and AArch64, and can be found in out/arm-plat-hikey/export-ta_arm32
and out/arm-plat-hikey/export-ta_arm64
ta-targets = ta_arm32 ta-targets += ta_arm64
Concurrent TA support: multiple TA can run in parallel on several cores.
New tests added in xtest test suite: concurrent TA (xtest 1013), floating point tests (xtest 1006 and os_test TA) and corruption file storage (xtest 20000)
Link to a list of all commits between this and previous release.
Definitions:
Type | Meaning |
---|---|
Standard tests | The optee_test project. |
Extended tests | optee_test with tests from the GlobalPlatform™ TEE Initial Configuration Test Suite v1.1.0.4. |
Hello world test | Plain hello world Trusted Application such as this. |
Secure Storage is implemented, but note that anti-rollback protection is not implemented yet.
Issue(s) open on GitHub
OP-TEE is now maintained by Linaro. Contributors do not need to sign a CLA anymore, but must follow the rules of the DCO (Developer Certificate of Origin) instead.
Add hardware support for Texas Instruments DRA7xx, ARMv7 (plat-ti)
GlobalPlatform™ TEE Internal Core API Specification v1.1, including ECC algorithms.
Secure Storage: Files stored by the REE are now encrypted. Operations are made atomic in order to prevent inconsistencies in case of errors during the storage operations. Slides describing the Secure Storage have been presented at the Linaro Connect SFO15.
Change of format of the Trusted Applications: they follow a signed ELF format
Rework thread synchronization in optee_os.
Use of ARMv8 native cryptographic support.
OP-TEE/optee_test test suite is released.
Introduce OP-TEE/manifest and OP-TEE/build to setup and build QEMU, FVP, HiKey and Mediatek platforms. Setup scripts that used to be in optee_os have been removed, except for Juno board.
Link to a list of all commits between this and previous release.
Definitions:
Type | Meaning |
---|---|
Standard tests | The optee_test project. |
Extended tests | optee_test with tests from the GlobalPlatform™ TEE Initial Configuration Test Suite v1.1.0.4. |
Hello world test | Plain hello world Trusted Application such as this. |
Secure Storage is implemented, but note that anti-rollback protection is not implemented yet.
Issue(s) open on GitHub
CFG_ARM64_core=y
CFG_ENC_FS=y
Definitions:
Type | Meaning |
---|---|
Standard tests | The optee_test project. |
Extended tests | optee_test with tests from the GlobalPlatform™ TEE Initial Configuration Test Suite v1.1.0.4. |
Hello world test | Plain hello world Trusted Application such as this. |
Linux Driver has been refactored. It is now split in two parts:
Loading the TrustZone optee linux driver module is now performed using
modprobe optee_armtz
Thanks to the dependency between the generic and the backend modules, optee.ko is then automatically loaded.
Definitions:
Type | Meaning |
---|---|
Standard tests | The optee_test project. |
Extended tests | optee_test with tests from the GlobalPlatform™ TEE Initial Configuration Test Suite v1.1.0.4. |
Hello world test | Plain hello world Trusted Application such as this. |
ARM Juno Board (vexpress-juno), standard tests + extended tests.
Foundation Models (vexpress-fvp), standard + extended tests.
QEMU (vexpress-qemu), standard + extended tests.
STM Cannes (stm-cannes), standard + extended tests.
Below is a summary of the most important features added, but at the end you will find a link that present you all commits between the current and previous release tag.
GlobalPlatform Client API v1.0 support.
GlobalPlatform Internal API v1.0 support.
GlobalPlatform Secure Elements v1.0 support.
Add hardware support for
Allwinner A80, ARMv7-A.
ARM Juno Board, ARMv8-A.
Foundation Models, ARMv8-A.
Fast Models, ARMv8-A.
QEMU, ARMv7-A.
STM Cannes, ARMv7-A.
STM Orly2, ARMv7-A.
Add LibTomCrypt as the default software cryptographic library.
Add cryptographic abstraction layer in on secure side to ease the use of other cryptographic software libraries or adding support for hardware acceleration.
Extended cryptographic API with support for HKDF, Concat KDF and PBKDF2.
SHA-1 and SHA-256 ARMv8-A crypto extension implementation.
Enabled paging support in OP-TEE OS.
Add support for xtest (both standard and extended) in QEMU and FVP setup scripts.
Add documentation for the OS design, cryptographic abstraction layer, secure elements design, the build system, GitHub usage, key derivation extensions, ARM-Trusted Firmware usage within OP-TEE and GlobalPlatform usage within OP-TEE.
Integrate support for Travis CI.
Link to a list of all commits between this and previous release.
Definitions:
Type | Meaning |
---|---|
Standard tests | The optee_test project. |
Extended tests | optee_test with tests from the GlobalPlatform™ TEE Initial Configuration Test Suite v1.0.0. |
Hello world test | Plain hello world Trusted Application such as this. |
Allwinner A80 (plat-sunxi), hello world test.
ARM Juno Board (vexpress-juno), standard tests.
Foundation Models (plat-vexpress-fvp), standard + extended tests
QEMU (plat-vexpress-qemu), standard + extended tests (and Secure Elements tested separately).
STM Cannes (plat-stm-cannes), standard + extended tests.
N/A since this is the first release tag on OP-TEE.
Storage is implemented, but not “Secure storage”, meaning that a client needs to do encrypt files on their own before storing the files.
Issue(s) open on GitHub