From nobody Thu Apr 9 12:54:10 2026 Received: from m16.mail.163.com (m16.mail.163.com [117.135.210.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 9315E1A5BB4 for ; Mon, 9 Mar 2026 03:37:27 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=117.135.210.4 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1773027451; cv=none; b=TBLR7O3WJrNeprws9Re4e47kYFebJJGrs3gBV9gpirRtjRbldm1L9Wi+r2KNOyL3ewDpU4Ui8vrXa0W8vPAJd2OfPgcVNFIsxxXXnJxfi2VPyk/Q0IOvmUec05OnSMQjQ1n85cvoWWa5FCs3JQ4Q9KS+UbBKQH8s128d4fAmATE= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1773027451; c=relaxed/simple; bh=U7BE91B57xbuQkmj0ouun+G/o4YCMAQ5R1mNMhmG3Cs=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=AMAQNh07sNq6Vyg83oaciUHbO7rT9aWFWa/yxMWoTe8OPiFoaM2BEzEVzCV+4C5aWizkJfREYVPB6/UUDKarPBbHtFPfmZA8sQkxFV66CSqOVrIoh0VpYzSnhtaJVJQlS9uwRe0DwNw//X/vHaiPbxQQDyOyDckJCEPQ6mV+Rjo= 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=hoaJWPfP; arc=none smtp.client-ip=117.135.210.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="hoaJWPfP" 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=t3 ndmHXGauxJDS4CGjqJ7QWuEKcJ5XQ5EkIe5CSnHwM=; b=hoaJWPfPXNVXybqq+W reo4bRfQfdtqU0ZM7nEflYp6UjOLydJN3U3ZMfc/YocFwi+m+jtenipADQxOMWFm iR7af+As1v7xhqO+4+Ae/ehPzJd1DHmrgfqWlmIO/hZ0c9K3/ZPkJg5fyg/WQNEe VcTbinJN1WE/U/J0EMk1IfeQI= Received: from ubuntu24-z.. (unknown []) by gzga-smtp-mtada-g1-0 (Coremail) with SMTP id _____wD3KbcFQK5pXpqWPQ--.7196S2; Mon, 09 Mar 2026 11:35:33 +0800 (CST) From: ranxiaokai627@163.com To: graf@amazon.com, akpm@linux-foundation.org, rppt@kernel.org, pratyush@kernel.org, pasha.tatashin@soleen.com, jasonmiu@google.com Cc: linux-kernel@vger.kernel.org, kexec@lists.infradead.org, ran.xiaokai@zte.com.cn, ranxiaokai627@163.com Subject: [PATCH] kho: fix child node parsing for debugfs in/sub_fdts Date: Mon, 9 Mar 2026 03:35:30 +0000 Message-ID: <20260309033530.244508-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: _____wD3KbcFQK5pXpqWPQ--.7196S2 X-Coremail-Antispam: 1Uf129KBjvJXoW7ZF4ftw43Gw1fKF4xCr4fAFb_yoW8WF18p3 WkCF1DJw4UAw1YvFyFk3WFy34fX3ykXw15ta4v9343Ar13trn3Xa95uFW3KryxZ395KF15 KF1Yqa4FvF1UWFJanT9S1TB71UUUUU7qnTZGkaVYY2UrUUUUjbIjqfuFe4nvWSU5nxnvy2 9KBjDUYxBIdaVFxhVjvjDU0xZFpf9x0pinjjfUUUUU= X-CM-SenderInfo: xudq5x5drntxqwsxqiywtou0bp/xtbCxgUXY2muQAUN3gAA3m Content-Type: text/plain; charset="utf-8" From: Ran Xiaokai Commit e0c1731f5d57 ("kho: adopt radix tree for preserved memory tracking") changed KHO_FDT_SUB_TREE_PROP_NAME from "fdt" to "preserved-data". However, kho debugfs code still hard-coded the "fdt" string when parsing the device tree, causing the debugfs node /debugfs/kho/in/sub_fdts/ fail to parse child nodes correctly. Fix this by including the header file and using KHO_FDT_SUB_TREE_PROP_NAME instead of the hard-coded string. Fixes: e0c1731f5d57 ("kho: adopt radix tree for preserved memory tracking") Signed-off-by: Ran Xiaokai Reviewed-by: Mike Rapoport (Microsoft) Reviewed-by: Pratyush Yadav --- kernel/liveupdate/kexec_handover_debugfs.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/kernel/liveupdate/kexec_handover_debugfs.c b/kernel/liveupdate= /kexec_handover_debugfs.c index 3f395fbd978f..acf368222682 100644 --- a/kernel/liveupdate/kexec_handover_debugfs.c +++ b/kernel/liveupdate/kexec_handover_debugfs.c @@ -13,6 +13,7 @@ #include #include #include +#include #include "kexec_handover_internal.h" =20 static struct dentry *debugfs_root; @@ -121,7 +122,7 @@ __init void kho_in_debugfs_init(struct kho_debugfs *dbg= , const void *fdt) const char *name =3D fdt_get_name(fdt, child, NULL); const u64 *fdt_phys; =20 - fdt_phys =3D fdt_getprop(fdt, child, "fdt", &len); + fdt_phys =3D fdt_getprop(fdt, child, KHO_FDT_SUB_TREE_PROP_NAME, &len); if (!fdt_phys) continue; if (len !=3D sizeof(*fdt_phys)) { --=20 2.25.1