| 59bef968 | 21-May-2019 |
Rouven Czerwinski <r.czerwinski@pengutronix.de> |
config.mk: fix CFG_OPTEE_REVISION_MINOR
The current release is 3.5.0, change the revision to match.
Fixes https://github.com/OP-TEE/optee_os/issues/3028
Signed-off-by: Rouven Czerwinski <r.czerwin
config.mk: fix CFG_OPTEE_REVISION_MINOR
The current release is 3.5.0, change the revision to match.
Fixes https://github.com/OP-TEE/optee_os/issues/3028
Signed-off-by: Rouven Czerwinski <r.czerwinski@pengutronix.de> Reviewed-by: Joakim Bech <joakim.bech@linaro.org>
show more ...
|
| fde3a7f2 | 21-May-2019 |
Sumit Garg <sumit.garg@linaro.org> |
Remove redundant __noreturn from __utee_entry()
As __ta_entry() acts as function entry point, it makes sense to logically return from this api only via utee_return(). So remove redundant __noreturn
Remove redundant __noreturn from __utee_entry()
As __ta_entry() acts as function entry point, it makes sense to logically return from this api only via utee_return(). So remove redundant __noreturn from __utee_entry().
Fixes: eeb866c431db ("Add TA entry point function: __ta_entry()") Signed-off-by: Sumit Garg <sumit.garg@linaro.org> Acked-by: Jerome Forissier <jerome.forissier@linaro.org> Acked-by: Jens Wiklander <jens.wiklander@linaro.org>
show more ...
|
| 559736d8 | 21-May-2019 |
Etienne Carriere <etienne.carriere@linaro.org> |
stm32mp1: fix stm32_get_gpio_bank_base()
Correct missing return in function stm32_get_gpio_bank_base(). Prior this change, platform may fail to boot with debug trace:
E/TC:0 0 assertion 'bank <= GP
stm32mp1: fix stm32_get_gpio_bank_base()
Correct missing return in function stm32_get_gpio_bank_base(). Prior this change, platform may fail to boot with debug trace:
E/TC:0 0 assertion 'bank <= GPIO_BANK_K' failed at core/arch/arm/plat-stm32mp1/main.c:311 <stm32_get_gpio_bank_base>
Fixes: 68c4a16b37c7 ("stm32mp1: use phys_to_virt_io_secure() where expected")
Signed-off-by: Etienne Carriere <etienne.carriere@linaro.org>
show more ...
|
| 98afbf58 | 03-May-2019 |
Etienne Carriere <etienne.carriere@st.com> |
stm32mp1: power management for GPIOz
Ensure secure hardening of GPIOz bank pins is restored when resuming from a low power state where configuration might be lost.
Signed-off-by: Etienne Carriere <
stm32mp1: power management for GPIOz
Ensure secure hardening of GPIOz bank pins is restored when resuming from a low power state where configuration might be lost.
Signed-off-by: Etienne Carriere <etienne.carriere@st.com> Acked-by: Jens Wiklander <jens.wiklander@linaro.org>
show more ...
|
| a3104caa | 06-May-2019 |
Etienne Carriere <etienne.carriere@st.com> |
stm32mp1: counting GPIOZ bank pins
Get the GPIOZ bank pin count from the device tree. The shared resources driver uses this information to validate GPIO pin numbers.
Signed-off-by: Etienne Carriere
stm32mp1: counting GPIOZ bank pins
Get the GPIOZ bank pin count from the device tree. The shared resources driver uses this information to validate GPIO pin numbers.
Signed-off-by: Etienne Carriere <etienne.carriere@st.com> Acked-by: Jens Wiklander <jens.wiklander@linaro.org>
show more ...
|
| c0bc8d0e | 05-May-2019 |
Jens Wiklander <jens.wiklander@linaro.org> |
core: print TA stack dump from thread context
Instead of printing TA stack dump in abort mode, save the required information and print it from user_ta_enter() in thread context. This allows dumping
core: print TA stack dump from thread context
Instead of printing TA stack dump in abort mode, save the required information and print it from user_ta_enter() in thread context. This allows dumping the stack also for paged TAs.
Reviewed-by: Jerome Forissier <jerome.forissier@linaro.org> Signed-off-by: Jens Wiklander <jens.wiklander@linaro.org>
show more ...
|
| 02d869c9 | 15-May-2019 |
Jens Wiklander <jens.wiklander@linaro.org> |
core: REE FS: use mempool_default for temp alloc
Uses mempool_default for temporary block allocation.
This fixes one out of memory error when loading multiple TAs in parallel.
Acked-by: Jerome For
core: REE FS: use mempool_default for temp alloc
Uses mempool_default for temporary block allocation.
This fixes one out of memory error when loading multiple TAs in parallel.
Acked-by: Jerome Forissier <jerome.forissier@linaro.org> Reviewed-by: Etienne Carriere <etienne.carriere@linaro.org> Signed-off-by: Jens Wiklander <jens.wiklander@linaro.org>
show more ...
|
| 95d0db1e | 15-May-2019 |
Jens Wiklander <jens.wiklander@linaro.org> |
core: add system wide mempool_default
Adds system wide mempool_default for temporary large memory allocations.
Acked-by: Jerome Forissier <jerome.forissier@linaro.org> Reviewed-by: Etienne Carriere
core: add system wide mempool_default
Adds system wide mempool_default for temporary large memory allocations.
Acked-by: Jerome Forissier <jerome.forissier@linaro.org> Reviewed-by: Etienne Carriere <etienne.carriere@linaro.org> Signed-off-by: Jens Wiklander <jens.wiklander@linaro.org>
show more ...
|
| e28abf09 | 16-May-2019 |
Jerome Forissier <jerome.forissier@linaro.org> |
core: arm: kern.ld.S: ignore .init section
The ELF .init section is meant to be used by program loaders to run special initialization code before the main entry point is called. This does not apply
core: arm: kern.ld.S: ignore .init section
The ELF .init section is meant to be used by program loaders to run special initialization code before the main entry point is called. This does not apply to the TEE core, and the compiler does not generate such a section. Therefore, mentioning it in the linker script is useless.
Signed-off-by: Jerome Forissier <jerome.forissier@linaro.org> Acked-by: Jens Wiklander <jens.wiklander@linaro.org>
show more ...
|
| 68c4a16b | 15-May-2019 |
Etienne Carriere <etienne.carriere@st.com> |
stm32mp1: use phys_to_virt_io_secure() where expected
This change updates platforms and drivers to use io_pa_or_va_secure() when expecting a secure mapped address.
PWR, RCC, GIC, TAMP, BSEC, ETZPC,
stm32mp1: use phys_to_virt_io_secure() where expected
This change updates platforms and drivers to use io_pa_or_va_secure() when expecting a secure mapped address.
PWR, RCC, GIC, TAMP, BSEC, ETZPC, I2C are always secure (when embedded).
RNG uses a secure or non-secure mapping according to its registration in platform shared_resource driver.
GPIOs IO memory is always access though non-secure mapped virtual addresses.
Signed-off-by: Etienne Carriere <etienne.carriere@st.com> Acked-by: Jens Wiklander <jens.wiklander@linaro.org>
show more ...
|
| bff68dc2 | 15-May-2019 |
Etienne Carriere <etienne.carriere@st.com> |
core: introduce io_pa_or_va_{secure|nsec}()
io_pa_or_va_secure() returns the secure mapped virtual address if MMU is enable while io_pa_or_va_nsec() would return the non-secure mapped virtual addres
core: introduce io_pa_or_va_{secure|nsec}()
io_pa_or_va_secure() returns the secure mapped virtual address if MMU is enable while io_pa_or_va_nsec() would return the non-secure mapped virtual address.
Signed-off-by: Etienne Carriere <etienne.carriere@st.com> Reviewed-by: Jens Wiklander <jens.wiklander@linaro.org>
show more ...
|
| 420ca516 | 16-May-2019 |
Jerome Forissier <jerome.forissier@linaro.org> |
core: RPMB FS: fix panic when RPMB partition size is 16 MiB
The overflow check used when computing the number of the last block in the RPMB parition is incorrect. It causes an overflow when rpmb_siz
core: RPMB FS: fix panic when RPMB partition size is 16 MiB
The overflow check used when computing the number of the last block in the RPMB parition is incorrect. It causes an overflow when rpmb_size_mult is 128, that is, when the partition size is 16 MiB. Indeed, max_blk_idx is a uint16_t and we are trying to store 65536 (= 128 * (128 * 1024) / 256).
Fix this by using a 32-bit temporary variable to hold the result of the multiplication (the number of blocks), then subtract 1 to get the last block number using SUB_OVERFLOW().
Fixes: ea81076f7896 ("core: RPMB FS: check for potential overflows") Fixes: https://github.com/OP-TEE/optee_os/issues/3012 Signed-off-by: Jerome Forissier <jerome.forissier@linaro.org> Reported-by: Pengguang Zhu <zpghao@163.com> Suggested-by: Jens Wiklander <jens.wiklander@linaro.org> Reviewed-by: Jens Wiklander <jens.wiklander@linaro.org>
show more ...
|
| 00c55c25 | 07-May-2019 |
Etienne Carriere <etienne.carriere@linaro.org> |
stm32_etzpc: core driver level for pm operations
Change power transition ordering level for the ETZPC driver. The driver does not depend and clock configuration and the access filtering configuratio
stm32_etzpc: core driver level for pm operations
Change power transition ordering level for the ETZPC driver. The driver does not depend and clock configuration and the access filtering configuration shall be restored prior device drivers resumes sequence to reflect expected platform state.
Signed-off-by: Etienne Carriere <etienne.carriere@linaro.org> Reviewed-by: Jens Wiklander <jens.wiklander@linaro.org>
show more ...
|
| 5d47b773 | 18-Dec-2018 |
Etienne Carriere <etienne.carriere@linaro.org> |
core: pm: helper register_pm_core_service_cb()
Introduce inline helper function register_pm_core_service_cb() to simplifies registration of core service PM callbacks:
help: register_pm_core_servi
core: pm: helper register_pm_core_service_cb()
Introduce inline helper function register_pm_core_service_cb() to simplifies registration of core service PM callbacks:
help: register_pm_core_service_cb(my_callback, my_handle); instead of generic: register_pm_cb(&PM_CALLBACK_HANDLE_INITIALIZER( my_callback, my_handle, PM_CB_ORDER_CORE_SERVICE));
Signed-off-by: Etienne Carriere <etienne.carriere@linaro.org> Reviewed-by: Jens Wiklander <jens.wiklander@linaro.org>
show more ...
|
| a4235ed9 | 16-May-2019 |
Jerome Forissier <jerome.forissier@linaro.org> |
core: arm: kern.ld.S: discard .interp section
tee.elf currently has an INTERP segment that contains "/usr/lib/ld.so.1". This is totally meaningless, so remove it by discarding the .interp section in
core: arm: kern.ld.S: discard .interp section
tee.elf currently has an INTERP segment that contains "/usr/lib/ld.so.1". This is totally meaningless, so remove it by discarding the .interp section in the linker script.
Signed-off-by: Jerome Forissier <jerome.forissier@linaro.org> Reviewed-by: Jens Wiklander <jens.wiklander@linaro.org>
show more ...
|
| 539e0f1f | 15-May-2019 |
Jens Wiklander <jens.wiklander@linaro.org> |
core: bugfix mutex_destroy()
Prior to this patch mutex_destroy() was incorrectly testing the lock state. With this patch the test is corrected to avoid panic() on unlocked mutexes.
Reviewed-by: Jer
core: bugfix mutex_destroy()
Prior to this patch mutex_destroy() was incorrectly testing the lock state. With this patch the test is corrected to avoid panic() on unlocked mutexes.
Reviewed-by: Jerome Forissier <jerome.forissier@linaro.org> Tested-by: Jens Wiklander <jens.wiklander@linaro.org> Signed-off-by: Jens Wiklander <jens.wiklander@linaro.org>
show more ...
|
| d67aa8ec | 15-May-2019 |
Jens Wiklander <jens.wiklander@linaro.org> |
.shippable.yml: add CFG_REE_FS_TA_BUFFERED=n
Adds a build with CFG_REE_FS_TA_BUFFERED=n.
Reviewed-by: Jerome Forissier <jerome.forissier@linaro.org> Signed-off-by: Jens Wiklander <jens.wiklander@li
.shippable.yml: add CFG_REE_FS_TA_BUFFERED=n
Adds a build with CFG_REE_FS_TA_BUFFERED=n.
Reviewed-by: Jerome Forissier <jerome.forissier@linaro.org> Signed-off-by: Jens Wiklander <jens.wiklander@linaro.org>
show more ...
|
| c3d6806c | 15-May-2019 |
Jens Wiklander <jens.wiklander@linaro.org> |
core: ree_fs_ta.c: fix compile error
Fixes compile error with CFG_REE_FS_TA_BUFFERED=n: core/arch/arm/kernel/ree_fs_ta.c:284:13: error: ‘ta_get_tag’ undeclared here (not in a function); did you mean
core: ree_fs_ta.c: fix compile error
Fixes compile error with CFG_REE_FS_TA_BUFFERED=n: core/arch/arm/kernel/ree_fs_ta.c:284:13: error: ‘ta_get_tag’ undeclared here (not in a function); did you mean ‘ta_head’? .get_tag = ta_get_tag, ^~~~~~~~~~ ta_head core/arch/arm/kernel/ree_fs_ta.c:201:19: error: ‘ree_fs_ta_get_tag’ defined but not used [-Werror=unused-function] static TEE_Result ree_fs_ta_get_tag(const struct user_ta_store_handle *h, ^~~~~~~~~~~~~~~~~ cc1: all warnings being treated as errors mk/compile.mk:147: recipe for target '../out-os-qemu/core/arch/arm/kernel/ree_fs_ta.o' failed
Reviewed-by: Jerome Forissier <jerome.forissier@linaro.org> Signed-off-by: Jens Wiklander <jens.wiklander@linaro.org>
show more ...
|
| 7485f3c7 | 15-May-2019 |
Jens Wiklander <jens.wiklander@linaro.org> |
core: remove unused tee_customer_part.h
Removes the unused <tee_customer_part.h>
Reviewed-by: Jerome Forissier <jerome.forissier@linaro.org> Signed-off-by: Jens Wiklander <jens.wiklander@linaro.org>
|
| b8fa2c7d | 03-May-2019 |
Etienne Carriere <etienne.carriere@st.com> |
stm32mp1: common SoC registers protections
Helper functions for stm32mp1 platform to access a SoC interface register that can be accessed from several drivers and services. They all use a common spi
stm32mp1: common SoC registers protections
Helper functions for stm32mp1 platform to access a SoC interface register that can be accessed from several drivers and services. They all use a common spinlock to ensure atomic update of the register content.
Helpers: io_mask32_stm32shregs(), io_setbits32_stm32shregs(), io_clrbits32_stm32shregs() and io_clrsetbits32_stm32shregs().
Signed-off-by: Etienne Carriere <etienne.carriere@st.com> Acked-by: Jens Wiklander <jens.wiklander@linaro.org>
show more ...
|
| 7cefc61a | 26-Apr-2019 |
Etienne Carriere <etienne.carriere@linaro.org> |
stm32mp1: simplify stm32mp_periph_is_*()
As per design shared resources explicitly registered as secure are assigned to the secure world while other are defacto assigned to the non-secure world.
Th
stm32mp1: simplify stm32mp_periph_is_*()
As per design shared resources explicitly registered as secure are assigned to the secure world while other are defacto assigned to the non-secure world.
This change remove functions stm32mp_periph_is_unregistered() and stm32mp_periph_is_non_secure() and keeps only stm32mp_periph_is_secure() which return value reflects whether the resource is assigned to the secure or non-secure world.
Suggested-by: Jérôme Forissier <jerome.forissier@linaro.org> Signed-off-by: Etienne Carriere <etienne.carriere@linaro.org> Reviewed-by: Jerome Forissier <jerome.forissier@linaro.org>
show more ...
|
| ae09e04c | 06-May-2019 |
Etienne Carriere <etienne.carriere@linaro.org> |
stm32mp1: remove info traces on shared resource registering
Change verbosity of shared resource registration traces from info to debug log level.
Signed-off-by: Etienne Carriere <etienne.carriere@l
stm32mp1: remove info traces on shared resource registering
Change verbosity of shared resource registration traces from info to debug log level.
Signed-off-by: Etienne Carriere <etienne.carriere@linaro.org> Reviewed-by: Jerome Forissier <jerome.forissier@linaro.org>
show more ...
|
| 37287439 | 14-May-2019 |
Sahil Malhotra <sahil.malhotra@nxp.com> |
core:tee: remove redundant tee_obj_attr_to_binary() calls
A couple of tee_obj_attr_to_binary() calls are useless, remove them.
Signed-off-by: Sahil Malhotra <sahil.malhotra@nxp.com> Fixes: https://
core:tee: remove redundant tee_obj_attr_to_binary() calls
A couple of tee_obj_attr_to_binary() calls are useless, remove them.
Signed-off-by: Sahil Malhotra <sahil.malhotra@nxp.com> Fixes: https://github.com/OP-TEE/optee_os/issues/3004 Reviewed-by: Jerome Forissier <jerome.forissier@linaro.org> Reviewed-by: Jens Wiklander <jens.wiklander@linaro.org> Tested-by: Jerome Forissier <jerome.forissier@linaro.org> (QEMU, GP)
show more ...
|
| 49d06bff | 13-May-2019 |
Etienne Carriere <etienne.carriere@linaro.org> |
core: fix session closure when open panicked
Change tee_ta_close_session() function to support panicked TA contexts. Prior this change, the function did not expect referenced context had previously
core: fix session closure when open panicked
Change tee_ta_close_session() function to support panicked TA contexts. Prior this change, the function did not expect referenced context had previously panicked. Since recent changes for reloadable keep alive TAs, referenced below, Panic on open session does completely release context which session closure is expected to proceed to.
Fixes: https://github.com/OP-TEE/optee_os/issues/3003 Fixes: fd10f62b8210 ("core: keep alive TA context can be created after TA has panicked") Signed-off-by: Etienne Carriere <etienne.carriere@linaro.org> Reviewed-by: Jerome Forissier <jerome.forissier@linaro.org> Tested-by: Jerome Forissier <jerome.forissier@linaro.org> (QEMU, GP)
show more ...
|
| ced8449a | 12-Mar-2019 |
Bastien Simondi <bsimondi@netflix.com> |
core: storage: add some overflow checks
Adds overflow checks to the secure storage code.
Signed-off-by: Bastien Simondi <bsimondi@netflix.com> [jf: Fix test in syscall_storage_obj_seek() case TEE_D
core: storage: add some overflow checks
Adds overflow checks to the secure storage code.
Signed-off-by: Bastien Simondi <bsimondi@netflix.com> [jf: Fix test in syscall_storage_obj_seek() case TEE_DATA_SEEK_END] [jf: Get rid of { } block, initialize new local variables] [jf: Do not fail on (data && !len) in syscall_storage_obj_create()] Signed-off-by: Jerome Forissier <jerome.forissier@linaro.org> Reviewed-by: Jens Wiklander <jens.wiklander@linaro.org> Reviewed-by: Joakim Bech <joakim.bech@linaro.org>
show more ...
|