Re: [BUG] shmem: FALLOC_FL_PUNCH_HOLE vs fault-around race corrupts page cache / rss counters

From: Gregory Price

Date: Thu Oct 08 2026 - 09:07:28 EST


On Sun, Oct 04, 2026 at 10:28:31PM -0700, Andrew Morton wrote:
> fwiw I made gpt and gemini argue about this for a while and ended up
> with the below.
>

I thought this was resolved by Zi Yan's patches, but it seems they just
made it harder to hit. This version looks better than what i'd
originally conjurred up, so if you end up taking it:

Reviewed-by: Gregory Price (Meta) <gourry@xxxxxxxxxx>

~Gregory