diff options
author | Will Deacon <will.deacon@arm.com> | 2018-02-21 12:59:27 +0000 |
---|---|---|
committer | Catalin Marinas <catalin.marinas@arm.com> | 2018-02-22 11:25:53 +0000 |
commit | 15122ee2c515a253b0c66a3e618bc7ebe35105eb (patch) | |
tree | 930c790bb615babec3527f85fdbbec6628cf938d /arch/arm64/include/asm/stacktrace.h | |
parent | 0331365edb1d6ccd6ae68b1038111da85d4c68d1 (diff) |
arm64: Enforce BBM for huge IO/VMAP mappings
ioremap_page_range doesn't honour break-before-make and attempts to put
down huge mappings (using p*d_set_huge) over the top of pre-existing
table entries. This leads to us leaking page table memory and also gives
rise to TLB conflicts and spurious aborts, which have been seen in
practice on Cortex-A75.
Until this has been resolved, refuse to put block mappings when the
existing entry is found to be present.
Fixes: 324420bf91f60 ("arm64: add support for ioremap() block mappings")
Reported-by: Hanjun Guo <hanjun.guo@linaro.org>
Reported-by: Lei Li <lious.lilei@hisilicon.com>
Acked-by: Ard Biesheuvel <ard.biesheuvel@linaro.org>
Signed-off-by: Will Deacon <will.deacon@arm.com>
Signed-off-by: Catalin Marinas <catalin.marinas@arm.com>
Diffstat (limited to 'arch/arm64/include/asm/stacktrace.h')
0 files changed, 0 insertions, 0 deletions