Re: [PATCH v2 2/3] mm, swap: distinguish a malformed swap entry from a dying device
From: Breno Leitao
Date: Mon Aug 17 2026 - 05:26:08 EST
Hello Barry,
On Mon, Aug 17, 2026 at 06:20:22AM +0800, Barry Song wrote:
> On Thu, Aug 13, 2026 at 6:02 PM Breno Leitao <leitao@xxxxxxxxxx> wrote:
>
> Do you know why we’re seeing corrupted PTEs with `bad_nofile`?
>
> Does this issue still exist in mainline?
The problem seems related to the problem fixed by commit 366a4532d96f
("mm: fix the race between collapse and PT_RECLAIM under per-vma lock"),
but, I am less interested in that problem and more on the behaviour of
this code path when problems like this exist.
I've got this into this issue due to an overflow in the kernel
monitoring subsytem at Meta due to 7 machines getting into this state.
:-|