| tag | c8a31f4bc99a3dfbeaee373ee1d8341738f05813 | |
|---|---|---|
| tagger | Jens Wiklander <jens.wiklander@linaro.org> | Fri Jan 19 18:19:01 2024 +0100 |
| object | f7e4ced15d1fefd073bbfc484fe0e1f74afe96c2 |
4.1.0
| commit | f7e4ced15d1fefd073bbfc484fe0e1f74afe96c2 | [log] [tgz] |
|---|---|---|
| author | Jorge Ramirez-Ortiz <jorge@foundries.io> | Tue Jan 16 09:12:40 2024 +0100 |
| committer | Jérôme Forissier <jerome@forissier.org> | Tue Jan 16 14:16:58 2024 +0100 |
| tree | aa44e4f4f9ab96ee26e2f472252863c85f67c7e2 | |
| parent | 333e51280497722c7f466b1c7905a3fd76290d6a [diff] |
teec: do fail on MAX_SIZE allocation requests
The variable aligned_sz will be 0 when the requested sz is MAX_SIZE.
Since posix_memalign can return a valid pointer for zero size
allocations, share memory registration requests for MAX_SIZE might make
it to the kernel.
This PR stops it early - just as it was before "teec: use multiple of
page size for page aligned buffers" was merged.
Fixes: acb0885c117e ("teec: use multiple of page size for page aligned buffers")
Signed-off-by: Jorge Ramirez-Ortiz <jorge@foundries.io>
Reviewed-by: Jens Wiklander <jens.wiklander@linaro.org>
This git contains source code for the non-secure side implementation of the OP-TEE project making up the client library and tee-supplicant.
All official OP-TEE documentation has moved to http://optee.readthedocs.io. The information that used to be here in this git can be found under optee_client.
// OP-TEE core maintainers