Please sign in to comment.
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
core: tee_mmu_check_access_rights() check all pages
Prior to this patch tee_mmu_check_access_rights() checks an address in each page of a supplied range. If both the start and length of that range is unaligned the last page in the range is sometimes not checked. With this patch the first address of each page in the range is checked to simplify the logic of checking each page and the range and also to cover the last page under all circumstances. Fixes: OP-TEE-2018-0005: "tee_mmu_check_access_rights does not check final page of TA buffer" Signed-off-by: Jens Wiklander <email@example.com> Tested-by: Joakim Bech <firstname.lastname@example.org> (QEMU v7, v8) Reviewed-by: Joakim Bech <email@example.com> Reported-by: Riscure <firstname.lastname@example.org> Reported-by: Alyssa Milburn <email@example.com> Acked-by: Etienne Carriere <firstname.lastname@example.org>
- Loading branch information