mremap works in the following steps: (1) Unmap the destination memory area (2) Create a new vm_range with add_process_memory_range (3) Move the PTEs of the source range to the destination range by using move_pte_range The problem is that step (3) expects the destination doesn't have any physical pages, but step (2) premaps the destination when the optimization of premapping anonymous map is turned on. Change-Id: Ieeebd799b7169b9a6f6f658c204c31f49817030f
242 KiB
242 KiB