Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
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 cc6bc5f ("core: verify size of allocated shared memory") which was lost with Fixes: 2786f14 ("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 <[email protected]> Reviewed-by: Patrik Lantz <[email protected]> Acked-by: Jerome Forissier <[email protected]> Signed-off-by: Jens Wiklander <[email protected]>
- Loading branch information