summaryrefslogtreecommitdiffstats
path: root/arch/arm64/crypto/aes-ce.S
diff options
context:
space:
mode:
authorMark Rutland <mark.rutland@arm.com>2015-03-04 13:27:35 +0000
committerWill Deacon <will.deacon@arm.com>2015-03-19 10:43:57 +0000
commitb63dbef93f91d56cb4385fdd8d1765201d451136 (patch)
treef984f35a54b63029f2e8e5598a46adff3a726010 /arch/arm64/crypto/aes-ce.S
parent19fc577579c86fec6e2523baeb457b02e939796f (diff)
downloadblackbird-obmc-linux-b63dbef93f91d56cb4385fdd8d1765201d451136.tar.gz
blackbird-obmc-linux-b63dbef93f91d56cb4385fdd8d1765201d451136.zip
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>
Diffstat (limited to 'arch/arm64/crypto/aes-ce.S')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud