| 1f3274b0 | 21-Dec-2017 |
Jens Wiklander <jens.wiklander@linaro.org> |
core: remove the unused file tee_authenc.h
Reviewed-by: Etienne Carriere <etienne.carriere@linaro.org> Signed-off-by: Jens Wiklander <jens.wiklander@linaro.org>
|
| b63d737a | 12-Dec-2017 |
Jens Wiklander <jens.wiklander@linaro.org> |
core: thread.h: reorder struct thread_core_local
Reorders elements in struct thread_core_local to make sure that: uint32_t r[2]; is double word (8) aligned for ARM32 since the strd instruction somet
core: thread.h: reorder struct thread_core_local
Reorders elements in struct thread_core_local to make sure that: uint32_t r[2]; is double word (8) aligned for ARM32 since the strd instruction sometimes is used to write to that element.
Reviewed-by: Etienne Carriere <etienne.carriere@linaro.org> Signed-off-by: Jens Wiklander <jens.wiklander@linaro.org>
show more ...
|
| 2b033660 | 12-Dec-2017 |
Jens Wiklander <jens.wiklander@linaro.org> |
core: thread_a32.S: remove useless .section
Removes the useless .section .text.thread_asm
Reviewed-by: Etienne Carriere <etienne.carriere@linaro.org> Signed-off-by: Jens Wiklander <jens.wiklander@l
core: thread_a32.S: remove useless .section
Removes the useless .section .text.thread_asm
Reviewed-by: Etienne Carriere <etienne.carriere@linaro.org> Signed-off-by: Jens Wiklander <jens.wiklander@linaro.org>
show more ...
|
| be5a74f0 | 12-Dec-2017 |
Jens Wiklander <jens.wiklander@linaro.org> |
core: arm64: treat size fault as translation fault
AArch64 is very specific regarding different data/prefetch exceptions. With this patch recognize Address Size faults and treat them as translation
core: arm64: treat size fault as translation fault
AArch64 is very specific regarding different data/prefetch exceptions. With this patch recognize Address Size faults and treat them as translation faults.
Reviewed-by: Etienne Carriere <etienne.carriere@linaro.org> Signed-off-by: Jens Wiklander <jens.wiklander@linaro.org>
show more ...
|
| 8e954ccb | 12-Dec-2017 |
Jens Wiklander <jens.wiklander@linaro.org> |
core: pgt: bugfix pop_from_some_list()
Prior to this patch pgt obtained with pop_least_used_from_cache_list() in pop_from_some_list() wasn't cleared properly. Only entries used for paging was clear.
core: pgt: bugfix pop_from_some_list()
Prior to this patch pgt obtained with pop_least_used_from_cache_list() in pop_from_some_list() wasn't cleared properly. Only entries used for paging was clear. With this patch the entire pgt is cleared to cover eventual entries not used for paging.
Acked-by: Etienne Carriere <etienne.carriere@linaro.org> Signed-off-by: Jens Wiklander <jens.wiklander@linaro.org>
show more ...
|
| d22ddc7b | 20-Oct-2017 |
Victor Chong <victor.chong@linaro.org> |
poplar: Add initial support
Signed-off-by: Victor Chong <victor.chong@linaro.org> Acked-by: Jens Wiklander <jens.wiklander@linaro.org> |
| 546291f4 | 15-Dec-2017 |
Joakim Bech <joakim.bech@linaro.org> |
trace: make output more compact
The new format for traces are: <type>/<where>:<thread_id> [<func:line>] <message>
<type>: D = DEBUG E = ERROR I = INFO F = FLOW
<where>: TA = Trusted Ap
trace: make output more compact
The new format for traces are: <type>/<where>:<thread_id> [<func:line>] <message>
<type>: D = DEBUG E = ERROR I = INFO F = FLOW
<where>: TA = Trusted Application TC = TEE Core
I.e, it outputs messages like this: D/TC:00 ta_load:316 ELF load address 0x101000 etc
Thread ID will either take a single or two digits depending on the number of threads in use.
Signed-off-by: Joakim Bech <joakim.bech@linaro.org> Reviewed-by: Jens Wiklander <jens.wiklander@linaro.org> Reviewed-by: Etienne Carriere <etienne.carriere@linaro.org>
show more ...
|
| 380507dd | 10-Dec-2017 |
Victor Chong <victor.chong@linaro.org> |
core/tee/tadb.c: Workaround error: missing braces around initializer
GCC 4.9 generates below false positive:
core/tee/tadb.c:593:15: error: missing braces around initializer [-Werror=missing-braces
core/tee/tadb.c: Workaround error: missing braces around initializer
GCC 4.9 generates below false positive:
core/tee/tadb.c:593:15: error: missing braces around initializer [-Werror=missing-braces] const struct tadb_entry null_entry = { 0 }; ^ core/tee/tadb.c:593:15: error: (near initialization for ‘null_entry.prop’) [-Werror=missing-braces]
Work around it by adding extra braces.
Signed-off-by: Victor Chong <victor.chong@linaro.org> Acked-by: Jerome Forissier <jerome.forissier@linaro.org> Reviewed-by: Jens Wiklander <jens.wiklander@linaro.org>
show more ...
|
| 7639a405 | 11-Dec-2017 |
Volodymyr Babchuk <vlad.babchuk@gmail.com> |
tee_mm.c: fix includes section
- Remove double #include <mm/tee_mm.h> - Put includes into alphabetical order
Signed-off-by: Volodymyr Babchuk <vlad.babchuk@gmail.com> Reviewed-by: Etienne Carrier
tee_mm.c: fix includes section
- Remove double #include <mm/tee_mm.h> - Put includes into alphabetical order
Signed-off-by: Volodymyr Babchuk <vlad.babchuk@gmail.com> Reviewed-by: Etienne Carriere <etienne.carriere@linaro.org> Acked-by: Jens Wiklander <jens.wiklander@linaro.org>
show more ...
|
| 30668b28 | 28-Nov-2017 |
Jens Wiklander <jens.wiklander@linaro.org> |
core: add management pseudo TA for secstor TAs
Adds a pseudo TA for management of Trusted Applications and Security Domains. The pseudo TA only provides a minimal interface, a more advanced interfac
core: add management pseudo TA for secstor TAs
Adds a pseudo TA for management of Trusted Applications and Security Domains. The pseudo TA only provides a minimal interface, a more advanced interface is supposed to be provided by a user TA using this pseudo TA. Such a TA could for instance implement Global Platforms TEE Management Framework or OTrP.
The management TA currently only supports installing bootstrap packaged TAs in secure storage.
Reviewed-by: Volodymyr Babchuk <vlad.babchuk@gmail.com> Reviewed-by: Jerome Forissier <jerome.forissier@linaro.org> Tested-by: Jerome Forissier <jerome.forissier@linaro.org> (HiKey960) Tested-by: Jens Wiklander <jens.wiklander@linaro.org> (QEMU) Signed-off-by: Jens Wiklander <jens.wiklander@linaro.org>
show more ...
|
| c9720143 | 28-Nov-2017 |
Jens Wiklander <jens.wiklander@linaro.org> |
core: add ta storage based on tadb
Adds ta storage based on tadb. The TAs has to be installed in tadb before they can be loaded.
Reviewed-by: Volodymyr Babchuk <vlad.babchuk@gmail.com> Reviewed-by:
core: add ta storage based on tadb
Adds ta storage based on tadb. The TAs has to be installed in tadb before they can be loaded.
Reviewed-by: Volodymyr Babchuk <vlad.babchuk@gmail.com> Reviewed-by: Jerome Forissier <jerome.forissier@linaro.org> Signed-off-by: Jens Wiklander <jens.wiklander@linaro.org>
show more ...
|
| 5baee69a | 28-Nov-2017 |
Jens Wiklander <jens.wiklander@linaro.org> |
core: add tadb
Adds tadb which is a database in which TAs can be stored leveraging secure storage for anti-rollback, key storage and list of TAs.
Reviewed-by: Volodymyr Babchuk <vlad.babchuk@gmail.
core: add tadb
Adds tadb which is a database in which TAs can be stored leveraging secure storage for anti-rollback, key storage and list of TAs.
Reviewed-by: Volodymyr Babchuk <vlad.babchuk@gmail.com> Acked-by: Jerome Forissier <jerome.forissier@linaro.org> Signed-off-by: Jens Wiklander <jens.wiklander@linaro.org>
show more ...
|
| 0df8b2c6 | 28-Nov-2017 |
Jens Wiklander <jens.wiklander@linaro.org> |
core: ree fs ta store: support bootstrap TA format
Adds support for the new bootstrap TA format to the REE FS TA storage.
Reviewed-by: Volodymyr Babchuk <vlad.babchuk@gmail.com> Reviewed-by: Jerome
core: ree fs ta store: support bootstrap TA format
Adds support for the new bootstrap TA format to the REE FS TA storage.
Reviewed-by: Volodymyr Babchuk <vlad.babchuk@gmail.com> Reviewed-by: Jerome Forissier <jerome.forissier@linaro.org> Signed-off-by: Jens Wiklander <jens.wiklander@linaro.org>
show more ...
|
| f1880058 | 28-Nov-2017 |
Jens Wiklander <jens.wiklander@linaro.org> |
core: ree fs ta store: use new shdr_*() helpers
Uses the new shdr_*() helper functions to verify a signed header.
Reviewed-by: Volodymyr Babchuk <vlad.babchuk@gmail.com> Reviewed-by: Jerome Forissi
core: ree fs ta store: use new shdr_*() helpers
Uses the new shdr_*() helper functions to verify a signed header.
Reviewed-by: Volodymyr Babchuk <vlad.babchuk@gmail.com> Reviewed-by: Jerome Forissier <jerome.forissier@linaro.org> Signed-off-by: Jens Wiklander <jens.wiklander@linaro.org>
show more ...
|
| 064663e8 | 28-Nov-2017 |
Jens Wiklander <jens.wiklander@linaro.org> |
core: crypto: add struct shdr helper functions
Adds struct shdr helper functions to allocate and verify a struct shdr.
Reviewed-by: Volodymyr Babchuk <vlad.babchuk@gmail.com> Reviewed-by: Jerome Fo
core: crypto: add struct shdr helper functions
Adds struct shdr helper functions to allocate and verify a struct shdr.
Reviewed-by: Volodymyr Babchuk <vlad.babchuk@gmail.com> Reviewed-by: Jerome Forissier <jerome.forissier@linaro.org> Signed-off-by: Jens Wiklander <jens.wiklander@linaro.org>
show more ...
|
| 82b5346d | 28-Nov-2017 |
Jens Wiklander <jens.wiklander@linaro.org> |
core: add shdr type SHDR_BOOTSTRAP_TA
Adds a signed header type for bootstrap TA. This type is used when there isn't any security domains installed yet.
Reviewed-by: Volodymyr Babchuk <vlad.babchuk
core: add shdr type SHDR_BOOTSTRAP_TA
Adds a signed header type for bootstrap TA. This type is used when there isn't any security domains installed yet.
Reviewed-by: Volodymyr Babchuk <vlad.babchuk@gmail.com> Reviewed-by: Jerome Forissier <jerome.forissier@linaro.org> Signed-off-by: Jens Wiklander <jens.wiklander@linaro.org>
show more ...
|
| e98e3c87 | 28-Nov-2017 |
Jens Wiklander <jens.wiklander@linaro.org> |
core: provide tee_svc_storage_file_ops()
Reviewed-by: Volodymyr Babchuk <vlad.babchuk@gmail.com> Reviewed-by: Jerome Forissier <jerome.forissier@linaro.org> Signed-off-by: Jens Wiklander <jens.wikla
core: provide tee_svc_storage_file_ops()
Reviewed-by: Volodymyr Babchuk <vlad.babchuk@gmail.com> Reviewed-by: Jerome Forissier <jerome.forissier@linaro.org> Signed-off-by: Jens Wiklander <jens.wiklander@linaro.org>
show more ...
|
| 09eedd2d | 28-Nov-2017 |
Jens Wiklander <jens.wiklander@linaro.org> |
core: fs_htree: bugfix creating empty file
Fixes problem with creating an empty htree file.
Reviewed-by: Volodymyr Babchuk <vlad.babchuk@gmail.com> Acked-by: Jerome Forissier <jerome.forissier@lina
core: fs_htree: bugfix creating empty file
Fixes problem with creating an empty htree file.
Reviewed-by: Volodymyr Babchuk <vlad.babchuk@gmail.com> Acked-by: Jerome Forissier <jerome.forissier@linaro.org> Signed-off-by: Jens Wiklander <jens.wiklander@linaro.org>
show more ...
|
| b97e9666 | 28-Nov-2017 |
Jens Wiklander <jens.wiklander@linaro.org> |
core: add refcount routines
Adds refcount_inc() and refcount_dec()
Reviewed-by: Volodymyr Babchuk <vlad.babchuk@gmail.com> Reviewed-by: Jerome Forissier <jerome.forissier@linaro.org> Signed-off-by:
core: add refcount routines
Adds refcount_inc() and refcount_dec()
Reviewed-by: Volodymyr Babchuk <vlad.babchuk@gmail.com> Reviewed-by: Jerome Forissier <jerome.forissier@linaro.org> Signed-off-by: Jens Wiklander <jens.wiklander@linaro.org>
show more ...
|
| 2a1bec15 | 25-Nov-2017 |
Peng Fan <peng.fan@nxp.com> |
core: imx: add i.MX6SX Sabreauto support
Add i.MX6SX Sabreauto support.
Signed-off-by: Peng Fan <peng.fan@nxp.com> Acked-by: Jerome Forissier <jerome.forissier@linaro.org> Acked-by: Jens Wiklander
core: imx: add i.MX6SX Sabreauto support
Add i.MX6SX Sabreauto support.
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 ...
|
| c0dd4b67 | 24-Nov-2017 |
Jens Wiklander <jens.wiklander@linaro.org> |
core: add negative tests for htree
Adds negative test for htree.
Reviewed-by: Jerome Forissier <jerome.forissier@linaro.org> Tested-by: Jens Wiklander <jens.wiklander@linaro.org> (QEMU) Signed-off-
core: add negative tests for htree
Adds negative test for htree.
Reviewed-by: Jerome Forissier <jerome.forissier@linaro.org> Tested-by: Jens Wiklander <jens.wiklander@linaro.org> (QEMU) Signed-off-by: Jens Wiklander <jens.wiklander@linaro.org>
show more ...
|
| 1c5fdd1f | 27-Nov-2017 |
Jerome Forissier <jerome.forissier@linaro.org> |
core/crypto/crypto.c: fix compile errors when _CFG_CRYPTO_WITH_CIPHER=n
Although _CFG_CRYPTO_WITH_CIPHER=n does not seem to be a valid configuration (both the REE and RPMB FS use AES and at least on
core/crypto/crypto.c: fix compile errors when _CFG_CRYPTO_WITH_CIPHER=n
Although _CFG_CRYPTO_WITH_CIPHER=n does not seem to be a valid configuration (both the REE and RPMB FS use AES and at least one has to be enabled currently), fix build errors triggered by:
make _CFG_CRYPTO_WITH_CIPHER=n \ out/arm-plat-vexpress/core/crypto/crypto.o
Signed-off-by: Jerome Forissier <jerome.forissier@linaro.org> Reviewed-by: Jens Wiklander <jens.wiklander@linaro.org>
show more ...
|
| 947cfeec | 21-Nov-2017 |
Jens Wiklander <jens.wiklander@linaro.org> |
core: pager: use new aes-gcm implementation
Pager switches to use the new internal accelerated AES-GCM implementation instead of the old software only implementation.
Reviewed-by: Jerome Forissier
core: pager: use new aes-gcm implementation
Pager switches to use the new internal accelerated AES-GCM implementation instead of the old software only implementation.
Reviewed-by: Jerome Forissier <jerome.forissier@linaro.org> Tested-by: Jens Wiklander <jens.wiklander@linaro.org> (QEMU, Hikey) Signed-off-by: Jens Wiklander <jens.wiklander@linaro.org>
show more ...
|
| 043411e5 | 21-Nov-2017 |
Jens Wiklander <jens.wiklander@linaro.org> |
core: crypto: AES-GCM: internal_aes_gcm_{enc,dec}()
Adds internal_aes_gcm_enc() and internal_aes_gcm_dec() for encrypting/decrypting a complete message with an external expanded key.
Acked-by: Jero
core: crypto: AES-GCM: internal_aes_gcm_{enc,dec}()
Adds internal_aes_gcm_enc() and internal_aes_gcm_dec() for encrypting/decrypting a complete message with an external expanded key.
Acked-by: Jerome Forissier <jerome.forissier@linaro.org> Signed-off-by: Jens Wiklander <jens.wiklander@linaro.org>
show more ...
|
| 54af8d67 | 21-Nov-2017 |
Jens Wiklander <jens.wiklander@linaro.org> |
core: crypto: AES-GCM: separate encryption key
Separates the AES (CTR) encryption key from the rest of the context to allow more efficient key handling.
Acked-by: Jerome Forissier <jerome.forissier
core: crypto: AES-GCM: separate encryption key
Separates the AES (CTR) encryption key from the rest of the context to allow more efficient key handling.
Acked-by: Jerome Forissier <jerome.forissier@linaro.org> Signed-off-by: Jens Wiklander <jens.wiklander@linaro.org>
show more ...
|