Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.remote-ip=91.218.175.80 ARC-Seal: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=none; t=1796355113; b=wb7AAOY1Z66jEBAUlA6/oWcj1TyLAlxND7dal3JzIiDWR0WLzG2Cj9kU6pxxLfMfKNfu xjODxEzHrAbyuuL3STALtiyV4HseGPJEcLfSJZjk65wtdw4131rOGw3mT9BiXh2pzrMhN 1YkU8fICSEOPihYS2uqgFQFUXwFaQ2IXaYZtG9AGYy7xY4cfHNYc+GW1eCESsnxlovneY Qp0Y5FgNLZDLoC6brGQpeOWu/yFdihwepBUKm20PodmU68K+wwymFSOmffX8MIwDjKRkf mQz+L6+61NHaNrGK359XwKRbi/pXSe5gV03BFc7amWiWdxTonyN0YoH8hvRCJSAN+XA== ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1796355113; h=DMARC-Filter:X-Envelope-To:DKIM-Signature:X-Envelope-To:Received: X-Mizu-Trace-ID:X-Migadu-Flow:Content-Type:Mime-Version:Subject:From: In-Reply-To:Date:Cc:Content-Transfer-Encoding:Message-Id:References: To:X-Mailer; bh=M+gTD/CbsGt3xyIlZPiXxrOyuacgpIJson7polo3GPM=; b=KAExex7Jfef1lqp3LCP69f6K9ywOlQl3LAxXuHJQFSrioWkkApt20nZehN3shl4T31aQ wgguzpaEH6kVE54AhGctmdMM5ehoFLniwNhLjdIgy8eVLJORTPuiczAt0AF0b5RK+sjH7 tED0IRJTSWz60CSnX7Rd2wcCbh4ZA+XCbwmpjYJUYr5/C4pNu7HvFRtreMMZM+kS5N+uP fw86yn9trH2piNE9MiGGT9mQigmfxvQq39O0703MhgFB4/FNlapOIEVD9sjl6DENMxLu+ mpTwuF/Btke1a8K4Kt8VcmGvlB/eJFhc2qcPrXaKRDQX3ywP7/MLlldoF+dq7wCKDVQ== ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass header.from=linux.dev; spf=pass smtp.mailfrom=linux.dev; dkim=pass header.d=linux.dev header.i=@linux.dev header.a=rsa-sha256 header.s=key1 header.b=luhwiyjQ; arc=none smtp.remote-ip=91.218.175.80 Received: from mta0.migadu.com (out-80.mta0.migadu.com [91.218.175.80]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits) key-exchange X25519 server-signature ECDSA (prime256v1) server-digest SHA256) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 810E0606A32F for ; Fri, 4 Dec 2026 03:31:52 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.2 smtp.subspace.kernel.org 810E0606A32F Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linux.dev Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=linux.dev Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key, unprotected) header.d=linux.dev header.i=@linux.dev header.a=rsa-sha256 header.s=key1 header.b=luhwiyjQ X-Envelope-To: regressions@lists.linux.dev DKIM-Signature: a=rsa-sha256; bh=M+gTD/CbsGt3xyIlZPiXxrOyuacgpIJson7polo3GPM=; c=simple/simple; d=linux.dev; h=from:to:subject:date:message-id:mime-version:content-type; s=key1; t=1796355110; v=1; x=1796959910; b=luhwiyjQh7IYrepVQAxDwTAim1AgUoszoC57di76UYZ3I+NNeqepJn0LAU+nqf9p02Cdy1P1 VIX3YMc5pqcRXrW3JmiY+QSD6Twj5nSSLnAqj6xJskEw5khwqsnWvtzHV4plcJ4O71SJTBlQwXM MGix1ZXTpc1lVA6vMzoDbU8w= X-Envelope-To: regressions@lists.linux.dev Received: by smtp.migadu.com with ESMTPS id eb2492dd86c59abd; Fri, 04 Dec 2026 03:31:50 +0000 X-Mizu-Trace-ID: eb2492dd86c59abd X-Migadu-Flow: FLOW_OUT Content-Type: text/plain; charset=us-ascii X-Mailing-List: regressions@lists.linux.dev List-Id: List-Post: List-Help: List-Subscribe: List-Unsubscribe: List-Owner: Precedence: list Mime-Version: 1.0 (Mac OS X Mail 16.0 \(3901.200.71.1.16\)) Subject: Re: [REGRESSION] 6.18.y: HugeTLB vmemmap restore leaves stale struct pages since v6.18.51 From: Muchun Song In-Reply-To: <2026-12-03-1-daily-reply-0001@kernel.org> Date: Fri, 4 Dec 2026 11:31:32 +0800 Cc: Muchun Song , stable@vger.kernel.org, regressions@lists.linux.dev, Greg Kroah-Hartman , Kiryl Shutsemau , Muchun Song , Oscar Salvador , David Hildenbrand , Andrew Morton , linux-mm@kvack.org, Jason Baron Content-Transfer-Encoding: quoted-printable Message-Id: <9F38E45B-A549-43CE-9A17-092603573F87@linux.dev> References: <2026-12-03-1-daily-reply-0001@kernel.org> To: Sasha Levin X-Mailer: Apple Mail (2.3901.200.71.1.16) > On Dec 3, 2026, at 21:47, Sasha Levin wrote: >=20 >> I've tested v6.18.66 with only d73f79d1a2c2 reverted (git revert >> d73f79d1a2c2), x86-64, CONFIG_HUGETLB_PAGE_OPTIMIZE_VMEMMAP=3Dy with = HVO >> enabled, booted with init_on_free=3D1 so the page sanity checks are = on. >>=20 >> 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. >=20 > Thanks for testing, Jason. The revert is queued for the next 6.18 and = 6.12 > releases. >=20 > 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 >=20 > --=20 > Thanks, > Sasha