aboutsummaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python/bin
diff options
context:
space:
mode:
authorMark Rutland <[email protected]>2015-11-23 13:26:19 +0000
committerWill Deacon <[email protected]>2015-12-01 09:47:03 +0000
commitcc5d2b3b95cdbb3fed4e38e667d17b9ac7250f7a (patch)
tree281016e957bcc9dd440dedfa01844936b9a27c07 /tools/perf/scripts/python/bin
parent31ade3b83e1821da5fbb2f11b5b3d4ab2ec39db8 (diff)
arm64: mm: detect bad __create_mapping uses
If a caller of __create_mapping provides a PA and VA which have different sub-page offsets, it is not clear which offset they expect to apply to the mapping, and is indicative of a bad caller. In some cases, the region we wish to map may validly have a sub-page offset in the physical and virtual addresses. For example, EFI runtime regions have 4K granularity, yet may be mapped by a 64K page kernel. So long as the physical and virtual offsets are the same, the region will be mapped at the expected VAs. Disallow calls with differing sub-page offsets, and WARN when they are encountered, so that we can detect and fix such cases. Cc: Laura Abbott <[email protected]> Acked-by: Ard Biesheuvel <[email protected]> Acked-by: Catalin Marinas <[email protected]> Reviewed-by: Steve Capper <[email protected]> Signed-off-by: Mark Rutland <[email protected]> Signed-off-by: Will Deacon <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/bin')
0 files changed, 0 insertions, 0 deletions