Re: [PATCH 3/4] mm/mprotect: fix unpaired notifier start at address 0
From: David Hildenbrand (Arm)
Date: Mon Nov 30 2026 - 07:28:51 EST
On 11/27/26 20:45, Lorenzo Stoakes (ARM) wrote:
> From: Chris Mason <mason@xxxxxxxxxx>
>
> A protection change on a VMA that starts at address 0 can leave an MMU
> notifier invalidation open forever.
>
> Waiters for its end, such as kvm_swap_active_memslots() and
> mmu_interval_read_begin(), then sleep uninterruptibly and never wake up.
>
> Fix by using a boolean value to track this instead of the start address of
> the range.
>
> Fixes: a5338093bfb4 ("mm: move mmu notifier call from change_protection to change_pmd_range")
> Signed-off-by: Chris Mason <mason@xxxxxxxxxx>
> [ ljs: commit msg tweak ]
> Signed-off-by: Lorenzo Stoakes (ARM) <ljs@xxxxxxxxxx>
> ---
Reviewed-by: David Hildenbrand (Arm) <david@xxxxxxxxxx>
--
Cheers,
David