android_kernel_sony_sdm845/drivers/tee
Repository files (latest commit first)
Filename Latest commit message Latest commit date
Dan Carpenter 7595d55001 BACKPORT: tee: shm: Potential NULL dereference calling tee_shm_register()
get_user_pages_fast() can return zero in certain error paths.  We should
handle that or else it means we accidentally return ERR_PTR(0) which is
NULL instead of an error pointer.  The callers are not expecting that
and will crash with a NULL dereference.

Change-Id: I5622affddeb1fc5e80ba6ccdbfdc77e129a2ca84
Fixes: 033ddf12bcf5 ("tee: add register user memory")
Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com>
Signed-off-by: Jens Wiklander <jens.wiklander@linaro.org>
(cherry picked from commit 2490cdf6435b1d3cac0dbf710cd752487c67c296)
Signed-off-by: Victor Chong <victor.chong@linaro.org>
2018-02-21 15:40:44 +00:00
..
optee BACKPORT: tee: optee: check type of registered shared memory 2018-02-21 15:40:43 +00:00
Kconfig BACKPORT: tee: add ARM_SMCCC dependency 2018-01-12 16:44:40 +00:00
Makefile
tee_core.c BACKPORT: tee: use reference counting for tee_context 2018-02-21 15:40:43 +00:00
tee_private.h BACKPORT: tee: use reference counting for tee_context 2018-02-21 15:40:43 +00:00
tee_shm.c BACKPORT: tee: shm: Potential NULL dereference calling tee_shm_register() 2018-02-21 15:40:44 +00:00
tee_shm_pool.c BACKPORT: tee: flexible shared memory pool creation 2018-02-21 15:40:42 +00:00