Linux kernel -stable discussions
 help / color / mirror / Atom feed
From: Muchun Song <muchun.song@linux.dev>
To: Sasha Levin <sashal@kernel.org>
Cc: Muchun Song <muchun.song@linux.dev>,
	stable@vger.kernel.org, regressions@lists.linux.dev,
	Greg Kroah-Hartman <gregkh@linuxfoundation.org>,
	Kiryl Shutsemau <kas@kernel.org>,
	Muchun Song <songmuchun@bytedance.com>,
	Oscar Salvador <osalvador@suse.de>,
	David Hildenbrand <david@kernel.org>,
	Andrew Morton <akpm@linux-foundation.org>,
	linux-mm@kvack.org, Jason Baron <jbaron@akamai.com>
Subject: Re: [REGRESSION] 6.18.y: HugeTLB vmemmap restore leaves stale struct pages since v6.18.51
Date: Fri, 4 Dec 2026 11:31:32 +0800	[thread overview]
Message-ID: <9F38E45B-A549-43CE-9A17-092603573F87@linux.dev> (raw)
In-Reply-To: <2026-12-03-1-daily-reply-0001@kernel.org>



> On Dec 3, 2026, at 21:47, Sasha Levin <sashal@kernel.org> wrote:
> 
>> I've tested v6.18.66 with only d73f79d1a2c2 reverted (git revert
>> d73f79d1a2c2), x86-64, CONFIG_HUGETLB_PAGE_OPTIMIZE_VMEMMAP=y with HVO
>> enabled, booted with init_on_free=1 so the page sanity checks are on.
>> 
>> The reproducer from my first mail now exits 0 and dmesg has no "Bad page
>> state" reports. Unmodified v6.18.66 reports on the first run.
> 
> Thanks for testing, Jason. The revert is queued for the next 6.18 and 6.12
> releases.
> 
> Muchun, given that the revert alone fixes this, do you still prefer
> reverting the 6.18 and 6.12 backports of c0b495b91a47 ("mm/hugetlb:
> refactor code around vmemmap_walk") as well? If so, could you send the
> fix that b1b7c045e808 ("mm/hugetlb: initialize gigantic bootmem hugepage
> struct pages earlier") then needs? Otherwise I'll queue your adapted
> c7bde43f6daf ("mm/hugetlb_vmemmap: fix incorrect vmemmap restore in
> rollback") on top of the revert.

I checked both v6.12.y and v6.18.y. Commit b1b7c045e808 ("mm/hugetlb: initialize
gigantic bootmem hugepage struct pages earlier") does not depend on commit
c0b495b91a47 ("mm/hugetlb: refactor code around vmemmap_walk").

Therefore, we do not need c0b495b91a47 or its fix, c7bde43f6daf ("mm/hugetlb_vmemmap:
fix incorrect vmemmap restore in rollback"). Commit b1b7c045e808 does not need any
additional adaptation after the reverts. Thus, all we need to do is revert the
latter two commits.

Thanks,
Muchun

> 
> -- 
> Thanks,
> Sasha


      reply	other threads:[~2026-12-04  3:31 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-12-01 18:09 [REGRESSION] 6.18.y: HugeTLB vmemmap restore leaves stale struct pages since v6.18.51 Jason Baron
2026-12-02  2:21 ` Muchun Song
2026-12-02  3:00   ` Muchun Song
2026-12-02 13:48 ` Sasha Levin
2026-12-02 15:24   ` Jason Baron
2026-12-03 13:47     ` Sasha Levin
2026-12-04  3:31       ` Muchun Song [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=9F38E45B-A549-43CE-9A17-092603573F87@linux.dev \
    --to=muchun.song@linux.dev \
    --cc=akpm@linux-foundation.org \
    --cc=david@kernel.org \
    --cc=gregkh@linuxfoundation.org \
    --cc=jbaron@akamai.com \
    --cc=kas@kernel.org \
    --cc=linux-mm@kvack.org \
    --cc=osalvador@suse.de \
    --cc=regressions@lists.linux.dev \
    --cc=sashal@kernel.org \
    --cc=songmuchun@bytedance.com \
    --cc=stable@vger.kernel.org \
    /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