Re: [PATCH v3 1/5] mm,hugetlb: Change mechanism to detect a COW on private mapping
From: Oscar Salvador
Date: Mon Jun 30 2025 - 09:27:00 EST
On Sun, Jun 29, 2025 at 10:12:06PM +0200, Oscar Salvador wrote:
> Nevermind, I just wrote my own reproducer.
> I see two ways of fixing this, the simpler being a trylock instead of a
> lock, like the original code did.
> I'll sleep on it and fix it tomorrow.
I crafted the fix, and now my reproducer no longer reproduces the
problem.
Also, with the fix the whole lock-unlock dance becomes much more simple.
I'll send out a v4 later today.
--
Oscar Salvador
SUSE Labs