From nobody Sun Feb 8 17:13:28 2026 Received: from m16.mail.163.com (m16.mail.163.com [220.197.31.4]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 193CF33437B for ; Fri, 9 Jan 2026 10:43:49 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=220.197.31.4 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1767955433; cv=none; b=Fwf18xRR+JSOFkASG0k2Pid04O5LnVEuJqcQyslhJxAt2520xpsCiQJ8jsU+uMJWl7Oirj/d7rGyaalOMHnlOUVwHb2Mie/9moh4tXiTh7wrxjhWRipQ4/bxghGf2apHU8f5Y+Zh5Q+lleqiFYqoTDvsCt3TWLnMZ6wyO5jqGuQ= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1767955433; c=relaxed/simple; bh=n5pi7spE3u99nrtEc6SBgMjUFQWOV5iJa1haijaeUEk=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=SnX/H4zSzHkeOelAHHbpqrHsXs3tFGpvzS/8l8lgEtjpeKouLMJFVVFEVmb9Pl70Iyp89yAVYbxuoiUpAa8rxmuuRmbK+1qR30AsBnshs1/ToRbEyp2WL1cdb52PioJPLOO3OpKCGtzvCgncsNCUcLLUVWY1tEtqeGOIrTMH6y0= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=163.com; spf=pass smtp.mailfrom=163.com; dkim=pass (1024-bit key) header.d=163.com header.i=@163.com header.b=Th7qhJpA; arc=none smtp.client-ip=220.197.31.4 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=163.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=163.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=163.com header.i=@163.com header.b="Th7qhJpA" DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=163.com; s=s110527; h=From:To:Subject:Date:Message-ID:MIME-Version; bh=UM SWWS1xemY2qzOpfGQyi+YC3F7gxVgrd+oftHsiSGM=; b=Th7qhJpAIrAk3DDEpd x1cmCFonCnUnap0z9I64wocaYDT5kNojEw4/hWEK0k4crNmwaqqmoPh3RKiqTv1b yzgNCvbGaikev28ToeS1MjO3PthIPqcTXD6t/zRi4FNjWJ9cVbHNMWc2v+axcJDK 2mxbSDdxZsMibYVZCnFvN2F20= Received: from ubuntu24-z.. (unknown []) by gzsmtp3 (Coremail) with SMTP id PigvCgD3vxit22BpF9M4Kw--.163S2; Fri, 09 Jan 2026 18:42:55 +0800 (CST) From: ranxiaokai627@163.com To: graf@amazon.com, rppt@kernel.org, pasha.tatashin@soleen.com, pratyush@kernel.org, akpm@linux-foundation.org, surenb@google.com Cc: kexec@lists.infradead.org, linux-mm@kvack.org, linux-kernel@vger.kernel.org, ran.xiaokai@zte.com.cn, ranxiaokai627@163.com Subject: [PATCH] kho: init alloc tags when restoring pages from reserved memory Date: Fri, 9 Jan 2026 10:42:51 +0000 Message-ID: <20260109104251.157767-1-ranxiaokai627@163.com> X-Mailer: git-send-email 2.43.0 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable X-CM-TRANSID: PigvCgD3vxit22BpF9M4Kw--.163S2 X-Coremail-Antispam: 1Uf129KBjvdXoWrtrW7Cr4fXF4rXw1xGrW5trb_yoWkGwb_XF 4UJw4jgryqkFnIkan0ywsaqFW5K3yYgFWjyw1aqFW3Ja4Uta1q9a12vrnxZry5Wrs8CFZ8 Crn0gF90yrySqjkaLaAFLSUrUUUUjb8apTn2vfkv8UJUUUU8Yxn0WfASr-VFAUDa7-sFnT 9fnUUvcSsGvfC2KfnxnUUI43ZEXa7sRta0PUUUUUU== X-CM-SenderInfo: xudq5x5drntxqwsxqiywtou0bp/xtbCxg+U4Glg268gtgAA3W Content-Type: text/plain; charset="utf-8" From: Ran Xiaokai Memblock pages (including reserved memory) should have their allocation tags initialized to CODETAG_EMPTY via clear_page_tag_ref() before being released to the page allocator. When kho restores pages through kho_restore_page(), missing this call causes mismatched allocation/deallocation tracking and warning message: alloc_tag was not set. Add missing clear_page_tag_ref() annotation in kho_restore_page() to fix this. Signed-off-by: Ran Xiaokai Reviewed-by: Mike Rapoport (Microsoft) Reviewed-by: Suren Baghdasaryan --- kernel/liveupdate/kexec_handover.c | 1 + 1 file changed, 1 insertion(+) diff --git a/kernel/liveupdate/kexec_handover.c b/kernel/liveupdate/kexec_h= andover.c index cd6b3fb9dcae..2d47f2c50bd8 100644 --- a/kernel/liveupdate/kexec_handover.c +++ b/kernel/liveupdate/kexec_handover.c @@ -268,6 +268,7 @@ static struct page *kho_restore_page(phys_addr_t phys, = bool is_folio) else kho_init_pages(page, nr_pages); =20 + clear_page_tag_ref(page); adjust_managed_page_count(page, nr_pages); return page; } --=20 2.25.1