Re: [PATCH v2] mm/vma: avoid spurious write locks when mm->mm_lock_seq overflows
From: Lorenzo Stoakes (ARM)
Date: Fri Oct 16 2026 - 11:26:53 EST
On Fri, Oct 16, 2026 at 12:34:33PM +0100, Lorenzo Stoakes (ARM) wrote:
> Care must be taken, as resetting the sequence count at overflow means
> changing the seqcount of VMAs which are already attached and observable.
For the record, Liam pointed out the overflow as an issue on more than one
occasion in the past, and I (and I think others?) wrongly dismissed it at
the time, so full credit to Liam for raising it, and mea cupla to me for
not seeing it :P
That saying about assumptions etc. etc.
--
Cheers, Lorenzo