Searched hist:"4 ed45027f507fb7693ff43b01b9c3299d5440eb0" (Results 1 – 2 of 2) sorted by relevance
| /optee_os/core/arch/arm/kernel/ |
| H A D | thread_optee_smc.c | 4ed45027f507fb7693ff43b01b9c3299d5440eb0 Thu Oct 21 08:50:18 UTC 2021 Jens Wiklander <jens.wiklander@linaro.org> core: verify size of allocated shared memory
Makes sure that normal world cannot change the size of allocated shared memory, resulting in a smaller buffer being allocated.
This reintroduces cc6bc5f94210 ("core: verify size of allocated shared memory") which was lost with Fixes: 2786f1438fc8 ("core: thread: separate old SMC interface handling"). In addition is the READ_ONCE() macro is used when reading the returned size from non-secure shared memory.
Since then we have a separate set of functions to deal with RPC when communicating with FF-A. A corresponding size check is added for the FF-A version of thread_rpc_alloc().
Reported-by: Patrik Lantz <patrik.lantz@axis.com> Reviewed-by: Patrik Lantz <patrik.lantz@axis.com> Acked-by: Jerome Forissier <jerome@forissier.org> Signed-off-by: Jens Wiklander <jens.wiklander@linaro.org>
|
| H A D | thread_spmc.c | 4ed45027f507fb7693ff43b01b9c3299d5440eb0 Thu Oct 21 08:50:18 UTC 2021 Jens Wiklander <jens.wiklander@linaro.org> core: verify size of allocated shared memory
Makes sure that normal world cannot change the size of allocated shared memory, resulting in a smaller buffer being allocated.
This reintroduces cc6bc5f94210 ("core: verify size of allocated shared memory") which was lost with Fixes: 2786f1438fc8 ("core: thread: separate old SMC interface handling"). In addition is the READ_ONCE() macro is used when reading the returned size from non-secure shared memory.
Since then we have a separate set of functions to deal with RPC when communicating with FF-A. A corresponding size check is added for the FF-A version of thread_rpc_alloc().
Reported-by: Patrik Lantz <patrik.lantz@axis.com> Reviewed-by: Patrik Lantz <patrik.lantz@axis.com> Acked-by: Jerome Forissier <jerome@forissier.org> Signed-off-by: Jens Wiklander <jens.wiklander@linaro.org>
|