[PATCH v2] arm64: head: avoid over-mapping in map_memory

Catalin Marinas catalin.marinas at arm.com
Tue Aug 24 09:18:37 PDT 2021


On Mon, 23 Aug 2021 11:12:53 +0100, Mark Rutland wrote:
> The `compute_indices` and `populate_entries` macros operate on inclusive
> bounds, and thus the `map_memory` macro which uses them also operates
> on inclusive bounds.
> 
> We pass `_end` and `_idmap_text_end` to `map_memory`, but these are
> exclusive bounds, and if one of these is sufficiently aligned (as a
> result of kernel configuration, physical placement, and KASLR), then:
> 
> [...]

Applied to arm64 (for-next/misc), thanks!

[1/1] arm64: head: avoid over-mapping in map_memory
      https://git.kernel.org/arm64/c/90268574a3e8

-- 
Catalin




More information about the linux-arm-kernel mailing list