From mboxrd@z Thu Jan 1 00:00:00 1970 Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.remote-ip=95.215.58.79 ARC-Seal: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=none; t=1796355114; b=cUYUyLB/cwKeu7hjlvEViTOlcMdZyj8zYg/x2TzjCEQXrTdt1vF+7CObsvoI+0BoBsWu 4LrYR7dKeei5wt+gTYJpZMEt9arolvAy7qQgvMNOwUStOKZPJBdei1aJHrdiinykg95HC HS5jacRG+W3rUPP3/0U8w9qVWIP0BXcNiPW4mJR3yC6TFJTym7YETYjVGdL0A5epdOiBu d5DZIGE4oHTqMZfBGTAnlZhgcujd1jB9535Y6hzh1LRv8400amyciSnxx6p/ggx/oEu+6 BEfesfsTIVF4N5RThST19nn8iPQ1bMNSI3cgpcpCAfJ0FrDm2tipXurAb0sbbwDSVDA== ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1796355114; 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=s9f4fIREaLklprFfaClYfKR6KrsbK/paZkG8otyY0pWtzdymsNZf6YXgUj8Lx84O7yYL qMNZ4mtIZ///RHzt0ZoVGNjIumdb6HNSjyHEI9xq1UxZ9Elv5iPXNIgPyC6xvaqGCjRsv 4guayDxz5iU8Csg06309G4zPtz5lWjOTWU1ioK3ve216jNuwX4ei20P51dwNYTkmWYb4h H+UgdrRQquGjgiYiVOly/7OPjhaami/p1d6Baudp3iqFAH/8VJvLswqsPbunOXTFUwxyn UaYpdH2CJU50d71bXCCmSqHJzqdq1g26BCmK9lxV5l5F8KUy0dahTXeXpTp7uC2aHsA== 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=95.215.58.79 Received: from mta1.migadu.com (out-79.mta1.migadu.com [95.215.58.79]) (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 6E896606A322 for ; Fri, 4 Dec 2026 03:31:53 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.2 smtp.subspace.kernel.org 6E896606A322 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: stable@vger.kernel.org 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: stable@vger.kernel.org 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: stable@vger.kernel.org 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