All of lore.kernel.org
 help / color / mirror / Atom feed
From: Youngjun Park <youngjun.park@lge.com>
To: Andrew Morton <akpm@linux-foundation.org>
Cc: Chris Li <chrisl@kernel.org>, Kairui Song <kasong@tencent.com>,
	Kemeng Shi <shikemeng@huaweicloud.com>,
	Nhat Pham <nphamcs@gmail.com>, Baoquan He <baoquan.he@linux.dev>,
	Barry Song <baohua@kernel.org>,
	Jianyue Wu <wujianyue000@gmail.com>,
	her0gyugyu@gmail.com, linux-mm@kvack.org,
	linux-kernel@vger.kernel.org
Subject: Re: [PATCH v3 0/4] mm, swap: keep hibernation swap slots out of the swap cache
Date: Wed, 12 Aug 2026 21:13:37 +0900	[thread overview]
Message-ID: <anxjcYKBMeAlgrBl@yjaykim-PowerEdge-T330> (raw)
In-Reply-To: <20260811114622.6a04927b0c7ca0c2d6b39cce@linux-foundation.org>

On Tue, Aug 11, 2026 at 11:46:22AM -0700, Andrew Morton wrote:
> When fixing things, please always take care to describe the
> userspace-visible runtime effects of the bug, particularly when
> proposing a -stable backport.

Thank you for the advice and sorry for it.
I will make sure future patches describe the userspace-visible effects clearly!

> For [1/4] Gemini tells me "At a high level, this bug triggers silent
> memory corruption, process crashes, or data instability across
> completely unrelated userspace applications - typically occurring after a
> system resumes from hibernation (suspend-to-disk)." Which is what I
> figured too.

That is right, with one small correction. this can happen with
uswsusp while the hibernation image is being created, not at resume
time. Memory corruption, process crashes, or data instability across
completely unrelated userspace applications can occur there.

> Do we have any reports of this?  Reported-by/Closes?

I found this while working on giving hibernation slots their own
marker in the swap table, which I had discussed with Kairui.
(https://lore.kernel.org/linux-mm/abp7aDgYLrxF3Me8@KASONG-MC4/)
As far as I know there are no reports, so there is no Reported-by/Closes to
add.

> I'd like to grab [1/4] only, and defer the other three until 7.3-rc1.
> This might be mistaken, but from a quick read, it's not clear what
> benefit those three patches offer our users.

Simply put, they are close to cleanups that remove unneeded work.
(with a some little optimization.)

Patch 2 keeps bad slots out of the swap cache, so readahead no
longer wastes a folio on them.

Patch 3 keeps hibernation slots out of the swap cache, with the same
effect. no wasted folio at readahead time.

Patch 4 removes dead code.

Thanks,
Youngjun Park


      reply	other threads:[~2026-08-12 12:13 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-08-11 13:22 [PATCH v3 0/4] mm, swap: keep hibernation swap slots out of the swap cache Youngjun Park
2026-08-11 13:22 ` [PATCH v3 1/4] mm, swap: don't free a hibernation slot that is in " Youngjun Park
2026-08-11 13:22 ` [PATCH v3 2/4] mm, swap: only allow swapped-out slots into " Youngjun Park
2026-08-11 13:22 ` [PATCH v3 3/4] mm, swap: give hibernation swap slots their own swap table entry type Youngjun Park
2026-08-11 16:48   ` Kairui Song
2026-08-11 13:22 ` [PATCH v3 4/4] mm, swap: drop the swap cache guard and reclaim in swap_free_hibernation_slot() Youngjun Park
2026-08-11 17:09   ` Kairui Song
2026-08-11 18:46 ` [PATCH v3 0/4] mm, swap: keep hibernation swap slots out of the swap cache Andrew Morton
2026-08-12 12:13   ` Youngjun Park [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=anxjcYKBMeAlgrBl@yjaykim-PowerEdge-T330 \
    --to=youngjun.park@lge.com \
    --cc=akpm@linux-foundation.org \
    --cc=baohua@kernel.org \
    --cc=baoquan.he@linux.dev \
    --cc=chrisl@kernel.org \
    --cc=her0gyugyu@gmail.com \
    --cc=kasong@tencent.com \
    --cc=linux-kernel@vger.kernel.org \
    --cc=linux-mm@kvack.org \
    --cc=nphamcs@gmail.com \
    --cc=shikemeng@huaweicloud.com \
    --cc=wujianyue000@gmail.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.