History log of /optee_os/ (Results 1726 – 1750 of 8385)
Revision Date Author Comments
(<<< Hide modified files)
(Show modified files >>>)
1e9c1b8005-May-2023 Jens Wiklander <jens.wiklander@linaro.org>

core: remove temp memory allocation for TA invoke

Remove the temporary memory allocation used if a TA invokes another TA
with a private memory buffer. This has not been in used with TAs
compiled sin

core: remove temp memory allocation for TA invoke

Remove the temporary memory allocation used if a TA invokes another TA
with a private memory buffer. This has not been in used with TAs
compiled since commit ef305e54eac8 ("libutee: allocate temp secmem for
invoke") or OP-TEE version 3.6.0.

Signed-off-by: Jens Wiklander <jens.wiklander@linaro.org>
Acked-by: Etienne Carriere <etienne.carriere@foss.st.com>

show more ...

4bdddf2031-May-2023 Jens Wiklander <jens.wiklander@linaro.org>

ta: relax location of ta_head

TAs where required to have the ta_head as at the load address of the TA
prior to this patch. This makes the linker script slightly more
complicated and also confuses GD

ta: relax location of ta_head

TAs where required to have the ta_head as at the load address of the TA
prior to this patch. This makes the linker script slightly more
complicated and also confuses GDB so that an offset must be applied to
the load address of the TA when using GDB for debugging. So allow that
ta_head symbol to reside anywhere in the ELF binary and also add ta_head
to the .dynsym section to make sure that tools and ldelf can find the
symbol.

This change requires prior updates to tools and ldelf.

Reviewed-by: Jerome Forissier <jerome.forissier@linaro.org>
Signed-off-by: Jens Wiklander <jens.wiklander@linaro.org>

show more ...

6cfa381e31-May-2023 Jens Wiklander <jens.wiklander@linaro.org>

ldelf: look for ta_head symbol

Legacy TAs has their TA header as at the load address of the TA binary.
However, in commits to follow the TA header will instead be located in
the symbol ta_head locat

ldelf: look for ta_head symbol

Legacy TAs has their TA header as at the load address of the TA binary.
However, in commits to follow the TA header will instead be located in
the symbol ta_head located somewhere inside the ELF binary. So update
the ldelf to support the updated format while still supporting legacy
TAs.

Reviewed-by: Jerome Forissier <jerome.forissier@linaro.org>
Signed-off-by: Jens Wiklander <jens.wiklander@linaro.org>

show more ...

731185b130-May-2023 Jens Wiklander <jens.wiklander@linaro.org>

scripts/ts_bin_to_c.py: look for ta_head symbol

Legacy TAs have their TA header in a .ta_head section of the TA binary.
However, in commits to follow the TA header will instead be located in
the sym

scripts/ts_bin_to_c.py: look for ta_head symbol

Legacy TAs have their TA header in a .ta_head section of the TA binary.
However, in commits to follow the TA header will instead be located in
the symbol ta_head located somewhere inside the ELF binary. So update
the ts_bin_to_c.py script to support the updated format.

Acked-by: Jerome Forissier <jerome.forissier@linaro.org>
Signed-off-by: Jens Wiklander <jens.wiklander@linaro.org>

show more ...

7f2daddf31-May-2023 Jens Wiklander <jens.wiklander@linaro.org>

ta/link.mk: always generate TA dyn_list

Always generate the file holding the list of dynamic symbols a TA should
provide. This is needed if CFG_FTRACE_SUPPORT should be changed between
two compilati

ta/link.mk: always generate TA dyn_list

Always generate the file holding the list of dynamic symbols a TA should
provide. This is needed if CFG_FTRACE_SUPPORT should be changed between
two compilations. Use the make macro mv-if-changed() to only update the
used file if it will be changed.

Reviewed-by: Jerome Forissier <jerome.forissier@linaro.org>
Signed-off-by: Jens Wiklander <jens.wiklander@linaro.org>

show more ...

5831e42631-May-2023 Jens Wiklander <jens.wiklander@linaro.org>

Move mv-if-changed() into mk/macros.mk

Moves the make macro mv-if-changed() into mk/macros.mk to allow use of
it in the TA devkit.

Reviewed-by: Jerome Forissier <jerome.forissier@linaro.org>
Signed

Move mv-if-changed() into mk/macros.mk

Moves the make macro mv-if-changed() into mk/macros.mk to allow use of
it in the TA devkit.

Reviewed-by: Jerome Forissier <jerome.forissier@linaro.org>
Signed-off-by: Jens Wiklander <jens.wiklander@linaro.org>

show more ...

d5cb088213-Oct-2023 Etienne Carriere <etienne.carriere@foss.st.com>

drivers: crypto: stm32: lower verbosity on SAES use

Changes SAES context allocation/release trace message from debug level
to flow level otherwise each access to the secure storage emits debug
messa

drivers: crypto: stm32: lower verbosity on SAES use

Changes SAES context allocation/release trace message from debug level
to flow level otherwise each access to the secure storage emits debug
messages.

Acked-by: Jerome Forissier <jerome.forissier@linaro.org>
Signed-off-by: Etienne Carriere <etienne.carriere@foss.st.com>

show more ...

dc9540cb11-Oct-2023 Etienne Carriere <etienne.carriere@foss.st.com>

drivers: regulator: consider DT property regulator-boot-on

Defines regulator flag REGULATOR_BOOT_ON for regulators with the
regulator-boot-on property in their DT node.

Acked-by: Gatien Chevallier

drivers: regulator: consider DT property regulator-boot-on

Defines regulator flag REGULATOR_BOOT_ON for regulators with the
regulator-boot-on property in their DT node.

Acked-by: Gatien Chevallier <gatien.chevallier@foss.st.com>
Signed-off-by: Etienne Carriere <etienne.carriere@foss.st.com>

show more ...

0a75d40813-Oct-2023 Jens Wiklander <jens.wiklander@linaro.org>

core: fix data abort during ftrace

With commit c10e3fa93d24 ("core: fix race in handling TA panic") the
resources of a panicked TAs are released as early as possible, including
the user space mapped

core: fix data abort during ftrace

With commit c10e3fa93d24 ("core: fix race in handling TA panic") the
resources of a panicked TAs are released as early as possible, including
the user space mapped ftrace buffer. However, the pointer to the ftrace
buffer is stored in the ts_session for quick and easy access. The ftrace
buffer is always retrieved with get_fbuf() that already have a few other
checks to see if the buffer is currently available. So add a check to
see that the TA hasn't panicked also.

Fixes: c10e3fa93d24 ("core: fix race in handling TA panic")
Signed-off-by: Jens Wiklander <jens.wiklander@linaro.org>
Reviewed-by: Etienne Carriere <etienne.carriere@foss.st.com>
Tested-by: Jerome Forissier <jerome.forissier@linaro.org> (vexpress-qemu_armv8a)

show more ...

ed89e93911-Oct-2023 Alvin Chang <alvinga@andestech.com>

core: riscv: Fix logic of thread_{get/set}_exceptions()

In ARM, the bits in DAIF register are used to mask the interrupts. While
in RISC-V, the bits in CSR XIE are used to enable(unmask) correspondi

core: riscv: Fix logic of thread_{get/set}_exceptions()

In ARM, the bits in DAIF register are used to mask the interrupts. While
in RISC-V, the bits in CSR XIE are used to enable(unmask) corresponding
interrupt sources.

To not modify the function of thread_get_exceptions(), we invert the
bits after reading the value of CSR XIE, as mask.

To not modify the function of thread_set_exceptions(), we invert the
bits in given "exceptions" before writing "exceptions" into CSR
XIE. Therefore, the intended masked exception bits will be cleared
when we write the final value into CSR XIE to mask those interrupts.

Signed-off-by: Alvin Chang <alvinga@andestech.com>
Acked-by: Etienne Carriere <etienne.carriere@foss.st.com>
Acked-by: Jens Wiklander <jens.wiklander@linaro.org>

show more ...

470aadc611-Oct-2023 Alvin Chang <alvinga@andestech.com>

core: riscv: Register thread_vector_table in primary CPU initialization

When primary CPU has initialized everything, it registers the address
of thread_vector_table into higher privileged software v

core: riscv: Register thread_vector_table in primary CPU initialization

When primary CPU has initialized everything, it registers the address
of thread_vector_table into higher privileged software via a1 register.

Signed-off-by: Alvin Chang <alvinga@andestech.com>
Acked-by: Jens Wiklander <jens.wiklander@linaro.org>

show more ...

0cbfd09311-Oct-2023 Alvin Chang <alvinga@andestech.com>

core: riscv: Implement thread_vector_table for ABI and FIQ entries

Implement thread_vector_table which only includes entries for standard
ABI, fast ABI, and foreign interrupts. Most of code is refer

core: riscv: Implement thread_vector_table for ABI and FIQ entries

Implement thread_vector_table which only includes entries for standard
ABI, fast ABI, and foreign interrupts. Most of code is referenced from
ARM architecture. The thread_vector_table will be registered into higher
privileged software, such as M-mode firmware. The higher privileged
software can jump(mret) to OP-TEE based on this vector table.

Signed-off-by: Alvin Chang <alvinga@andestech.com>
Acked-by: Jens Wiklander <jens.wiklander@linaro.org>

show more ...

0fb2293611-Oct-2023 Alvin Chang <alvinga@andestech.com>

core: riscv: Implement SBI based protocol

Rename thread_return_from_nsec_call() to thread_return_to_ree() for more
general behavior, since TEE might not only be called by REE, but also
do something

core: riscv: Implement SBI based protocol

Rename thread_return_from_nsec_call() to thread_return_to_ree() for more
general behavior, since TEE might not only be called by REE, but also
do something on its own initiative (e.g., handle secure interrupts).

This commit also implements SBI based protocol used to return control to
REE. The register a7 encodes SBI TEE extension ID, which is temporarily
defined here. We may have ratified SBI TEE extension in the future and
we can apply ratified ID at that time. The register a6 is unused and
encoded as 0. The returned arguments are encoded into registers a0~a5
and should be provided by the caller.

Signed-off-by: Alvin Chang <alvinga@andestech.com>
Acked-by: Jens Wiklander <jens.wiklander@linaro.org>

show more ...

d7b20c1e11-Oct-2023 Alvin Chang <alvinga@andestech.com>

core: riscv: Implement panic_at_abi_return as guard of ABI call

The ABI call to REE domain should not return. We implement
panic_at_abi_return macro as guard of ABI call. When the ABI call return
il

core: riscv: Implement panic_at_abi_return as guard of ABI call

The ABI call to REE domain should not return. We implement
panic_at_abi_return macro as guard of ABI call. When the ABI call return
illegally, the system will enter panic or an infinite loop.

Signed-off-by: Alvin Chang <alvinga@andestech.com>
Acked-by: Jens Wiklander <jens.wiklander@linaro.org>

show more ...

af06edb509-Oct-2023 Jens Wiklander <jens.wiklander@linaro.org>

core: ffa: use FFA_NORMAL_WORLD_RESUME

Prior to this FFA_INTERRUPT was always completed using FFA_MSG_WAIT,
but at S-EL1 FFA_NORMAL_WORLD_RESUME should be used instead. So fix this
by completing a s

core: ffa: use FFA_NORMAL_WORLD_RESUME

Prior to this FFA_INTERRUPT was always completed using FFA_MSG_WAIT,
but at S-EL1 FFA_NORMAL_WORLD_RESUME should be used instead. So fix this
by completing a secure interrupt that has preempted the normal world with
FFA_NORMAL_WORLD_RESUME if configured with SPMC at S-EL1.

Fixes: 67fec989b586 ("core: ffa: correct response to FFA_INTERRUPT")
Signed-off-by: Jens Wiklander <jens.wiklander@linaro.org>
Reviewed-by: Balint Dobszay <balint.dobszay@arm.com>

show more ...

5f979c1706-Oct-2023 Balint Dobszay <balint.dobszay@arm.com>

core: sp: fix FFA_MEM_RECLAIM checks

Currently it is assumed that a NS endpoint's ID is always 0. This is not
true if multiple VMs are present in the NWd, so the check will fail when
reclaiming shar

core: sp: fix FFA_MEM_RECLAIM checks

Currently it is assumed that a NS endpoint's ID is always 0. This is not
true if multiple VMs are present in the NWd, so the check will fail when
reclaiming shared memory from an SP. Fix this by removing the owner ID
check if the reclaim call comes from NWd, in this case the necessary
checks are done by the hypervisor.

Acked-by: Jens Wiklander <jens.wiklander@linaro.org>
Signed-off-by: Balint Dobszay <balint.dobszay@arm.com>

show more ...

32b3180806-Oct-2023 Jens Wiklander <jens.wiklander@linaro.org>

Squashed commit upgrading to mbedtls-3.4.0

Squash merging branch import/mbedtls-3.4.0

8225713449d3 ("libmbedtls: fix unrecognized compiler option")
f03730842d7b ("core: ltc: configure internal MD5"

Squashed commit upgrading to mbedtls-3.4.0

Squash merging branch import/mbedtls-3.4.0

8225713449d3 ("libmbedtls: fix unrecognized compiler option")
f03730842d7b ("core: ltc: configure internal MD5")
2b0d0c50127c ("core: ltc: configure internal SHA-1 and SHA-224")
0e48a6e17630 ("libmedtls: core: update to mbedTLS 3.4.0 API")
049882b143af ("libutee: update to mbedTLS 3.4.0 API")
982307bf6169 ("core: LTC mpi_desc.c: update to mbedTLS 3.4.0 API")
33218e9eff7b ("ta: pkcs11: update to mbedTLS 3.4.0 API")
6956420cc064 ("libmbedtls: fix cipher_wrap.c for NIST AES Key Wrap mode")
ad67ef0b43fd ("libmbedtls: fix cipher_wrap.c for chacha20 and chachapoly")
7300f4d97bbf ("libmbedtls: add fault mitigation in mbedtls_rsa_rsassa_pkcs1_v15_verify()")
cec89b62a86d ("libmbedtls: add fault mitigation in mbedtls_rsa_rsassa_pss_verify_ext()")
e7e048796c44 ("libmbedtls: add SM2 curve")
096beff2cd31 ("libmbedtls: mbedtls_mpi_exp_mod(): optimize mempool usage")
7108668efd3f ("libmbedtls: mbedtls_mpi_exp_mod(): reduce stack usage")
0ba4eb8d0572 ("libmbedtls: mbedtls_mpi_exp_mod() initialize W")
3fd6ecf00382 ("libmbedtls: fix no CRT issue")
d5ea7e9e9aa7 ("libmbedtls: add interfaces in mbedtls for context memory operation")
2b0fb3f1fa3d ("libmedtls: mpi_miller_rabin: increase count limit")
2c3301ab99bb ("libmbedtls: add mbedtls_mpi_init_mempool()")
9a111f0da04b ("libmbedtls: make mbedtls_mpi_mont*() available")
804fe3a374f5 ("mbedtls: configure mbedtls to reach for config")
b28a41531427 ("mbedtls: remove default include/mbedtls/config.h")
dfafe507bbef ("Import mbedtls-3.4.0")

Signed-off-by: Jens Wiklander <jens.wiklander@linaro.org>
Acked-by: Jerome Forissier <jerome.forissier@linaro.org>
Tested-by: Jerome Forissier <jerome.forissier@linaro.org> (vexpress-qemu_armv8a)

show more ...


core/crypto.mk
core/lib/libtomcrypt/mpi_desc.c
core/lib/libtomcrypt/rsa.c
core/lib/libtomcrypt/src/hashes/sha2/sub.mk
core/lib/libtomcrypt/src/hashes/sub.mk
core/lib/libtomcrypt/sub.mk
core/lib/libtomcrypt/tomcrypt.c
lib/libmbedtls/core/aes.c
lib/libmbedtls/core/dh.c
lib/libmbedtls/core/ecc.c
lib/libmbedtls/core/hash.c
lib/libmbedtls/core/hmac.c
lib/libmbedtls/core/mbed_helpers.h
lib/libmbedtls/core/rsa.c
lib/libmbedtls/core/sub.mk
lib/libmbedtls/include/mbedtls_config_kernel.h
lib/libmbedtls/mbedtls/.gitattributes
lib/libmbedtls/mbedtls/.uncrustify.cfg
lib/libmbedtls/mbedtls/CONTRIBUTING.md
lib/libmbedtls/mbedtls/ChangeLog
lib/libmbedtls/mbedtls/README.md
lib/libmbedtls/mbedtls/SECURITY.md
lib/libmbedtls/mbedtls/SUPPORT.md
lib/libmbedtls/mbedtls/include/mbedtls/aes.h
lib/libmbedtls/mbedtls/include/mbedtls/aria.h
lib/libmbedtls/mbedtls/include/mbedtls/asn1.h
lib/libmbedtls/mbedtls/include/mbedtls/asn1write.h
lib/libmbedtls/mbedtls/include/mbedtls/base64.h
lib/libmbedtls/mbedtls/include/mbedtls/bignum.h
lib/libmbedtls/mbedtls/include/mbedtls/build_info.h
lib/libmbedtls/mbedtls/include/mbedtls/camellia.h
lib/libmbedtls/mbedtls/include/mbedtls/ccm.h
lib/libmbedtls/mbedtls/include/mbedtls/chacha20.h
lib/libmbedtls/mbedtls/include/mbedtls/chachapoly.h
lib/libmbedtls/mbedtls/include/mbedtls/check_config.h
lib/libmbedtls/mbedtls/include/mbedtls/cipher.h
lib/libmbedtls/mbedtls/include/mbedtls/cmac.h
lib/libmbedtls/mbedtls/include/mbedtls/compat-2.x.h
lib/libmbedtls/mbedtls/include/mbedtls/config_psa.h
lib/libmbedtls/mbedtls/include/mbedtls/constant_time.h
lib/libmbedtls/mbedtls/include/mbedtls/ctr_drbg.h
lib/libmbedtls/mbedtls/include/mbedtls/debug.h
lib/libmbedtls/mbedtls/include/mbedtls/des.h
lib/libmbedtls/mbedtls/include/mbedtls/dhm.h
lib/libmbedtls/mbedtls/include/mbedtls/ecdh.h
lib/libmbedtls/mbedtls/include/mbedtls/ecdsa.h
lib/libmbedtls/mbedtls/include/mbedtls/ecjpake.h
lib/libmbedtls/mbedtls/include/mbedtls/ecp.h
lib/libmbedtls/mbedtls/include/mbedtls/entropy.h
lib/libmbedtls/mbedtls/include/mbedtls/error.h
lib/libmbedtls/mbedtls/include/mbedtls/gcm.h
lib/libmbedtls/mbedtls/include/mbedtls/hkdf.h
lib/libmbedtls/mbedtls/include/mbedtls/hmac_drbg.h
lib/libmbedtls/mbedtls/include/mbedtls/legacy_or_psa.h
lib/libmbedtls/mbedtls/include/mbedtls/lms.h
lib/libmbedtls/mbedtls/include/mbedtls/mbedtls_config.h
lib/libmbedtls/mbedtls/include/mbedtls/md.h
lib/libmbedtls/mbedtls/include/mbedtls/md5.h
lib/libmbedtls/mbedtls/include/mbedtls/memory_buffer_alloc.h
lib/libmbedtls/mbedtls/include/mbedtls/net_sockets.h
lib/libmbedtls/mbedtls/include/mbedtls/nist_kw.h
lib/libmbedtls/mbedtls/include/mbedtls/oid.h
lib/libmbedtls/mbedtls/include/mbedtls/pem.h
lib/libmbedtls/mbedtls/include/mbedtls/pk.h
lib/libmbedtls/mbedtls/include/mbedtls/pkcs12.h
lib/libmbedtls/mbedtls/include/mbedtls/pkcs5.h
lib/libmbedtls/mbedtls/include/mbedtls/pkcs7.h
lib/libmbedtls/mbedtls/include/mbedtls/platform.h
lib/libmbedtls/mbedtls/include/mbedtls/platform_time.h
lib/libmbedtls/mbedtls/include/mbedtls/platform_util.h
lib/libmbedtls/mbedtls/include/mbedtls/poly1305.h
lib/libmbedtls/mbedtls/include/mbedtls/private_access.h
lib/libmbedtls/mbedtls/include/mbedtls/psa_util.h
lib/libmbedtls/mbedtls/include/mbedtls/ripemd160.h
lib/libmbedtls/mbedtls/include/mbedtls/rsa.h
lib/libmbedtls/mbedtls/include/mbedtls/sha1.h
lib/libmbedtls/mbedtls/include/mbedtls/sha256.h
lib/libmbedtls/mbedtls/include/mbedtls/sha512.h
lib/libmbedtls/mbedtls/include/mbedtls/ssl.h
lib/libmbedtls/mbedtls/include/mbedtls/ssl_cache.h
lib/libmbedtls/mbedtls/include/mbedtls/ssl_ciphersuites.h
lib/libmbedtls/mbedtls/include/mbedtls/ssl_cookie.h
lib/libmbedtls/mbedtls/include/mbedtls/ssl_ticket.h
lib/libmbedtls/mbedtls/include/mbedtls/threading.h
lib/libmbedtls/mbedtls/include/mbedtls/timing.h
lib/libmbedtls/mbedtls/include/mbedtls/version.h
lib/libmbedtls/mbedtls/include/mbedtls/x509.h
lib/libmbedtls/mbedtls/include/mbedtls/x509_crl.h
lib/libmbedtls/mbedtls/include/mbedtls/x509_crt.h
lib/libmbedtls/mbedtls/include/mbedtls/x509_csr.h
lib/libmbedtls/mbedtls/include/psa/crypto.h
lib/libmbedtls/mbedtls/include/psa/crypto_builtin_composites.h
lib/libmbedtls/mbedtls/include/psa/crypto_builtin_primitives.h
lib/libmbedtls/mbedtls/include/psa/crypto_compat.h
lib/libmbedtls/mbedtls/include/psa/crypto_config.h
lib/libmbedtls/mbedtls/include/psa/crypto_driver_common.h
lib/libmbedtls/mbedtls/include/psa/crypto_driver_contexts_composites.h
lib/libmbedtls/mbedtls/include/psa/crypto_driver_contexts_primitives.h
lib/libmbedtls/mbedtls/include/psa/crypto_extra.h
lib/libmbedtls/mbedtls/include/psa/crypto_platform.h
lib/libmbedtls/mbedtls/include/psa/crypto_se_driver.h
lib/libmbedtls/mbedtls/include/psa/crypto_sizes.h
lib/libmbedtls/mbedtls/include/psa/crypto_struct.h
lib/libmbedtls/mbedtls/include/psa/crypto_types.h
lib/libmbedtls/mbedtls/include/psa/crypto_values.h
lib/libmbedtls/mbedtls/library/aes.c
lib/libmbedtls/mbedtls/library/aesce.c
lib/libmbedtls/mbedtls/library/aesce.h
lib/libmbedtls/mbedtls/library/aesni.c
lib/libmbedtls/mbedtls/library/aesni.h
lib/libmbedtls/mbedtls/library/alignment.h
lib/libmbedtls/mbedtls/library/aria.c
lib/libmbedtls/mbedtls/library/asn1parse.c
lib/libmbedtls/mbedtls/library/asn1write.c
lib/libmbedtls/mbedtls/library/base64.c
lib/libmbedtls/mbedtls/library/bignum.c
lib/libmbedtls/mbedtls/library/bignum_core.c
lib/libmbedtls/mbedtls/library/bignum_core.h
lib/libmbedtls/mbedtls/library/bignum_mod.c
lib/libmbedtls/mbedtls/library/bignum_mod.h
lib/libmbedtls/mbedtls/library/bignum_mod_raw.c
lib/libmbedtls/mbedtls/library/bignum_mod_raw.h
lib/libmbedtls/mbedtls/library/bignum_mod_raw_invasive.h
lib/libmbedtls/mbedtls/library/bn_mul.h
lib/libmbedtls/mbedtls/library/camellia.c
lib/libmbedtls/mbedtls/library/ccm.c
lib/libmbedtls/mbedtls/library/chacha20.c
lib/libmbedtls/mbedtls/library/chachapoly.c
lib/libmbedtls/mbedtls/library/check_crypto_config.h
lib/libmbedtls/mbedtls/library/cipher.c
lib/libmbedtls/mbedtls/library/cipher_wrap.c
lib/libmbedtls/mbedtls/library/cipher_wrap.h
lib/libmbedtls/mbedtls/library/cmac.c
lib/libmbedtls/mbedtls/library/common.h
lib/libmbedtls/mbedtls/library/constant_time.c
lib/libmbedtls/mbedtls/library/constant_time_internal.h
lib/libmbedtls/mbedtls/library/constant_time_invasive.h
lib/libmbedtls/mbedtls/library/ctr_drbg.c
lib/libmbedtls/mbedtls/library/debug.c
lib/libmbedtls/mbedtls/library/des.c
lib/libmbedtls/mbedtls/library/dhm.c
lib/libmbedtls/mbedtls/library/ecdh.c
lib/libmbedtls/mbedtls/library/ecdsa.c
lib/libmbedtls/mbedtls/library/ecjpake.c
lib/libmbedtls/mbedtls/library/ecp.c
lib/libmbedtls/mbedtls/library/ecp_curves.c
lib/libmbedtls/mbedtls/library/ecp_internal_alt.h
lib/libmbedtls/mbedtls/library/ecp_invasive.h
lib/libmbedtls/mbedtls/library/entropy.c
lib/libmbedtls/mbedtls/library/entropy_poll.c
lib/libmbedtls/mbedtls/library/entropy_poll.h
lib/libmbedtls/mbedtls/library/error.c
lib/libmbedtls/mbedtls/library/gcm.c
lib/libmbedtls/mbedtls/library/hash_info.c
lib/libmbedtls/mbedtls/library/hash_info.h
lib/libmbedtls/mbedtls/library/hkdf.c
lib/libmbedtls/mbedtls/library/hmac_drbg.c
lib/libmbedtls/mbedtls/library/lmots.c
lib/libmbedtls/mbedtls/library/lmots.h
lib/libmbedtls/mbedtls/library/lms.c
lib/libmbedtls/mbedtls/library/md.c
lib/libmbedtls/mbedtls/library/md5.c
lib/libmbedtls/mbedtls/library/md_wrap.h
lib/libmbedtls/mbedtls/library/memory_buffer_alloc.c
lib/libmbedtls/mbedtls/library/net_sockets.c
lib/libmbedtls/mbedtls/library/nist_kw.c
lib/libmbedtls/mbedtls/library/oid.c
lib/libmbedtls/mbedtls/library/padlock.c
lib/libmbedtls/mbedtls/library/padlock.h
lib/libmbedtls/mbedtls/library/pem.c
lib/libmbedtls/mbedtls/library/pk.c
lib/libmbedtls/mbedtls/library/pk_wrap.c
lib/libmbedtls/mbedtls/library/pk_wrap.h
lib/libmbedtls/mbedtls/library/pkcs12.c
lib/libmbedtls/mbedtls/library/pkcs5.c
lib/libmbedtls/mbedtls/library/pkcs7.c
lib/libmbedtls/mbedtls/library/pkparse.c
lib/libmbedtls/mbedtls/library/pkwrite.c
lib/libmbedtls/mbedtls/library/pkwrite.h
lib/libmbedtls/mbedtls/library/platform.c
lib/libmbedtls/mbedtls/library/platform_util.c
lib/libmbedtls/mbedtls/library/poly1305.c
lib/libmbedtls/mbedtls/library/ripemd160.c
lib/libmbedtls/mbedtls/library/rsa.c
lib/libmbedtls/mbedtls/library/rsa_alt_helpers.c
lib/libmbedtls/mbedtls/library/rsa_alt_helpers.h
lib/libmbedtls/mbedtls/library/sha1.c
lib/libmbedtls/mbedtls/library/sha256.c
lib/libmbedtls/mbedtls/library/sha512.c
lib/libmbedtls/mbedtls/library/ssl_cache.c
lib/libmbedtls/mbedtls/library/ssl_ciphersuites.c
lib/libmbedtls/mbedtls/library/ssl_client.c
lib/libmbedtls/mbedtls/library/ssl_client.h
lib/libmbedtls/mbedtls/library/ssl_cookie.c
lib/libmbedtls/mbedtls/library/ssl_debug_helpers.h
lib/libmbedtls/mbedtls/library/ssl_debug_helpers_generated.c
lib/libmbedtls/mbedtls/library/ssl_misc.h
lib/libmbedtls/mbedtls/library/ssl_msg.c
lib/libmbedtls/mbedtls/library/ssl_ticket.c
lib/libmbedtls/mbedtls/library/ssl_tls.c
lib/libmbedtls/mbedtls/library/ssl_tls12_client.c
lib/libmbedtls/mbedtls/library/ssl_tls12_server.c
lib/libmbedtls/mbedtls/library/ssl_tls13_client.c
lib/libmbedtls/mbedtls/library/ssl_tls13_generic.c
lib/libmbedtls/mbedtls/library/ssl_tls13_invasive.h
lib/libmbedtls/mbedtls/library/ssl_tls13_keys.c
lib/libmbedtls/mbedtls/library/ssl_tls13_keys.h
lib/libmbedtls/mbedtls/library/ssl_tls13_server.c
lib/libmbedtls/mbedtls/library/threading.c
lib/libmbedtls/mbedtls/library/timing.c
lib/libmbedtls/mbedtls/library/version.c
lib/libmbedtls/mbedtls/library/version_features.c
lib/libmbedtls/mbedtls/library/x509.c
lib/libmbedtls/mbedtls/library/x509_create.c
lib/libmbedtls/mbedtls/library/x509_crl.c
lib/libmbedtls/mbedtls/library/x509_crt.c
lib/libmbedtls/mbedtls/library/x509_csr.c
lib/libmbedtls/mbedtls/library/x509write_crt.c
lib/libmbedtls/mbedtls/library/x509write_csr.c
lib/libmbedtls/sub.mk
lib/libutee/sub.mk
lib/libutee/tee_api_arith_mpi.c
ta/pkcs11/src/pkcs11_attributes.c
d2d2912d11-Oct-2023 Jens Wiklander <jens.wiklander@linaro.org>

core: optee_ffa.h: fix a spell error in ABI description

Fixes a spell error in the comment describing OPTEE_FFA_UNREGISTER_SHM ABI.

Signed-off-by: Jens Wiklander <jens.wiklander@linaro.org>
Acked-b

core: optee_ffa.h: fix a spell error in ABI description

Fixes a spell error in the comment describing OPTEE_FFA_UNREGISTER_SHM ABI.

Signed-off-by: Jens Wiklander <jens.wiklander@linaro.org>
Acked-by: Etienne Carriere <etienne.carriere@foss.st.com>

show more ...

87691a6f11-Oct-2023 Jens Wiklander <jens.wiklander@linaro.org>

core: ffa: return an error on unknown blocking calls

Until now we have panicked on unknown blocking calls. The caller can't
recover from that so return an error instead.

Signed-off-by: Jens Wikland

core: ffa: return an error on unknown blocking calls

Until now we have panicked on unknown blocking calls. The caller can't
recover from that so return an error instead.

Signed-off-by: Jens Wiklander <jens.wiklander@linaro.org>
Acked-by: Etienne Carriere <etienne.carriere@foss.st.com>

show more ...

287e68f411-Oct-2023 Jens Wiklander <jens.wiklander@linaro.org>

core: ffa: fix race in mobj_put() and ffa_inactivate()

Prior to this patch there was a race condition when mobj_put()
is calling ffa_inactivate().
D/TC:0 0 ffa_inactivate:525 cookie 0x100000000000
D

core: ffa: fix race in mobj_put() and ffa_inactivate()

Prior to this patch there was a race condition when mobj_put()
is calling ffa_inactivate().
D/TC:0 0 ffa_inactivate:525 cookie 0x100000000000
D/TC:0 1 mobj_ffa_get_by_cookie:401 cookie 0x100000000000 active: refc 1
D/TC:? 1 read_console:114 got 0xd
D/TC:0 1 ffa_inactivate:525 cookie 0x100000000000
D/TC:0 0 ffa_inactivate:525 cookie 0x100000000000
E/TC:0 0 Panic at core/arch/arm/mm/mobj_ffa.c:527 <ffa_inactivate>
E/TC:0 0 TEE load address @ 0xe100000
E/TC:0 0 Call stack:
E/TC:0 0 0x0e108c0c print_kernel_stack at ??:?
E/TC:0 0 0x0e115b8c __do_panic at core/kernel/panic.c:24
E/TC:0 0 0x0e10a238 ffa_inactivate at mobj_ffa.c:?
E/TC:0 0 0x0e107318 __thread_std_smc_entry at ??:?

As now explained in ffa_inactivate():
/*
* pop_from_list() can fail to find the mobj if we had just
* decreased the refcount to 0 in mobj_put() and was going to
* acquire the shm_lock but another thread found this mobj and
* reinitialized the refcount to 1. Then before we got cpu time the
* other thread called mobj_put() and deactivated the mobj again.
* ...
*/

If our thread is delayed even further we may even inactivate an
unrelated mobj that happened to reuse the same piece of memory.

Fix this by adding another guarding condition so that the mobj is
guaranteed to be valid until ffa_inactivate() has returned. By adding a
new member in struct mobj_ffa, inactive_refs, we keep track of
references even when the mobj have been moved to the inactive list.

Adds a comment describing the non-trivial life cycle of struct mobj_ffa.

Signed-off-by: Jens Wiklander <jens.wiklander@linaro.org>
Acked-by: Etienne Carriere <etienne.carriere@foss.st.com>

show more ...

42e8211c11-Oct-2023 Jens Wiklander <jens.wiklander@linaro.org>

drivers: saic: remove stubbed functions

With the commit b2d6db21ec5e ("core: interrupt: helper function for
raise_pi, raise_sgi, set_affinity") the struct itr_ops .raise_pi,
.raise_sgi, and .set_aff

drivers: saic: remove stubbed functions

With the commit b2d6db21ec5e ("core: interrupt: helper function for
raise_pi, raise_sgi, set_affinity") the struct itr_ops .raise_pi,
.raise_sgi, and .set_affinity are now optional so remove the stubbed
functions.

Signed-off-by: Jens Wiklander <jens.wiklander@linaro.org>
Reviewed-by: Etienne Carriere <etienne.carriere@foss.st.com>

show more ...

422798c911-Oct-2023 Jens Wiklander <jens.wiklander@linaro.org>

drivers: hfic: remove stubbed functions

With the commit b2d6db21ec5e ("core: interrupt: helper function for
raise_pi, raise_sgi, set_affinity") the struct itr_ops .raise_pi,
.raise_sgi, and .set_aff

drivers: hfic: remove stubbed functions

With the commit b2d6db21ec5e ("core: interrupt: helper function for
raise_pi, raise_sgi, set_affinity") the struct itr_ops .raise_pi,
.raise_sgi, and .set_affinity are now optional so remove the stubbed
functions.

Signed-off-by: Jens Wiklander <jens.wiklander@linaro.org>
Reviewed-by: Etienne Carriere <etienne.carriere@foss.st.com>

show more ...

3fc53ba505-Oct-2023 Clement Faure <clement.faure@nxp.com>

drivers: imx: mu: add support for mx8dxl

Add MU support for mx8dxl platforms.

Signed-off-by: Clement Faure <clement.faure@nxp.com>
Acked-by: Jerome Forissier <jerome.forissier@linaro.org>
Acked-by:

drivers: imx: mu: add support for mx8dxl

Add MU support for mx8dxl platforms.

Signed-off-by: Clement Faure <clement.faure@nxp.com>
Acked-by: Jerome Forissier <jerome.forissier@linaro.org>
Acked-by: Jens Wiklander <jens.wiklander@linaro.org>
Acked-by: Etienne Carriere <etienne.carriere@foss.st.com>

show more ...

21f5896205-Oct-2023 Clement Faure <clement.faure@nxp.com>

drivers: caam: add support for mx8dxl

Add support for mx8dxl platforms.
The HAL support is identical to mx8qm/qxp platforms.

Signed-off-by: Clement Faure <clement.faure@nxp.com>
Acked-by: Jerome Fo

drivers: caam: add support for mx8dxl

Add support for mx8dxl platforms.
The HAL support is identical to mx8qm/qxp platforms.

Signed-off-by: Clement Faure <clement.faure@nxp.com>
Acked-by: Jerome Forissier <jerome.forissier@linaro.org>
Acked-by: Jens Wiklander <jens.wiklander@linaro.org>
Acked-by: Etienne Carriere <etienne.carriere@foss.st.com>

show more ...

69b5b0ac05-Oct-2023 Clement Faure <clement.faure@nxp.com>

core: imx: fix the DDR configuration of the mx8dxl

Add base address and size of the second DDR size.
Set the physical address size to 40 bits instead of 32 bits. This is
required for platforms with

core: imx: fix the DDR configuration of the mx8dxl

Add base address and size of the second DDR size.
Set the physical address size to 40 bits instead of 32 bits. This is
required for platforms with more and 4G of DDR.

Signed-off-by: Clement Faure <clement.faure@nxp.com>
Acked-by: Jerome Forissier <jerome.forissier@linaro.org>
Acked-by: Jens Wiklander <jens.wiklander@linaro.org>
Acked-by: Etienne Carriere <etienne.carriere@foss.st.com>

show more ...

1...<<61626364656667686970>>...336