| c828ecea | 23-Nov-2018 |
Etienne Carriere <etienne.carriere@linaro.org> |
core: helper for device tree compilation
Add helper function gen-dtb-file in the build sequence. It generates a DTB file from input DTS file. The DTS file is preprocessed with CPP before being compi
core: helper for device tree compilation
Add helper function gen-dtb-file in the build sequence. It generates a DTB file from input DTS file. The DTS file is preprocessed with CPP before being compiled using the device tree compiler (DTC).
Signed-off-by: Etienne Carriere <etienne.carriere@linaro.org> Reviewed-by: Jerome Forissier <jerome.forissier@linaro.org> Acked-by: Jens Wiklander <jens.wiklander@linaro.org>
show more ...
|
| a67a20cb | 23-Nov-2018 |
Jens Wiklander <jens.wiklander@linaro.org> |
core: fix bug in vm_map() causing pager panic()
Prior to this patch vm_map() didn't allocate new page tables (PGTs) as needed, it only checked that it later would be possible to allocate the needed
core: fix bug in vm_map() causing pager panic()
Prior to this patch vm_map() didn't allocate new page tables (PGTs) as needed, it only checked that it later would be possible to allocate the needed PGTs. This is enough if the user_ta_ctx (UTC) isn't active. With dynamically linked libraries the UTC will be active when vm_map() is called to make room for the new segments. If the already allocated PGTs happen to cover even the new memory range it will still work, this is normally the case with CFG_WITH_LPAE=y since each page table covers 2 MiB. With CFG_WITH_LPAE=n the page tables only covers 1 MiB and that's not enough when loading the os_test TA in xtest case 1006.
This patch fixes the problem by instead of just checking that it later will be possible to allocate needed PGTs, it also allocates the PGTs if the UTC is active.
Acked-by: Etienne Carriere <etienne.carriere@linaro.org> Signed-off-by: Jens Wiklander <jens.wiklander@linaro.org>
show more ...
|
| a01855fd | 20-Nov-2018 |
Jens Wiklander <jens.wiklander@linaro.org> |
core: remove MOBJ_INVALID_COOKIE
Removes MOBJ_INVALID_COOKIE which resulted in an unexpected ABI change against the normal world driver. Instead 0 is continued to be used as an invalid/absent cookie
core: remove MOBJ_INVALID_COOKIE
Removes MOBJ_INVALID_COOKIE which resulted in an unexpected ABI change against the normal world driver. Instead 0 is continued to be used as an invalid/absent cookie value.
Tested-by: Sumit Garg <sumit.garg@linaro.org> Acked-by: Jerome Forissier <jerome.forissier@linaro.org> Reported-by: Sumit Garg <sumit.garg@linaro.org> Fixes: cd278f78382b ("core: simplify shm cookie handling") Signed-off-by: Jens Wiklander <jens.wiklander@linaro.org>
show more ...
|
| b31756b3 | 15-Nov-2018 |
Jerome Forissier <jerome.forissier@linaro.org> |
lib.mk: centralize profiling flag (-pg)
Code cleanup, no functional change. This commit avoids the duplication of the -pg flag in the library makefiles.
Signed-off-by: Jerome Forissier <jerome.fori
lib.mk: centralize profiling flag (-pg)
Code cleanup, no functional change. This commit avoids the duplication of the -pg flag in the library makefiles.
Signed-off-by: Jerome Forissier <jerome.forissier@linaro.org> Acked-by: Jens Wiklander <jens.wiklander@linaro.org>
show more ...
|
| abb61b0e | 15-Nov-2018 |
Jerome Forissier <jerome.forissier@linaro.org> |
zlib: fix compiler warning
GCC 8.x warns when building core/lib/zlib/inflate.c:
$ make PLATFORM=hikey-hikey960 out/arm-plat-hikey/core/lib/zlib/inflate.o [...] core/lib/zlib/inflate.c: In functi
zlib: fix compiler warning
GCC 8.x warns when building core/lib/zlib/inflate.c:
$ make PLATFORM=hikey-hikey960 out/arm-plat-hikey/core/lib/zlib/inflate.o [...] core/lib/zlib/inflate.c: In function ‘inflate’: core/lib/zlib/inflate.c:842:25: warning: this statement may fall through [-Wimplicit-fallthrough=] state->mode = DICT; ~~~~~~~~~~~~^~~~~~ core/lib/zlib/inflate.c:843:9: note: here case DICT: ^~~~ [...]
Fix that by adding some /* Fall through */ comments.
Signed-off-by: Jerome Forissier <jerome.forissier@linaro.org> Acked-by: Jens Wiklander <jens.wiklander@linaro.org>
show more ...
|
| 017dfaf8 | 13-Nov-2018 |
Gabor Szekely <szvgabor@gmail.com> |
mk/config.mk: default enable CFG_CRYPTO_RSASSA_NA1
Enable the TEE_ALG_RSASSA_PKCS1_V1_5 extension by default.
Acked-by: Jerome Forissier <jerome.forissier@linaro.org> Signed-off-by: Gabor Szekely <
mk/config.mk: default enable CFG_CRYPTO_RSASSA_NA1
Enable the TEE_ALG_RSASSA_PKCS1_V1_5 extension by default.
Acked-by: Jerome Forissier <jerome.forissier@linaro.org> Signed-off-by: Gabor Szekely <szvgabor@gmail.com>
show more ...
|
| bdf65965 | 16-Sep-2018 |
Gabor Szekely <szvgabor@gmail.com> |
documentation: extensions: add TEE_ALG_RSASSA_V1_5
Add documentation for the the TEE_ALG_RSASSA_V1_5 extension.
Reviewed-by: Jens Wiklander <jens.wiklander@linaro.org> Signed-off-by: Gabor Szekely
documentation: extensions: add TEE_ALG_RSASSA_V1_5
Add documentation for the the TEE_ALG_RSASSA_V1_5 extension.
Reviewed-by: Jens Wiklander <jens.wiklander@linaro.org> Signed-off-by: Gabor Szekely <szvgabor@gmail.com>
show more ...
|
| 6a2e0a9f | 14-Sep-2018 |
Gabor Szekely <szvgabor@gmail.com> |
utee: support prehashed RSA sign/ver without ASN.1
Add TEE Core Internal API extension TEE_ALG_RSASSA_PKCS1_V1_5 to sign/verify pre-hashed PKCS#1 v1.5 EMSA without ASN.1 around the hash. This relies
utee: support prehashed RSA sign/ver without ASN.1
Add TEE Core Internal API extension TEE_ALG_RSASSA_PKCS1_V1_5 to sign/verify pre-hashed PKCS#1 v1.5 EMSA without ASN.1 around the hash. This relies on libtomcrypt LTC_PKCS_1_V1_5_NA1. The extension can be turned on with CFG_CRYPTO_RSASSA_NA1.
Reviewed-by: Jens Wiklander <jens.wiklander@linaro.org> Signed-off-by: Gabor Szekely <szvgabor@gmail.com>
show more ...
|
| 56859c53 | 14-Sep-2018 |
Gabor Szekely <szvgabor@gmail.com> |
core: crypto: add TEE_ALG_RSASSA_PKCS1_V1_5
This change integrates the LTC_PKCS_1_V1_5_NA1 into OPTEE as an extension as TEE_ALG_RSASSA_PKCS1_V1_5. This scheme allows to do PKCS#1 v1.5 EMSA without
core: crypto: add TEE_ALG_RSASSA_PKCS1_V1_5
This change integrates the LTC_PKCS_1_V1_5_NA1 into OPTEE as an extension as TEE_ALG_RSASSA_PKCS1_V1_5. This scheme allows to do PKCS#1 v1.5 EMSA without ASN.1 around the hash. It is used for implementing the pkcs#11 CKM_RSA_PKCS mechanism for signing and verifying in SKS.
Reviewed-by: Jens Wiklander <jens.wiklander@linaro.org> Signed-off-by: Gabor Szekely <szvgabor@gmail.com>
show more ...
|
| e1b4b7ed | 14-Sep-2018 |
Gabor Szekely <szvgabor@gmail.com> |
libtomcrypt: port LTC_PKCS_1_V1_5_NA1 from ltc v1.18.2
This change ports LTC_PKCS_1_V1_5_NA1 from libtomcrypt v1.18.2. This scheme allows to do PKCS#1 v1.5 EMSA without ASN.1 around the hash. It is
libtomcrypt: port LTC_PKCS_1_V1_5_NA1 from ltc v1.18.2
This change ports LTC_PKCS_1_V1_5_NA1 from libtomcrypt v1.18.2. This scheme allows to do PKCS#1 v1.5 EMSA without ASN.1 around the hash. It is used for implementing the pkcs#11 CKM_RSA_PKCS mechanism for signing and verifying in SKS. This commit is a cherry pick of aa4bae5ae9a2 from the libtomcrypt repository.
Link: <https://github.com/libtom/libtomcrypt/commit/aa4bae5ae9a2>
Acked-by: Jens Wiklander <jens.wiklander@linaro.org> Signed-off-by: Gabor Szekely <szvgabor@gmail.com>
show more ...
|
| 6009538c | 24-Oct-2018 |
Jens Wiklander <jens.wiklander@linaro.org> |
core: introduce generic optee_rpc_cmd.h
Replaces the OPTEE_MSG RPC command protocol descriptions in optee_msg.h and optee_msg_supplicant with a generic optee_rpc_cmd.h. Defined names are also refact
core: introduce generic optee_rpc_cmd.h
Replaces the OPTEE_MSG RPC command protocol descriptions in optee_msg.h and optee_msg_supplicant with a generic optee_rpc_cmd.h. Defined names are also refactored to mirror the new structure.
Acked-by: Etienne Carriere <etienne.carriere@linaro.org> Reviewed-by: Jerome Forissier <jerome.forissier@linaro.org> Signed-off-by: Jens Wiklander <jens.wiklander@linaro.org>
show more ...
|
| 19c8abe1 | 23-Oct-2018 |
Jens Wiklander <jens.wiklander@linaro.org> |
core: pta/gprof.c: get rid of init_memparam()
Acked-by: Etienne Carriere <etienne.carriere@linaro.org> Reviewed-by: Jerome Forissier <jerome.forissier@linaro.org> Signed-off-by: Jens Wiklander <jens
core: pta/gprof.c: get rid of init_memparam()
Acked-by: Etienne Carriere <etienne.carriere@linaro.org> Reviewed-by: Jerome Forissier <jerome.forissier@linaro.org> Signed-off-by: Jens Wiklander <jens.wiklander@linaro.org>
show more ...
|
| 7c350378 | 22-Oct-2018 |
Jens Wiklander <jens.wiklander@linaro.org> |
core: tadb.c: get rid of init_memparam()
Acked-by: Etienne Carriere <etienne.carriere@linaro.org> Reviewed-by: Jerome Forissier <jerome.forissier@linaro.org> Signed-off-by: Jens Wiklander <jens.wikl
core: tadb.c: get rid of init_memparam()
Acked-by: Etienne Carriere <etienne.carriere@linaro.org> Reviewed-by: Jerome Forissier <jerome.forissier@linaro.org> Signed-off-by: Jens Wiklander <jens.wiklander@linaro.org>
show more ...
|
| f4feeeef | 22-Oct-2018 |
Jens Wiklander <jens.wiklander@linaro.org> |
core: tee_fs_rpc.c get rid of init_memparam()
Acked-by: Etienne Carriere <etienne.carriere@linaro.org> Reviewed-by: Jerome Forissier <jerome.forissier@linaro.org> Signed-off-by: Jens Wiklander <jens
core: tee_fs_rpc.c get rid of init_memparam()
Acked-by: Etienne Carriere <etienne.carriere@linaro.org> Reviewed-by: Jerome Forissier <jerome.forissier@linaro.org> Signed-off-by: Jens Wiklander <jens.wiklander@linaro.org>
show more ...
|
| 05aaaa3b | 19-Oct-2018 |
Jens Wiklander <jens.wiklander@linaro.org> |
core: pta_socket.c: simplify struct thread_param
Simplify struct thread_param usage in PTA socket with direct initialization.
Acked-by: Etienne Carriere <etienne.carriere@linaro.org> Acked-by: Jero
core: pta_socket.c: simplify struct thread_param
Simplify struct thread_param usage in PTA socket with direct initialization.
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 ...
|
| 4cdeb627 | 19-Oct-2018 |
Jens Wiklander <jens.wiklander@linaro.org> |
core: msg_param: remove unused functions
Removes the unused functions msg_param_init_memparam() and msg_param_get_buf_size().
Acked-by: Etienne Carriere <etienne.carriere@linaro.org> Acked-by: Jero
core: msg_param: remove unused functions
Removes the unused functions msg_param_init_memparam() and msg_param_get_buf_size().
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 ...
|
| 13eb4e3c | 19-Oct-2018 |
Jens Wiklander <jens.wiklander@linaro.org> |
core: use struct thread_param for RPC
Use struct thread_param as an abstraction of the parameters used for RPC.
Acked-by: Etienne Carriere <etienne.carriere@linaro.org> Acked-by: Jerome Forissier <
core: use struct thread_param for RPC
Use struct thread_param as an abstraction of the parameters used for RPC.
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 ...
|
| a3a309a8 | 14-Nov-2018 |
Jerome Forissier <jerome.forissier@linaro.org> |
ci: travis: run pycodestyle on Python scripts
We want to enforce PEP 8 -- Style Guide for Python Code [1]. Therefore, use the pycodestyle tool in the Travis CI script.
Link: [1] https://www.python.
ci: travis: run pycodestyle on Python scripts
We want to enforce PEP 8 -- Style Guide for Python Code [1]. Therefore, use the pycodestyle tool in the Travis CI script.
Link: [1] https://www.python.org/dev/peps/pep-0008/ Signed-off-by: Jerome Forissier <jerome.forissier@linaro.org> Acked-by: Jens Wiklander <jens.wiklander@linaro.org>
show more ...
|
| c51c4e1d | 14-Nov-2018 |
Jerome Forissier <jerome.forissier@linaro.org> |
ta_bin_to_c.py: fix issues reported by pycodestyle and re-indent
Fixes issues reported by: pycodestyle ta_bin_to_c.py and re-indent (4 spaces). Patch obtained by running: autopep8 -i -a -a ta_bin_to
ta_bin_to_c.py: fix issues reported by pycodestyle and re-indent
Fixes issues reported by: pycodestyle ta_bin_to_c.py and re-indent (4 spaces). Patch obtained by running: autopep8 -i -a -a ta_bin_to_c.py.
Signed-off-by: Jerome Forissier <jerome.forissier@linaro.org> Acked-by: Jens Wiklander <jens.wiklander@linaro.org>
show more ...
|
| e06fa025 | 14-Nov-2018 |
Jerome Forissier <jerome.forissier@linaro.org> |
tee_bin_parser.py: fix issues reported by pycodestyle
Fixes issues reported by: pycodestyle tee_bin_parser.py. Patch obtained by running: autopep8 -i tee_bin_parser.py.
Signed-off-by: Jerome Foriss
tee_bin_parser.py: fix issues reported by pycodestyle
Fixes issues reported by: pycodestyle tee_bin_parser.py. Patch obtained by running: autopep8 -i tee_bin_parser.py.
Signed-off-by: Jerome Forissier <jerome.forissier@linaro.org> Acked-by: Jens Wiklander <jens.wiklander@linaro.org>
show more ...
|
| 6e7c2e91 | 14-Nov-2018 |
Jerome Forissier <jerome.forissier@linaro.org> |
symbolize.py: fix issues reported by pycodestyle and re-indent
Fixes issues reported by: pycodestyle symbolize.py and re-indent (4 spaces). Patch obtained by running: autopep8 -i -a -a symbolize.py
symbolize.py: fix issues reported by pycodestyle and re-indent
Fixes issues reported by: pycodestyle symbolize.py and re-indent (4 spaces). Patch obtained by running: autopep8 -i -a -a symbolize.py (autopep8 v1.4.3). In addition, add missing 'r' (raw string) in regular expressions. pycodestyle complains about invalid escape sequences otherwise.
Signed-off-by: Jerome Forissier <jerome.forissier@linaro.org> Acked-by: Jens Wiklander <jens.wiklander@linaro.org>
show more ...
|
| 4a47792e | 14-Nov-2018 |
Jerome Forissier <jerome.forissier@linaro.org> |
sign.py: fix issues reported by pycodestyle
Adds missing blank line.
Signed-off-by: Jerome Forissier <jerome.forissier@linaro.org> Acked-by: Jens Wiklander <jens.wiklander@linaro.org> |
| 049aefa8 | 14-Nov-2018 |
Jerome Forissier <jerome.forissier@linaro.org> |
pem_to_pub_c.py: fix issues reported by pycodestyle and re-indent
Fixes issues reported by: pycodestyle pem_to_pub_c.py and re-indent (4 spaces). Patch obtained by running: autopep8 -i -a -a pem_to_
pem_to_pub_c.py: fix issues reported by pycodestyle and re-indent
Fixes issues reported by: pycodestyle pem_to_pub_c.py and re-indent (4 spaces). Patch obtained by running: autopep8 -i -a -a pem_to_pub_c.py.
Signed-off-by: Jerome Forissier <jerome.forissier@linaro.org> Acked-by: Jens Wiklander <jens.wiklander@linaro.org>
show more ...
|
| 146cbc4f | 14-Nov-2018 |
Jerome Forissier <jerome.forissier@linaro.org> |
mem_usage.py: fix issues reported by pycodestyle
Fixes issues reported by: pycodestyle mem_usage.py. Patch obtained by running: autopep8 -i -a mem_usage.py.
Signed-off-by: Jerome Forissier <jerome.
mem_usage.py: fix issues reported by pycodestyle
Fixes issues reported by: pycodestyle mem_usage.py. Patch obtained by running: autopep8 -i -a mem_usage.py.
Signed-off-by: Jerome Forissier <jerome.forissier@linaro.org> Acked-by: Jens Wiklander <jens.wiklander@linaro.org>
show more ...
|
| 51f42eb0 | 14-Nov-2018 |
Jerome Forissier <jerome.forissier@linaro.org> |
gen_ld_sects.py: fix issues reported by pycodestyle and re-indent
Fixes issues reported by: pycodestyle gen_ld_sects.py and re-indent (4 spaces). Patch obtained by running: autopep8 -i gen_ld_sects.
gen_ld_sects.py: fix issues reported by pycodestyle and re-indent
Fixes issues reported by: pycodestyle gen_ld_sects.py and re-indent (4 spaces). Patch obtained by running: autopep8 -i gen_ld_sects.py.
Signed-off-by: Jerome Forissier <jerome.forissier@linaro.org> Acked-by: Jens Wiklander <jens.wiklander@linaro.org>
show more ...
|