| d87d5ede | 15-Jun-2015 |
Peng Fan <van.freenix@gmail.com> |
core: mm: fix adding integer overflow issue
On ARMv7 platform, it is easy that "base + size" wraps down to 0. For example, base is 0xfc100000, size is 0x3f00000, then base + size is 0. We should use
core: mm: fix adding integer overflow issue
On ARMv7 platform, it is easy that "base + size" wraps down to 0. For example, base is 0xfc100000, size is 0x3f00000, then base + size is 0. We should use the "end" address to do the comparation, but not "end + 1".
This patch also can be used for ARMv8.
Signed-off-by: Peng Fan <van.freenix@gmail.com> Reviewed-by: Joakim Bech <joakim.bech@linaro.org> Reviewed-by: Pascal Brand <pascal.brand@linaro.org> Tested-by: Pascal Brand <pascal.brand@linaro.org> (QEMU platform) Tested-by: Jerome Forissier <jerome.forissier@linaro.org> (HiKey 32/64-bit)
show more ...
|
| 5cb14d45 | 28-May-2015 |
Jens Wiklander <jens.wiklander@linaro.org> |
core: preallocate RPC argument
Preallocates an RPC argument structure when starting a new thread. Since a thread can only have one active RPC at a time it's enough to allocate one RPC argument for a
core: preallocate RPC argument
Preallocates an RPC argument structure when starting a new thread. Since a thread can only have one active RPC at a time it's enough to allocate one RPC argument for all RPC during the lifetime of the thread. The preallocated RPC argument is used internally by thread_rpc_cmd(). This simplifies all calls to thread_rpc_cmd().
Signed-off-by: Jens Wiklander <jens.wiklander@linaro.org> Tested-by: Jens Wiklander <jens.wiklander@linaro.org> (QEMU) Reviewed-by: Pascal Brand <pascal.brand@linaro.org>
show more ...
|
| bc4de313 | 10-Jun-2015 |
Peng Fan <van.freenix@gmail.com> |
arm32: core_mmu_v7 clear tbl_info.table before use
Clear tlb_info.table before use, because there maybe junk data in this area. If not, system may crash when setting ttbr0 as following: core_mmu_se
arm32: core_mmu_v7 clear tbl_info.table before use
Clear tlb_info.table before use, because there maybe junk data in this area. If not, system may crash when setting ttbr0 as following: core_mmu_set_user_map->write_ttbr0(map->ttbr0);
Signed-off-by: Peng Fan <van.freenix@gmail.com> Reviewed-by: Pascal Brand <pascal.brand@linaro.org> Tested-by: Pascal Brand <pascal.brand@linaro.org> (QEMU) Reviewed-by: Jens Wiklander <jens.wiklander@linaro.org>
show more ...
|
| 4e38d10c | 01-Jun-2015 |
Jerome Forissier <jerome.forissier@linaro.org> |
arm64: rewrite register access functions with macros
Reduces code duplication.
Signed-off-by: Jerome Forissier <jerome.forissier@linaro.org> Reviewed-by: Jens Wiklander <jens.wiklander@linaro.org>
arm64: rewrite register access functions with macros
Reduces code duplication.
Signed-off-by: Jerome Forissier <jerome.forissier@linaro.org> Reviewed-by: Jens Wiklander <jens.wiklander@linaro.org> Reviewed-by: Pascal Brand <pascal.brand@linaro.org>
show more ...
|
| 84431ae3 | 22-Apr-2015 |
Cedric Chaumont <cedric.chaumont@st.com> |
GP Internal Core API v1.1 : TEE_CreatePersistentObject
Deprecated TEE_DATA_FLAG_EXCLUSIVE Replaced by TEE__DATA_FLAG_OVERWRITE
Signed-off-by: Cedric Chaumont <cedric.chaumont@st.com> Reviewed-by: J
GP Internal Core API v1.1 : TEE_CreatePersistentObject
Deprecated TEE_DATA_FLAG_EXCLUSIVE Replaced by TEE__DATA_FLAG_OVERWRITE
Signed-off-by: Cedric Chaumont <cedric.chaumont@st.com> Reviewed-by: Jens Wiklander <jens.wiklander@linaro.org> Reviewed-by: Pascal Brand <pascal.brand@linaro.org> Tested-by: Cedric Chaumont <cedric.chaumont@linaro.org> (STM boards) Tested-by: Cedric Chaumont <cedric.chaumont@linaro.org> (ARM Juno board)
show more ...
|
| 11d59085 | 05-Jun-2015 |
Pascal Brand <pascal.brand@st.com> |
Release note of 0.3.0 and script updates
Signed-off-by: Pascal Brand <pascal.brand@st.com> |
| 432f1e65 | 05-Jun-2015 |
Jens Wiklander <jens.wiklander@linaro.org> |
arm: fixes FIQ problem with pager enabled
Fixes occasional FIQ problem when pager is enabled.
Signed-off-by: Jens Wiklander <jens.wiklander@linaro.org> Tested-by: Jens Wiklander <jens.wiklander@lin
arm: fixes FIQ problem with pager enabled
Fixes occasional FIQ problem when pager is enabled.
Signed-off-by: Jens Wiklander <jens.wiklander@linaro.org> Tested-by: Jens Wiklander <jens.wiklander@linaro.org> (Juno, qemu) Reviewed-by: Pascal Brand <pascal.brand@linaro.org>
show more ...
|
| 09f83108 | 08-Jun-2015 |
SY Chiu <sy.chiu@linaro.org> |
Add stable commit for mt8173 kernel patches
Signed-off-by: SY Chiu <sy.chiu@linaro.org> Tested-by: SY Chiu <sy.chiu@linaro.org> (MT8173 EVB) Reviewed-by: Pascal Brand <pascal.brand@linaro.org> |
| bc46c1c6 | 22-May-2015 |
Jerome Forissier <jerome.forissier@linaro.org> |
arm64: add support for NEON/VFP in TEE core (CFG_WITH_VFP=y)
Implements the state preservation functions for the Advanced SIMD and floating-point registers on AArch64. This is required to run floati
arm64: add support for NEON/VFP in TEE core (CFG_WITH_VFP=y)
Implements the state preservation functions for the Advanced SIMD and floating-point registers on AArch64. This is required to run floating- point, Advanced SIMD (a.k.a. NEON), or Cryptographic Extension instructions in the TEE core.
Signed-off-by: Jerome Forissier <jerome.forissier@linaro.org> Reviewed-by: Jens Wiklander <jens.wiklander@linaro.org> Reviewed-by: Pascal Brand <pascal.brand@linaro.org>
show more ...
|
| 8b75a7eb | 22-May-2015 |
Jerome Forissier <jerome.forissier@linaro.org> |
Remove unused function vfp_is_vpfinstr()
Signed-off-by: Jerome Forissier <jerome.forissier@linaro.org> Reviewed-by: Jens Wiklander <jens.wiklander@linaro.org> Reviewed-by: Pascal Brand <pascal.brand
Remove unused function vfp_is_vpfinstr()
Signed-off-by: Jerome Forissier <jerome.forissier@linaro.org> Reviewed-by: Jens Wiklander <jens.wiklander@linaro.org> Reviewed-by: Pascal Brand <pascal.brand@linaro.org>
show more ...
|
| ea7d638a | 01-Jun-2015 |
Pascal Brand <pascal.brand@st.com> |
Fix qemu script
Reviewed-by: Jens Wiklander <jens.wiklander@linaro.org> Signed-off-by: Pascal Brand <pascal.brand@st.com> |
| 53b342f4 | 26-May-2015 |
SY Chiu <sy.chiu@linaro.org> |
Move fail recovery logic to tee_fs_common.c
This patch tries to move REE filesystem operations to a common file (tee_fs_common.c), and let tee_enc_fs.c concentrated on file encryption and authentica
Move fail recovery logic to tee_fs_common.c
This patch tries to move REE filesystem operations to a common file (tee_fs_common.c), and let tee_enc_fs.c concentrated on file encryption and authentications.
For the atomic file operation (rollback to previous commit if operation failed), it can be handled in the common file. Both tee_fs.c and tee_enc_fs.c replied on tee_fs_common.c, thus both of them can gain atomicy property.
Signed-off-by: SY Chiu <sy.chiu@linaro.org> Tested-by: SY Chiu <sy.chiu@linaro.org> (QEMU) Tested-by: Pascal Brand <pascal.brand@linaro.org> (STM platform) Reviewed-by: Pascal Brand <pascal.brand@linaro.org> Reviewed-by: Joakim Bech <joakim.bech@linaro.org>
show more ...
|
| 52b792b4 | 18-May-2015 |
James Kung <james.kung@linaro.org> |
Fail recovery in encrypted file system
- File will be deleted if the file content of a new created file cannot be successfully encrypted and write back to normal world file system.
Signed-off-b
Fail recovery in encrypted file system
- File will be deleted if the file content of a new created file cannot be successfully encrypted and write back to normal world file system.
Signed-off-by: James Kung <james.kung@linaro.org> Reviewed-by: Pascal Brand <pascal.brand@linaro.org> Reviewed-by: Joakim Bech <joakim.bech@linaro.org> Reviewed-by: SY Chiu <sy.chiu@linaro.org> Tested-by: James Kung <james.kung@linaro.org> (QEMU) Tested-by: SY Chiu <sy.chiu@linaro.org> (QEMU) Tested-by: Pascal Brand <pascal.brand@linaro.org> (STM platform)
show more ...
|
| a8224611 | 16-Mar-2015 |
James Kung <james.kung@linaro.org> |
Enhancing Secure Storage
- Implement encrypted file system key manager * Key generation for SSK, FEK * Provide helper APIs to do file encryption/decryption * Finished key manager test cases fo
Enhancing Secure Storage
- Implement encrypted file system key manager * Key generation for SSK, FEK * Provide helper APIs to do file encryption/decryption * Finished key manager test cases for file encryption/decryption tests
- Implements encrypted file system operations file-based operation * file content is encrypted and MACed before storing on normal world file system. * file hole is not implemented because this is meaningless in the context of secure storage.
Signed-off-by: SY Chiu <sy.chiu@linaro.org> Signed-off-by: James Kung <james.kung@linaro.org> Reviewed-by: Pascal Brand <pascal.brand@linaro.org> Reviewed-by: Joakim Bech <joakim.bech@linaro.org> Tested-by: SY Chiu <sy.chiu@linaro.org> (QEMU) Tested-by: James Kung <james.kung@linaro.org> (QEMU) Tested-by: Pascal Brand <pascal.brand@linaro.org> (STM platform)
show more ...
|
| 7b59f16c | 29-May-2015 |
Pascal Brand <pascal.brand@st.com> |
Fix unaligned lo and hi in tee_mm_init
Fixes #304
Reviewed-by: Jens Wiklander <jens.wiklander@linaro.org> Signed-off-by: Pascal Brand <pascal.brand@st.com> |
| 058f4d12 | 28-May-2015 |
Pascal Brand <pascal.brand@st.com> |
build: remove conf-file from cleanvars.mk
conf-file and conf-mk-file are valid for core and lib compilation. These variables are set only once, when starting the building.
Without this patch, the v
build: remove conf-file from cleanvars.mk
conf-file and conf-mk-file are valid for core and lib compilation. These variables are set only once, when starting the building.
Without this patch, the variables are cleaned when compiling the libs. This affects the rules $(objs): $(conf-file) which forces the conf-file generation. In case of parallel build, if libs are compiled before the core, then conf-file is not created, which results in a compilation error.
Reviewed-by: Jerome Forissier <jerome.forissier@linaro.org> Reviewed-by: Jens Wiklander <jens.wiklander@linaro.org> Signed-off-by: Pascal Brand <pascal.brand@st.com>
show more ...
|
| 101c9d86 | 29-May-2015 |
Jerome Forissier <jerome.forissier@linaro.org> |
Fix objdump warning
If version.o is compiled with -g3, which is the case for several platforms since commit c974c7ddc7d8 ("plat-stm: use generic linker script") which introduces the use of $(platfor
Fix objdump warning
If version.o is compiled with -g3, which is the case for several platforms since commit c974c7ddc7d8 ("plat-stm: use generic linker script") which introduces the use of $(platform-cflags) when compiling version.o, objdump produces a warning:
$ make PLATFORM=vexpress-qemu_virt <...> OBJDUMP out/arm-plat-vexpress/core/tee.dmp BFD: Dwarf Error: mangled line number section.
The object file does not look right (or objdump does not decode it properly?):
$ arm-linux-gnueabihf-objdump -W out/arm-plat-vexpress/core/version.o \ >/dev/null arm-linux-gnueabihf-objdump: Warning: Badly formed extended line op encountered!
Just remove the offending flag to workaround the issue.
Signed-off-by: Jerome Forissier <jerome.forissier@linaro.org> Reviewed-by: Pascal Brand <pascal.brand@linaro.org> Tested-by: Pascal Brand <pascal.brand@linaro.org> (STM platform) Reviewed-by: Jens Wiklander <jens.wiklander@linaro.org>
show more ...
|
| 780f2a6a | 29-May-2015 |
Jerome Forissier <jerome.forissier@linaro.org> |
Fix pager
Commit c974c7ddc7d8 ("plat-stm: use generic linker script") breaks CFG_WITH_PAGER=y because it adds $(platform-cflags) to the C flags for version.o. This is correct, otherwise the compiler
Fix pager
Commit c974c7ddc7d8 ("plat-stm: use generic linker script") breaks CFG_WITH_PAGER=y because it adds $(platform-cflags) to the C flags for version.o. This is correct, otherwise the compiler may generate code that is not suitable for the platform (such as floating-point instructions when we don't expect them).
However, compiling version.o with $(platform-cflags) brings in -fdata-sections which has an unfortunate side effect: the object is not included in the non-pageable code unless we add it explicitely. This is what this commit does.
Signed-off-by: Jerome Forissier <jerome.forissier@linaro.org> Reviewed-by: Pascal Brand <pascal.brand@linaro.org> Reviewed-by: Jens Wiklander <jens.wiklander@linaro.org>
show more ...
|
| 3dc79b0d | 28-May-2015 |
Pascal Brand <pascal.brand@st.com> |
Build: fix silent mode with make 3.8x
With make 3.8x, in case of 'make all -s -w', MAKEFLAGS equals 'ws' This patch correctly catches the flag 's'
Reviewed-by: Jerome Forissier <jerome.forissier@li
Build: fix silent mode with make 3.8x
With make 3.8x, in case of 'make all -s -w', MAKEFLAGS equals 'ws' This patch correctly catches the flag 's'
Reviewed-by: Jerome Forissier <jerome.forissier@linaro.org> Reviewed-by: Jens Wiklander <jens.wiklander@linaro.org> Signed-off-by: Pascal Brand <pascal.brand@st.com>
show more ...
|
| c974c7dd | 19-May-2015 |
Pascal Brand <pascal.brand@st.com> |
plat-stm: use generic linker script
Reviewed-by: Jerome Forissier <jerome.forissier@linaro.org> Reviewed-by: Jens Wiklander <jens.wiklander@linaro.org> Tested-by: Pascal Brand <pascal.brand@linaro.o
plat-stm: use generic linker script
Reviewed-by: Jerome Forissier <jerome.forissier@linaro.org> Reviewed-by: Jens Wiklander <jens.wiklander@linaro.org> Tested-by: Pascal Brand <pascal.brand@linaro.org> (STM platform) Signed-off-by: Pascal Brand <pascal.brand@st.com>
show more ...
|
| 0957bcc5 | 19-May-2015 |
Pascal Brand <pascal.brand@st.com> |
plat-stm: CFG_GENERIC_BOOT=y
Reviewed-by: Jens Wiklander <jens.wiklander@linaro.org> Tested-by: Pascal Brand <pascal.brand@linaro.org> (STM platform) Tested-by: Pascal Brand <pascal.brand@linaro.org
plat-stm: CFG_GENERIC_BOOT=y
Reviewed-by: Jens Wiklander <jens.wiklander@linaro.org> Tested-by: Pascal Brand <pascal.brand@linaro.org> (STM platform) Tested-by: Pascal Brand <pascal.brand@linaro.org> (QEMU platform) Signed-off-by: Pascal Brand <pascal.brand@st.com>
show more ...
|
| c39b4f47 | 13-May-2015 |
Pascal Brand <pascal.brand@st.com> |
plat-stm: tz_sinit.c becomes very close to generic_entry_a32.S
Reviewed-by: Jens Wiklander <jens.wiklander@linaro.org> Signed-off-by: Pascal Brand <pascal.brand@st.com> |
| a2a23973 | 22-May-2015 |
Joakim Bech <joakim.bech@linaro.org> |
Doc: Adding ftrace documentation
Adding a section in the debug.md file that explains how to enable ftrace and use it for debugging the kernel module for OP-TEE.
Signed-off-by: Joakim Bech <joakim.b
Doc: Adding ftrace documentation
Adding a section in the debug.md file that explains how to enable ftrace and use it for debugging the kernel module for OP-TEE.
Signed-off-by: Joakim Bech <joakim.bech@linaro.org> Tested-by: Joakim Bech <joakim.bech@linaro.org> (QEMU, Hikey) Reviewed-by: Jens Wiklander <jens.wiklander@linaro.org> Reviewed-by: Pascal Brand <pascal.brand@linaro.org>
show more ...
|
| f825d00d | 22-May-2015 |
Jerome Forissier <jerome.forissier@linaro.org> |
build: use $(cmd-echo-silent) when linking TAs
With this commit, make -s is also silent when building TAs.
Signed-off-by: Jerome Forissier <jerome.forissier@linaro.org> Reviewed-by: Pascal Brand <p
build: use $(cmd-echo-silent) when linking TAs
With this commit, make -s is also silent when building TAs.
Signed-off-by: Jerome Forissier <jerome.forissier@linaro.org> Reviewed-by: Pascal Brand <pascal.brand@linaro.org> Reviewed-by: Joakim Bech <joakim.bech@linaro.org> Reviewed-by: Jens Wiklander <jens.wiklander@linaro.org>
show more ...
|
| 3f9149f1 | 22-May-2015 |
Jerome Forissier <jerome.forissier@linaro.org> |
Fix possible TA build error with make -j: "Directory nonexistent"
Signed-off-by: Jerome Forissier <jerome.forissier@linaro.org> Reviewed-by: Pascal Brand <pascal.brand@linaro.org> Reviewed-by: Jens
Fix possible TA build error with make -j: "Directory nonexistent"
Signed-off-by: Jerome Forissier <jerome.forissier@linaro.org> Reviewed-by: Pascal Brand <pascal.brand@linaro.org> Reviewed-by: Jens Wiklander <jens.wiklander@linaro.org> Reviewed-by: Joakim Bech <joakim.bech@linaro.org>
show more ...
|