]> git.proxmox.com Git - mirror_ubuntu-disco-kernel.git/commit
tee: check shm references are consistent in offset/size
authorEtienne Carriere <etienne.carriere@linaro.org>
Sun, 29 Apr 2018 12:22:29 +0000 (14:22 +0200)
committerJens Wiklander <jens.wiklander@linaro.org>
Mon, 7 May 2018 09:51:03 +0000 (11:51 +0200)
commitab9d3db5b320a052452b9cd035599ee3c84bbee9
tree41c4ef6155959ccda3362333a230de20193bce0e
parentbb765d1c331f62b59049d35607ed2e365802bef9
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: Alexandre Jutras <alexandre.jutras@nxp.com>
Signed-off-by: Etienne Carriere <etienne.carriere@linaro.org>
Signed-off-by: Jens Wiklander <jens.wiklander@linaro.org>
drivers/tee/tee_core.c