Linux-mm Archive on lore.kernel.org
 help / color / mirror / Atom feed
From: "David Hildenbrand (Arm)" <david@kernel.org>
To: "Michael S. Tsirkin" <mst@redhat.com>,
	"Rafael J. Wysocki (Intel)" <rafael@kernel.org>
Cc: linux-mm@kvack.org, Andrea Arcangeli <aarcange@redhat.com>,
	Dan Williams <dan.j.williams@intel.com>,
	Dave Hansen <dave.hansen@intel.com>,
	Konrad Rzeszutek Wilk <konrad.wilk@oracle.com>,
	Luiz Capitulino <lcapitulino@redhat.com>,
	Matthew Wilcox <willy@infradead.org>,
	Michal Hocko <mhocko@kernel.org>,
	Nitesh Narayan Lal <nitesh@redhat.com>,
	Oscar Salvador <osalvador@suse.de>,
	Pankaj Gupta <pagupta@redhat.com>,
	Paolo Bonzini <pbonzini@redhat.com>,
	Rik van Riel <riel@surriel.com>, Vlastimil Babka <vbabka@suse.cz>,
	Wei Wang <wei.w.wang@intel.com>,
	Yang Zhang <yang.zhang.wz@gmail.com>, wei qi <weiqi4@huawei.com>,
	Len Brown <lenb@kernel.org>, Pavel Machek <pavel@kernel.org>,
	Mel Gorman <mgorman@techsingularity.net>,
	Andrew Morton <akpm@linux-foundation.org>,
	Alexander Duyck <alexander.h.duyck@linux.intel.com>,
	linux-pm@vger.kernel.org
Subject: Re: [PATCH] hibernation: clear PG_reported before saving image
Date: Tue, 1 Dec 2026 10:37:10 +0100	[thread overview]
Message-ID: <7b6ada93-5fc6-41d7-a6d5-afde4b0b550f@kernel.org> (raw)
In-Reply-To: <20261130155348-mutt-send-email-mst@kernel.org>

On 11/30/26 21:54, Michael S. Tsirkin wrote:
> On Mon, Nov 30, 2026 at 07:48:25PM +0100, Rafael J. Wysocki (Intel) wrote:
>> On Mon, Nov 30, 2026 at 6:03 PM Michael S. Tsirkin <mst@redhat.com> wrote:
>>>
>>> Free buddy pages are excluded from the hibernation image, but the struct
>>> page entries containing their PG_reported flags are saved.  If
>>> PG_reported is set, then after resume, page reporting will never report
>>> these pages. But this is wrong: the restore kernel may have written to
>>> these free pages while loading the image.
>>
>> Why would that matter?
>>
>> The image kernel will still regard those pages as free, won't it?
> 
> Well there's presumably a point to reporting right?  Specifically, I'm
> using it to free up host memory.  Currently, the host will not free this
> memory, and it could.

Hibernation in VMs is uncommon. Was this found by AI/code inspection or did
someone run into an actual problem with this?

-- 
Cheers,

David


  reply	other threads:[~2026-12-01  9:37 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-11-30 17:02 [PATCH] hibernation: clear PG_reported before saving image Michael S. Tsirkin
2026-11-30 18:48 ` Rafael J. Wysocki (Intel)
2026-11-30 20:54   ` Michael S. Tsirkin
2026-12-01  9:37     ` David Hildenbrand (Arm) [this message]
2026-11-30 23:45 ` Andrew Morton

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=7b6ada93-5fc6-41d7-a6d5-afde4b0b550f@kernel.org \
    --to=david@kernel.org \
    --cc=aarcange@redhat.com \
    --cc=akpm@linux-foundation.org \
    --cc=alexander.h.duyck@linux.intel.com \
    --cc=dan.j.williams@intel.com \
    --cc=dave.hansen@intel.com \
    --cc=konrad.wilk@oracle.com \
    --cc=lcapitulino@redhat.com \
    --cc=lenb@kernel.org \
    --cc=linux-mm@kvack.org \
    --cc=linux-pm@vger.kernel.org \
    --cc=mgorman@techsingularity.net \
    --cc=mhocko@kernel.org \
    --cc=mst@redhat.com \
    --cc=nitesh@redhat.com \
    --cc=osalvador@suse.de \
    --cc=pagupta@redhat.com \
    --cc=pavel@kernel.org \
    --cc=pbonzini@redhat.com \
    --cc=rafael@kernel.org \
    --cc=riel@surriel.com \
    --cc=vbabka@suse.cz \
    --cc=wei.w.wang@intel.com \
    --cc=weiqi4@huawei.com \
    --cc=willy@infradead.org \
    --cc=yang.zhang.wz@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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox