Searched hist:b63dbef93f91d56cb4385fdd8d1765201d451136 (Results 1 – 1 of 1) sorted by relevance
/openbmc/linux/arch/arm64/mm/ |
H A D | mmu.c | diff b63dbef93f91d56cb4385fdd8d1765201d451136 Wed Mar 04 07:27:35 CST 2015 Mark Rutland <mark.rutland@arm.com> arm64: fixmap: check idx is definitely valid
Fixmap indices are in the interval (FIX_HOLE, __end_of_fixed_addresses), but in __set_fixmap we only check idx <= __end_of_fixed_addresses, and therefore indices <= FIX_HOLE are erroneously accepted. If called with such an idx, __set_fixmap may corrupt page tables outside of the fixmap region.
This patch ensures that we validate the idx against both endpoints of the interval.
Cc: Catalin Marinas <catalin.marinas@arm.com> Cc: Kees Cook <keescook@chromium.org> Acked-by: Ard Biesheuvel <ard.biesheuvel@linaro.org> Acked-by: Laura Abbott <lauraa@codeaurora.org> Signed-off-by: Mark Rutland <mark.rutland@arm.com> Signed-off-by: Will Deacon <will.deacon@arm.com>
|