android_kernel_motorola_sm6375/drivers/tee
Repository files (latest commit first)
Filename Latest commit message Latest commit date
Sumit Garg 806142c805 tee: optee: Fix incorrect page free bug
commit 18549bf4b21c739a9def39f27dcac53e27286ab5 upstream.

Pointer to the allocated pages (struct page *page) has already
progressed towards the end of allocation. It is incorrect to perform
__free_pages(page, order) using this pointer as we would free any
arbitrary pages. Fix this by stop modifying the page pointer.

Fixes: ec185dd3ab25 ("optee: Fix memory leak when failing to register shm pages")
Cc: [email protected]
Reported-by: Patrik Lantz <[email protected]>
Signed-off-by: Sumit Garg <[email protected]>
Reviewed-by: Tyler Hicks <[email protected]>
Signed-off-by: Jens Wiklander <[email protected]>
Signed-off-by: Greg Kroah-Hartman <[email protected]>
2021-12-29 12:23:37 +01:00
..
optee tee: optee: Fix incorrect page free bug 2021-12-29 12:23:37 +01:00
Kconfig
Makefile
tee_core.c
tee_private.h
tee_shm.c tee: Correct inappropriate usage of TEE_SHM_DMA_BUF flag 2021-08-15 13:08:02 +02:00
tee_shm_pool.c