| bdc919a5 | 22-Mar-2018 |
Jerome Forissier <jerome.forissier@linaro.org> |
core: crypto: enable 4096-bit RSA keys
RSA key size can be allowed to be as large as CFG_CORE_BIGNUM_MAX_BITS (4096 by default).
Signed-off-by: Jerome Forissier <jerome.forissier@linaro.org> Review
core: crypto: enable 4096-bit RSA keys
RSA key size can be allowed to be as large as CFG_CORE_BIGNUM_MAX_BITS (4096 by default).
Signed-off-by: Jerome Forissier <jerome.forissier@linaro.org> Reviewed-by: Jens Wiklander <jens.wiklander@linaro.org>
show more ...
|
| 409d2ff0 | 26-Mar-2018 |
Jerome Forissier <jerome.forissier@linaro.org> |
core: crypto: ltc: introduce CFG_CORE_BIGNUM_MAX_BITS
Make the size of big numbers in the TEE core configurable. The default (4096 bits) may be reduced if such a large key size is not needed, to sav
core: crypto: ltc: introduce CFG_CORE_BIGNUM_MAX_BITS
Make the size of big numbers in the TEE core configurable. The default (4096 bits) may be reduced if such a large key size is not needed, to save core memory.
Signed-off-by: Jerome Forissier <jerome.forissier@linaro.org> Reviewed-by: Jens Wiklander <jens.wiklander@linaro.org>
show more ...
|
| e3458e03 | 26-Mar-2018 |
Jerome Forissier <jerome.forissier@linaro.org> |
libutee: introduce CFG_TA_BIGNUM_MAX_BITS
Make the size of big numbers in libutee configurable. This controls the size of the big numbers that can be manipulated through the TEE Internal Core API (A
libutee: introduce CFG_TA_BIGNUM_MAX_BITS
Make the size of big numbers in libutee configurable. This controls the size of the big numbers that can be manipulated through the TEE Internal Core API (Arithmetical functions).
Signed-off-by: Jerome Forissier <jerome.forissier@linaro.org> Reviewed-by: Jens Wiklander <jens.wiklander@linaro.org>
show more ...
|
| 5beb9909 | 23-Mar-2018 |
Jerome Forissier <jerome.forissier@linaro.org> |
libutee: remove redundant #define for TEE_MAX_NUMBER_OF_SUPPORTED_BITS
Signed-off-by: Jerome Forissier <jerome.forissier@linaro.org> Reviewed-by: Jens Wiklander <jens.wiklander@linaro.org> |
| fd0bc1ed | 23-Mar-2018 |
Jens Wiklander <jens.wiklander@linaro.org> |
core: remove vm_info_get_user_range()
Removes the now unused function vm_info_get_user_range().
Tested-by: Etienne Carriere <etienne.carriere@linaro.org> (b2260/pager/GP) Reviewed-by: Etienne Carri
core: remove vm_info_get_user_range()
Removes the now unused function vm_info_get_user_range().
Tested-by: Etienne Carriere <etienne.carriere@linaro.org> (b2260/pager/GP) Reviewed-by: Etienne Carriere <etienne.carriere@linaro.org> Signed-off-by: Jens Wiklander <jens.wiklander@linaro.org>
show more ...
|
| 3d470862 | 22-Mar-2018 |
Jens Wiklander <jens.wiklander@linaro.org> |
core: document struct user_ta_ctx
Reviewed-by: Etienne Carriere <etienne.carriere@linaro.org> Signed-off-by: Jens Wiklander <jens.wiklander@linaro.org> |
| fbeabf25 | 09-Mar-2018 |
Jens Wiklander <jens.wiklander@linaro.org> |
core: mm: support map update to active context
Adds support in vm_map() to update an active context. vm_set_prot() is also updated, but still requires a call to tee_mmu_set_ctx() for the changes to
core: mm: support map update to active context
Adds support in vm_map() to update an active context. vm_set_prot() is also updated, but still requires a call to tee_mmu_set_ctx() for the changes to be effective.
Reviewed-by: Etienne Carriere <etienne.carriere@linaro.org> Signed-off-by: Jens Wiklander <jens.wiklander@linaro.org>
show more ...
|
| 32e63b4b | 22-Mar-2018 |
Jens Wiklander <jens.wiklander@linaro.org> |
core: tee_mmu.c: add internal umap_remove_region()
Adds an internal helper function umap_remove_region() to remove and free a region from a struct vm_info.
Reviewed-by: Etienne Carriere <etienne.ca
core: tee_mmu.c: add internal umap_remove_region()
Adds an internal helper function umap_remove_region() to remove and free a region from a struct vm_info.
Reviewed-by: Etienne Carriere <etienne.carriere@linaro.org> Signed-off-by: Jens Wiklander <jens.wiklander@linaro.org>
show more ...
|
| 112d6833 | 09-Mar-2018 |
Jens Wiklander <jens.wiklander@linaro.org> |
core: remove tee_mmu_map_init()
Removes tee_mmu_map_init() and adds the map_kinit() call to vm_info_init().
Reviewed-by: Etienne Carriere <etienne.carriere@linaro.org> Acked-by: Jerome Forissier <j
core: remove tee_mmu_map_init()
Removes tee_mmu_map_init() and adds the map_kinit() call to vm_info_init().
Reviewed-by: Etienne Carriere <etienne.carriere@linaro.org> Acked-by: Jerome Forissier <jerome.forissier@linaro.org> Signed-off-by: Jens Wiklander <jens.wiklander@linaro.org>
show more ...
|
| e1b6205b | 09-Mar-2018 |
Jens Wiklander <jens.wiklander@linaro.org> |
core: load_elf(): use vm_set_prot()
Rewrite load_elf() to use vm_set_prot() to finalize the TA mapping instead of remapping the TA again.
Reviewed-by: Jerome Forissier <jerome.forissier@linaro.org>
core: load_elf(): use vm_set_prot()
Rewrite load_elf() to use vm_set_prot() to finalize the TA mapping instead of remapping the TA again.
Reviewed-by: Jerome Forissier <jerome.forissier@linaro.org> Signed-off-by: Jens Wiklander <jens.wiklander@linaro.org>
show more ...
|
| 49e68601 | 09-Mar-2018 |
Jens Wiklander <jens.wiklander@linaro.org> |
core: add vm_set_prot()
Adds vm_set_prot() to update the protection bits of an already registered region.
Reviewed-by: Jerome Forissier <jerome.forissier@linaro.org> Signed-off-by: Jens Wiklander <
core: add vm_set_prot()
Adds vm_set_prot() to update the protection bits of an already registered region.
Reviewed-by: Jerome Forissier <jerome.forissier@linaro.org> Signed-off-by: Jens Wiklander <jens.wiklander@linaro.org>
show more ...
|
| 211417d3 | 09-Mar-2018 |
Jens Wiklander <jens.wiklander@linaro.org> |
core: more flexible ta mapping
Replaces the current fixed array of TA map entries where some indexes have a special meaning. The new structures and functions dealing with this has a vm_ prefix inste
core: more flexible ta mapping
Replaces the current fixed array of TA map entries where some indexes have a special meaning. The new structures and functions dealing with this has a vm_ prefix instead of the old tee_mmu_ prefix.
struct tee_ta_region is replaced by struct vm_region, which is now stored in a linked list using the new TEE_MATTR-bits to identify special regions.
struct tee_mmu_info is replaced by vm_info, which now keeps the head of the linked list of regions.
Acked-by: Etienne Carriere <etienne.carriere@linaro.org> Acked-by: Jerome Forissier <jerome.forissier@linaro.org> Signed-off-by: Jens Wiklander <jens.wiklander@linaro.org>
show more ...
|
| a8d84b58 | 09-Mar-2018 |
Jens Wiklander <jens.wiklander@linaro.org> |
core: add new TEE_MATTR defines
Adds TEE_MATTR_EPHEMERAL to tag TA mappings which are only used during a single call (open session or invoke parameters).
Adds TEE_MATTR_PERMANENT to tag TA mappings
core: add new TEE_MATTR defines
Adds TEE_MATTR_EPHEMERAL to tag TA mappings which are only used during a single call (open session or invoke parameters).
Adds TEE_MATTR_PERMANENT to tag TA mappings that must not be removed (kernel mappings while in user mode).
Reviewed-by: Jerome Forissier <jerome.forissier@linaro.org> Signed-off-by: Jens Wiklander <jens.wiklander@linaro.org>
show more ...
|
| 261109aa | 09-Mar-2018 |
Jens Wiklander <jens.wiklander@linaro.org> |
core: tee_mmu_types.h: define TEE_MATTR_* with BIT
Uses the BIT() macro to define the TEE_MATTR_* macros.
Reviewed-by: Etienne Carriere <etienne.carriere@linaro.org> Signed-off-by: Jens Wiklander <
core: tee_mmu_types.h: define TEE_MATTR_* with BIT
Uses the BIT() macro to define the TEE_MATTR_* macros.
Reviewed-by: Etienne Carriere <etienne.carriere@linaro.org> Signed-off-by: Jens Wiklander <jens.wiklander@linaro.org>
show more ...
|
| 45d5cec0 | 09-Mar-2018 |
Jens Wiklander <jens.wiklander@linaro.org> |
core: mobj_seccpy_shm: remove unused pgdir_offset
Removes assignment of the otherwise unused pgdir_offset field in struct mobj_seccpy_shm and the field itself.
Reviewed-by: Etienne Carriere <etienn
core: mobj_seccpy_shm: remove unused pgdir_offset
Removes assignment of the otherwise unused pgdir_offset field in struct mobj_seccpy_shm and the field itself.
Reviewed-by: Etienne Carriere <etienne.carriere@linaro.org> Signed-off-by: Jens Wiklander <jens.wiklander@linaro.org>
show more ...
|
| 69129ee9 | 09-Mar-2018 |
Jens Wiklander <jens.wiklander@linaro.org> |
core: tee_mmu_add_rwmem(): remove pgdir_offset
Removes the pgdir_offset parameter from the tee_mmu_add_rwmem(). The function is only called from one place and then with pgdir_offset as -1.
Reviewed
core: tee_mmu_add_rwmem(): remove pgdir_offset
Removes the pgdir_offset parameter from the tee_mmu_add_rwmem(). The function is only called from one place and then with pgdir_offset as -1.
Reviewed-by: Etienne Carriere <etienne.carriere@linaro.org> Signed-off-by: Jens Wiklander <jens.wiklander@linaro.org>
show more ...
|
| 0e3f6d6b | 09-Mar-2018 |
Jens Wiklander <jens.wiklander@linaro.org> |
core: REE FS: temporary block allocation
Large memory allocations with malloc() can fail due to a fragmented heap. This is especially a problem when configured with pager as the heap is kept as smal
core: REE FS: temporary block allocation
Large memory allocations with malloc() can fail due to a fragmented heap. This is especially a problem when configured with pager as the heap is kept as small as possible in that configuration for obvious reasons.
This patch allocates the temporary block needed for reading and writing in REE FS tee_pager_alloc() instead when the pager is enabled.
Reviewed-by: Etienne Carriere <etienne.carriere@linaro.org> Signed-off-by: Jens Wiklander <jens.wiklander@linaro.org>
show more ...
|
| 820042a5 | 09-Mar-2018 |
Jens Wiklander <jens.wiklander@linaro.org> |
core: tee_tadb_ta_read(): reduce tmp buffer
Large memory allocations with malloc() can fail due to a fragmented heap. The easiest way to avoid such failures is obviously to allocate smaller buffers.
core: tee_tadb_ta_read(): reduce tmp buffer
Large memory allocations with malloc() can fail due to a fragmented heap. The easiest way to avoid such failures is obviously to allocate smaller buffers.
Reduces the size of the temporary buffer used in tee_tadb_ta_read() when skipping over bytes in the payload. Instead of max 4k use 256 bytes. Impact on performance should be minimal as not much data are skipped in the payload.
Reviewed-by: Etienne Carriere <etienne.carriere@linaro.org> Signed-off-by: Jens Wiklander <jens.wiklander@linaro.org>
show more ...
|
| ab87e5b7 | 26-Mar-2018 |
Jerome Forissier <jerome.forissier@linaro.org> |
Documentation: add abort_dumps.rst
Signed-off-by: Jerome Forissier <jerome.forissier@linaro.org> Reviewed-by: Jens Wiklander <jens.wiklander@linaro.org> |
| df5f76c7 | 02-Apr-2018 |
Jerome Forissier <jerome.forissier@linaro.org> |
README.md: fix broken link to MAINTAINERS file
Signed-off-by: Jerome Forissier <jerome.forissier@linaro.org> Reported-by: Ohad Netz <ohad.netz@arm.com> Reviewed-by: Jens Wiklander <jens.wiklander@li
README.md: fix broken link to MAINTAINERS file
Signed-off-by: Jerome Forissier <jerome.forissier@linaro.org> Reported-by: Ohad Netz <ohad.netz@arm.com> Reviewed-by: Jens Wiklander <jens.wiklander@linaro.org>
show more ...
|
| 21b948d2 | 28-Mar-2018 |
Jens Wiklander <jens.wiklander@linaro.org> |
doc: add a note on PRNG weakness
Adds a note on the software PRNG weakness in the porting guidelines.
Acked-by: Etienne Carriere <etienne.carriere@linaro.org> Signed-off-by: Jens Wiklander <jens.wi
doc: add a note on PRNG weakness
Adds a note on the software PRNG weakness in the porting guidelines.
Acked-by: Etienne Carriere <etienne.carriere@linaro.org> Signed-off-by: Jens Wiklander <jens.wiklander@linaro.org>
show more ...
|
| ad22421a | 21-Mar-2018 |
Peng Fan <peng.fan@nxp.com> |
core: arm: imx7d: add low power cpuidle support
Add Low power cpuidle support.
The hard point is two cores could runs into low power idle at any time. So need to do protection. Here we could not us
core: arm: imx7d: add low power cpuidle support
Add Low power cpuidle support.
The hard point is two cores could runs into low power idle at any time. So need to do protection. Here we could not use cpu_spin_lock, because we need lock in c code and unlock in asm code, and in asm code, SMP is turned off.
Signed-off-by: Peng Fan <peng.fan@nxp.com> Acked-by: Jens Wiklander <jens.wiklander@linaro.org> Acked-by: Jerome Forissier <jerome.forissier@linaro.org>
show more ...
|
| 062c5456 | 13-Mar-2018 |
Peng Fan <peng.fan@nxp.com> |
core: imx: use a dedicated sub.mk for pm
Use a dedicated sub.mk for the directory holding power related source code.
Signed-off-by: Peng Fan <peng.fan@nxp.com> Reviewed-by: Jerome Forissier <jerome
core: imx: use a dedicated sub.mk for pm
Use a dedicated sub.mk for the directory holding power related source code.
Signed-off-by: Peng Fan <peng.fan@nxp.com> Reviewed-by: Jerome Forissier <jerome.forissier@linaro.org> Acked-by: Jens Wiklander <jens.wiklander@linaro.org>
show more ...
|
| 21c4f9f7 | 10-Mar-2018 |
Peng Fan <peng.fan@nxp.com> |
core: imx: implement psci_system_off
Implement psci_system_off.
Signed-off-by: Peng Fan <peng.fan@nxp.com> Acked-by: Jerome Forissier <jerome.forissier@linaro.org> Acked-by: Jens Wiklander <jens.wi
core: imx: implement psci_system_off
Implement psci_system_off.
Signed-off-by: Peng Fan <peng.fan@nxp.com> Acked-by: Jerome Forissier <jerome.forissier@linaro.org> Acked-by: Jens Wiklander <jens.wiklander@linaro.org>
show more ...
|
| 80bf9131 | 26-Mar-2018 |
Jens Wiklander <jens.wiklander@linaro.org> |
core: syscall_authenc_enc_final() initialize tlen
Fixes problem with possibly leaking uninitialized stack content via tlen.
Fixes: https://github.com/OP-TEE/optee_os/issues/2214 Reviewed-by: Jerome
core: syscall_authenc_enc_final() initialize tlen
Fixes problem with possibly leaking uninitialized stack content via tlen.
Fixes: https://github.com/OP-TEE/optee_os/issues/2214 Reviewed-by: Jerome Forissier <jerome.forissier@linaro.org> Signed-off-by: Jens Wiklander <jens.wiklander@linaro.org>
show more ...
|