Re: [PATCH 0/3] mm, swap: don't spin or flood the console on a bad swap entry

From: Breno Leitao

Date: Wed Aug 12 2026 - 07:24:14 EST


On Mon, Aug 10, 2026 at 10:20:34AM -0700, Andrew Morton wrote:
> On Mon, 10 Aug 2026 09:26:48 -0700 Breno Leitao <leitao@xxxxxxxxxx> wrote:
> > Trying to fix it in a naive way:
>
> Thanks. Sashiko said a bunch of things, all pre-existing.
> https://sashiko.dev/#/patchset/20260810-swap-v1-0-375ef0767206@xxxxxxxxxx
>
> You might wat to address the first one as it's on-topic for this
> patchset. Ther are some swap things. The remainder are for the poor
> uffd maintainers to scratch at, if inclined.

Ack.

Rate limiting swap_dup_entry_direct() is right on its own: it prints the
same Bad_file message as get_swap_device() does, we have another case we
want to rate limit as well.

I will update and respin.
--breno