WSL2-Linux-Kernel/drivers/tee
Etienne Carriere 46d6ee12fa tee: check shm references are consistent in offset/size
[ Upstream commit ab9d3db5b3 ]

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: Alexandre Jutras <alexandre.jutras@nxp.com>
Signed-off-by: Etienne Carriere <etienne.carriere@linaro.org>
Signed-off-by: Jens Wiklander <jens.wiklander@linaro.org>
Signed-off-by: Sasha Levin <alexander.levin@microsoft.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2018-06-21 04:02:54 +09:00
..
optee optee: fix invalid of_node_put() in optee_driver_init() 2017-12-25 14:26:24 +01:00
Kconfig
Makefile License cleanup: add SPDX GPL-2.0 license identifier to files with no license 2017-11-02 11:10:55 +01:00
tee_core.c tee: check shm references are consistent in offset/size 2018-06-21 04:02:54 +09:00
tee_private.h
tee_shm.c tee: shm: fix use-after-free via temporarily dropped reference 2018-05-22 18:53:57 +02:00
tee_shm_pool.c