tee: check shm references are consistent in offset/size
This change prevents userland from referencing TEE shared memory outside the area initially allocated by its owner. Prior this change an application could not reference or access memory it did not own but it could reference memory not explicitly allocated by owner but still allocated to the owner due to the memory allocation granule. Reported-by: NAlexandre Jutras <alexandre.jutras@nxp.com> Signed-off-by: NEtienne Carriere <etienne.carriere@linaro.org> Signed-off-by: NJens Wiklander <jens.wiklander@linaro.org>
Showing
想要评论请 注册 或 登录