Home
last modified time | relevance | path

Searched hist:"9438 dbdb59dc3bbf4fb58e0e1c00989abb7713bc" (Results 1 – 1 of 1) sorted by relevance

/optee_os/core/arch/arm/mm/
H A Dtee_pager.c9438dbdb59dc3bbf4fb58e0e1c00989abb7713bc Wed Dec 04 10:25:01 UTC 2019 Jens Wiklander <jens.wiklander@linaro.org> core: fix tee_pager_release_one_phys() assert

Prior to this patch it was assumed in tee_pager_release_one_phys() that
a locked fobj would not span multiple page directories. This is not
correct since it depends on the base address and size of the locked
fobj. If the base address is close to the end of a page directory it can
very well happen. With CFG_CORE_ASLR=y this is bound to happen sooner or
later even if everything seems to work with CFG_CORE_ASLR=n. This patch
fixes this by instead counting the number of areas which uses the pmem
to be released. The number should be exactly one.

Acked-by: Jerome Forissier <jerome@forissier.org>
Signed-off-by: Jens Wiklander <jens.wiklander@linaro.org>