Re: [PATCH 3/4] mm/mprotect: fix unpaired notifier start at address 0
From: Pedro Falcato
Date: Fri Nov 27 2026 - 17:15:31 EST
On Fri, Nov 27, 2026 at 07:45:42PM +0000, 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: Pedro Falcato <pfalcato@xxxxxxx>
--
Pedro