Re: [PATCH 05/12] arm64: mm: Remove VMALLOC checks from update_mapping_prot(.)

Catalin Marinas
2017-12-13T16:01:05Z

On Tue, Dec 12, 2017 at 03:39:23PM +0000, Steve Capper wrote:
> It is not apparent to me how mark_linear_text_alias_ro(.) guarantees
> that no page table entries for the linear map are split, though.

map_mem() ensures that when mapped via __map_memblock(), no contiguous
entries are created. Also both ends of the _text..__init_begin would be
mapped to the granularity permitted by their alignment so that no later
splitting is necessary.

--
Catalin