Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
core: fix weakness in shm registration
When core needs to validate content before it is used, core must first move the data in secure memory, then validate it (or not), then access validated data from secure memory only, not from original shared memory location. This change fixes mobj_reg_shm_alloc() so that it checks the validity of the registered reference after the references are copied into the secure memory. This change fixes mobj_mapped_shm_alloc() to use the shm buffer reference instead of the initial description still located in shared memory. Signed-off-by: Etienne Carriere <[email protected]> Reviewed-by: Jens Wiklander <[email protected]>
- Loading branch information