From nobody Tue Apr 7 07:29:12 2026 Received: from sender-of-o55.zoho.eu (sender-of-o55.zoho.eu [136.143.169.55]) (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 AFFBC3845C7; Sat, 14 Mar 2026 21:55:36 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=pass smtp.client-ip=136.143.169.55 ARC-Seal: i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1773525338; cv=pass; b=eJUlB+GaAJmEYuHLzONQg4iK3WBvEdi3BblZvudzNUUB4fdAOPgbUcsKGJ62/Vhq5maIdmGO/Qjv0CaYlpeGTO5henEisbbefPmGHd1TLMQQp2fYpL3C5gzUfF3GKfxPJJgtw6fJQ6nnPVyacFHdm3s8ll63/FcYCX/iC2DgT3E= ARC-Message-Signature: i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1773525338; c=relaxed/simple; bh=Y9mfWQWziz20z1wZlyGCqiydfBbJQNFNO/oywEYrkow=; h=From:To:Cc:Subject:Date:Message-Id:In-Reply-To:References: MIME-Version; b=ZKmuqET9jVqGxNAb8HNbG3luQMMv4HiyY9n7aCPDOvJDBegaafI1hB20qZ33psepArlWbbx240qew3fGd26XYa6CswkKgWCSmauDCobRPmm2c30rndWO6IIKNslGtCt6hRQJVRmHdW5aPaKSHltcSkbO89f6MsVQkxy1RamcWj4= ARC-Authentication-Results: i=2; smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=objecting.org; spf=pass smtp.mailfrom=objecting.org; dkim=pass (1024-bit key) header.d=objecting.org header.i=objecting@objecting.org header.b=VdW/b9qc; arc=pass smtp.client-ip=136.143.169.55 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=objecting.org Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=objecting.org Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=objecting.org header.i=objecting@objecting.org header.b="VdW/b9qc" ARC-Seal: i=1; a=rsa-sha256; t=1773525330; cv=none; d=zohomail.eu; s=zohoarc; b=IMtovNCp5+rkaRxH49oXCF+c9OZCAE6KPldnL1QVZvimpySyoiFxxztmfpTdnJN9jZml53pPoaY3SFUilvGlEtaeXsn+m9rROK4yrp+zJWb4g1Jl/a3dK+PDb6eIBmSYevQ7F9L4xtRQms3Cji7GKHenjUo9HxU7pIAe/pirFq8= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.eu; s=zohoarc; t=1773525330; h=Content-Transfer-Encoding:Cc:Cc:Date:Date:From:From:In-Reply-To:MIME-Version:Message-ID:References:Subject:Subject:To:To:Message-Id:Reply-To; bh=hXgtMivk2FUkBDZ0ELim05yAd6enb/8iaNS3/idzO40=; b=Z3Y6CSQscLrXCVv0vip7xC1Ir0ROY/ZpxgALopcKcZIg8noBqco3V3aDq3CmoK2JDYTihcGMi8zBNWjGWp8yWFwMIp+tqndF5yY7WJiGKmpbqGU0u0t5PdwHoBNE2InDtMSpMOQrs3UjxoYhKijOA6A42wcIpwErh37qYP+XPug= ARC-Authentication-Results: i=1; mx.zohomail.eu; dkim=pass header.i=objecting.org; spf=pass smtp.mailfrom=objecting@objecting.org; dmarc=pass header.from= DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; t=1773525330; s=zmail; d=objecting.org; i=objecting@objecting.org; h=From:From:To:To:Cc:Cc:Subject:Subject:Date:Date:Message-Id:Message-Id:In-Reply-To:References:MIME-Version:Content-Transfer-Encoding:Reply-To; bh=hXgtMivk2FUkBDZ0ELim05yAd6enb/8iaNS3/idzO40=; b=VdW/b9qc+Xe9hGr5J2+n3uxg6LzX+Fw9RiGaD0icX+AcLPQgLNy4n5JfNR8xlSgq 2rUHlMJPEQzRDOy1xk3hrEaDQQgqIn87NVGuNhnlzyEbvLYnrE9W5vZhkZh5TOdh9/Y tlcP22yEmRjpfmOw4jOMZx5W+rA9AD6ssD129Np8= Received: by mx.zoho.eu with SMTPS id 1773525328099570.7792511772026; Sat, 14 Mar 2026 22:55:28 +0100 (CET) From: Josh Law To: Masami Hiramatsu , Andrew Morton Cc: linux-trace-kernel@vger.kernel.org, linux-kernel@vger.kernel.org, Josh Law Subject: [PATCH 01/14] lib/bootconfig: add missing __init annotations to static helpers Date: Sat, 14 Mar 2026 21:55:13 +0000 Message-Id: <20260314215526.108651-2-objecting@objecting.org> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20260314215526.108651-1-objecting@objecting.org> References: <20260314215526.108651-1-objecting@objecting.org> 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-ZohoMailClient: External Content-Type: text/plain; charset="utf-8" skip_comment() and skip_spaces_until_newline() are static functions called exclusively from __init code paths but lack the __init annotation themselves. Add it so their memory can be reclaimed after init. Signed-off-by: Josh Law --- lib/bootconfig.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/bootconfig.c b/lib/bootconfig.c index b0ef1e74e98a..51fd2299ec0f 100644 --- a/lib/bootconfig.c +++ b/lib/bootconfig.c @@ -509,7 +509,7 @@ static inline __init bool xbc_valid_keyword(char *key) return *key =3D=3D '\0'; } =20 -static char *skip_comment(char *p) +static char __init *skip_comment(char *p) { char *ret; =20 @@ -522,7 +522,7 @@ static char *skip_comment(char *p) return ret; } =20 -static char *skip_spaces_until_newline(char *p) +static char __init *skip_spaces_until_newline(char *p) { while (isspace(*p) && *p !=3D '\n') p++; --=20 2.34.1 From nobody Tue Apr 7 07:29:12 2026 Received: from sender-of-o55.zoho.eu (sender-of-o55.zoho.eu [136.143.169.55]) (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 65E88386434; Sat, 14 Mar 2026 21:55:37 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=pass smtp.client-ip=136.143.169.55 ARC-Seal: i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1773525339; cv=pass; b=EzqZ2IPUC9eWxVp7j3QW3HtAYs4sDmnWkOuBn3WAgOdM7NjDqO646z7hYsCqVeZ2B/JJhZSFl7G90aMAf+WRTWY+i4VSRcUr7Lzq9J4ZTSR9KdI1rCaBLIVTDAF9ng2wwuPyT942lTqEPXe+1EVuP8/QfspHn2yKmLLnO7HoXXY= ARC-Message-Signature: i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1773525339; c=relaxed/simple; bh=mOcA5NumuG5htRvRiYXxJV6Vjf0pzLdSrtjWwr+L0hk=; h=From:To:Cc:Subject:Date:Message-Id:In-Reply-To:References: MIME-Version; b=Kxi4emL4Sf0VbS5qcMR6kA7R4xQbE8VLSCZUWty+i3apCuh596u20HurZpJbAGE1fKh/Qh6/6sdhZkxI0VWoXWoxk9ySgFCCYNolVC7VSIVwtQ4RiCkwflIU9riH5Ira4on1d261xLpQGqtWrLOHk3wCW23xvTwaTeA0tyTttxU= ARC-Authentication-Results: i=2; smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=objecting.org; spf=pass smtp.mailfrom=objecting.org; dkim=pass (1024-bit key) header.d=objecting.org header.i=objecting@objecting.org header.b=R1KdWIMu; arc=pass smtp.client-ip=136.143.169.55 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=objecting.org Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=objecting.org Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=objecting.org header.i=objecting@objecting.org header.b="R1KdWIMu" ARC-Seal: i=1; a=rsa-sha256; t=1773525330; cv=none; d=zohomail.eu; s=zohoarc; b=bereKoItcpkYektrbOwzkeWtTS2OWTvGXO/VMucZDqzcei3kutak1rAPOuzopFRRs9izzez/XDw/siVIJhRHJjo33yJ3/SkapZoa1BiToIm/Ct81ExIyvP1T9Nfu2OdWyroI1bfhJifgfum78YmU+piLAAgLPleqOZAfdsEEyGY= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.eu; s=zohoarc; t=1773525330; h=Content-Transfer-Encoding:Cc:Cc:Date:Date:From:From:In-Reply-To:MIME-Version:Message-ID:References:Subject:Subject:To:To:Message-Id:Reply-To; bh=RNVEZU5OMpS4t6chZVfYPFtX6E6ANKPvlBhC6PXo744=; b=TTFrOLTRIwudjB6fyHGfETXXtoE/BMPkHjKSoexT6gV/yv8ctFsqeF1mhKALUdWTP/tp3Luq9djHqGKWWTzZ2QnZ4L6ebKGNnDWuUS3A1tAUZWdfW0eC5s+QYpQEy+/gZEBdsCIQJQtwzLU/iXMAkLDFpMQ9xR6uAM39xPXEfTI= ARC-Authentication-Results: i=1; mx.zohomail.eu; dkim=pass header.i=objecting.org; spf=pass smtp.mailfrom=objecting@objecting.org; dmarc=pass header.from= DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; t=1773525330; s=zmail; d=objecting.org; i=objecting@objecting.org; h=From:From:To:To:Cc:Cc:Subject:Subject:Date:Date:Message-Id:Message-Id:In-Reply-To:References:MIME-Version:Content-Transfer-Encoding:Reply-To; bh=RNVEZU5OMpS4t6chZVfYPFtX6E6ANKPvlBhC6PXo744=; b=R1KdWIMutACdfYwFZfMMwBJwbvrHkM0OLTr+tPGSvFotnWVadvY4ZLIkcbTj/xNb 897RUGzjOe1UlxZIRKNvGooAXyK0O6MMYbEONvQl8/NKhZk6VcDzH7Nl9cW5kMk2u+r OnUSbvEQoE4ejeA5Aw/WQIAI0GFNvvje02olhm6o= Received: by mx.zoho.eu with SMTPS id 1773525328647370.8991259590367; Sat, 14 Mar 2026 22:55:28 +0100 (CET) From: Josh Law To: Masami Hiramatsu , Andrew Morton Cc: linux-trace-kernel@vger.kernel.org, linux-kernel@vger.kernel.org, Josh Law Subject: [PATCH 02/14] lib/bootconfig: fix typo "initiized" in xbc_root_node() kerneldoc Date: Sat, 14 Mar 2026 21:55:14 +0000 Message-Id: <20260314215526.108651-3-objecting@objecting.org> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20260314215526.108651-1-objecting@objecting.org> References: <20260314215526.108651-1-objecting@objecting.org> 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-ZohoMailClient: External Content-Type: text/plain; charset="utf-8" Signed-off-by: Josh Law --- lib/bootconfig.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/bootconfig.c b/lib/bootconfig.c index 51fd2299ec0f..53aedc042f6e 100644 --- a/lib/bootconfig.c +++ b/lib/bootconfig.c @@ -112,7 +112,7 @@ static int __init xbc_parse_error(const char *msg, cons= t char *p) * xbc_root_node() - Get the root node of extended boot config * * Return the address of root node of extended boot config. If the - * extended boot config is not initiized, return NULL. + * extended boot config is not initialized, return NULL. */ struct xbc_node * __init xbc_root_node(void) { --=20 2.34.1 From nobody Tue Apr 7 07:29:12 2026 Received: from sender-of-o55.zoho.eu (sender-of-o55.zoho.eu [136.143.169.55]) (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 BAB0D3859DB; Sat, 14 Mar 2026 21:55:38 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=pass smtp.client-ip=136.143.169.55 ARC-Seal: i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1773525340; cv=pass; b=OarDn5I26yH2xc7S72IE0lSr09F3PpHWzPKLRnYgD4ewlqLak+7OkFHeA3J0QXnjOEC3hwq4Rt+IeL0jhNs4JKSQzA2RmpS42xnfnuHWSHVzxofbgQ5IOju29LRNVC3eBZe6CePglrIp2wlWzP51+stEXeAftxaLsmIviuIyMWM= ARC-Message-Signature: i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1773525340; c=relaxed/simple; bh=UvLyNGwexYo2cn8ocKvKWmvyhLSh4vWkr9PLO2DssME=; h=From:To:Cc:Subject:Date:Message-Id:In-Reply-To:References: MIME-Version; b=kfqe6y14F20y/hEsXNGjySf9VNrQ68870s6Hqs9Euut3+eklZPODtvLaIZHMYWNd6WpbdNa2OHgjfuEIndk/vzE6UB04IzKug1fF20WhIsMTqgMgpQSjYZMa+VzGcCOItoGFgslXZo0aUkcF85THsTD4jnDs4iIzIMLpZwfPipc= ARC-Authentication-Results: i=2; smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=objecting.org; spf=pass smtp.mailfrom=objecting.org; dkim=pass (1024-bit key) header.d=objecting.org header.i=objecting@objecting.org header.b=QHq2URUI; arc=pass smtp.client-ip=136.143.169.55 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=objecting.org Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=objecting.org Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=objecting.org header.i=objecting@objecting.org header.b="QHq2URUI" ARC-Seal: i=1; a=rsa-sha256; t=1773525331; cv=none; d=zohomail.eu; s=zohoarc; b=bltVm8fyTWtN97y0Aaay6LEYGlVIxmv1a6UEEpjmr/LltYviFz8t87ecywAAZLV9iLUglfWZZ7H0MdaWOwN/wxFeP/ok3rYpcOEXneRBRhIxK4iDnt2LCUZ9O0B8FW+2t459V7g3Sm/aa1REtjQ7c/bKUaF02UUAQzTz4tyTaiA= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.eu; s=zohoarc; t=1773525331; h=Content-Transfer-Encoding:Cc:Cc:Date:Date:From:From:In-Reply-To:MIME-Version:Message-ID:References:Subject:Subject:To:To:Message-Id:Reply-To; bh=cBOmSVZK/tdF2G9FHoUjRcgfEXBwIZcdPH0TEKRTIUc=; b=jh5uSn2WO0TiVyd9E5aNI6VMX4Cx1np7aevq8ZsIwyLdsM4at5qud+wrAXLt7rFz1Kfb4vY6lJ6hV71FoDTLAf+dX0J6XIlq4Gxiow7fGKixpibi/Xx1n6TFTJ38GDswzRZxUrSc7Gi3Ogy154sj820VoYEbKgj7nD6SWs26N5Y= ARC-Authentication-Results: i=1; mx.zohomail.eu; dkim=pass header.i=objecting.org; spf=pass smtp.mailfrom=objecting@objecting.org; dmarc=pass header.from= DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; t=1773525331; s=zmail; d=objecting.org; i=objecting@objecting.org; h=From:From:To:To:Cc:Cc:Subject:Subject:Date:Date:Message-Id:Message-Id:In-Reply-To:References:MIME-Version:Content-Transfer-Encoding:Reply-To; bh=cBOmSVZK/tdF2G9FHoUjRcgfEXBwIZcdPH0TEKRTIUc=; b=QHq2URUIz0d+fRdvAFyZNgPB282L2XodyHSKaxMG3GbynAipHyvAUO6kP+xGDpNy m0BjI7clubF34TRDlGeJrCl+lKmVLuEkNShpqm3c/VuCSzPKmubf9ccMyTHZMQCC3lx //TrHQeZQMBAp7A19XaDUGWZeLI80BQZW+pL3Smg= Received: by mx.zoho.eu with SMTPS id 1773525329191788.0995050991733; Sat, 14 Mar 2026 22:55:29 +0100 (CET) From: Josh Law To: Masami Hiramatsu , Andrew Morton Cc: linux-trace-kernel@vger.kernel.org, linux-kernel@vger.kernel.org, Josh Law Subject: [PATCH 03/14] lib/bootconfig: fix typo "uder" in xbc_node_find_next_leaf() Date: Sat, 14 Mar 2026 21:55:15 +0000 Message-Id: <20260314215526.108651-4-objecting@objecting.org> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20260314215526.108651-1-objecting@objecting.org> References: <20260314215526.108651-1-objecting@objecting.org> 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-ZohoMailClient: External Content-Type: text/plain; charset="utf-8" Signed-off-by: Josh Law --- lib/bootconfig.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/bootconfig.c b/lib/bootconfig.c index 53aedc042f6e..35091617bca5 100644 --- a/lib/bootconfig.c +++ b/lib/bootconfig.c @@ -364,7 +364,7 @@ struct xbc_node * __init xbc_node_find_next_leaf(struct= xbc_node *root, node =3D xbc_node_get_parent(node); if (node =3D=3D root) return NULL; - /* User passed a node which is not uder parent */ + /* User passed a node which is not under parent */ if (WARN_ON(!node)) return NULL; } --=20 2.34.1 From nobody Tue Apr 7 07:29:12 2026 Received: from sender-of-o55.zoho.eu (sender-of-o55.zoho.eu [136.143.169.55]) (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 3DB293859CB; Sat, 14 Mar 2026 21:55:38 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=pass smtp.client-ip=136.143.169.55 ARC-Seal: i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1773525340; cv=pass; b=XjgbW950peY8SYDFZ7rwQMyZSG3AiB15988ULPc2l52fPrVOjlaMTCbsEAqJTKIJuxYWINmgUavvAOdgrzfSNYZpaIk1nP0tWLmEzH3mx07C4uHIJMne8Zm/iczXT/NgI8AtUnh/v0x8bRAY3iTx8Y1yFN466syzi2bD6G2rV7g= ARC-Message-Signature: i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1773525340; c=relaxed/simple; bh=6svVtZsg6MEUjaimzvi33uip35p+FZFQJNiBWVQzsKk=; h=From:To:Cc:Subject:Date:Message-Id:In-Reply-To:References: MIME-Version; b=cF2I0ipGBaOC61IduwKajLchw99xfXnrU9KL5Z3LVD85ONhTN+t2vfVq8QeM8lpnkNHvvYHW8/ElRsNN1BZgqJePOJlDaVGKw0YJPoG+Z+3zU3o+Y4mCDIdMPu11uQ4bOMF1Rlj8lAeoaYEMCW9fmFNN7OODoHbIqZrlhKFRou0= ARC-Authentication-Results: i=2; smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=objecting.org; spf=pass smtp.mailfrom=objecting.org; dkim=pass (1024-bit key) header.d=objecting.org header.i=objecting@objecting.org header.b=FJ/H6GSh; arc=pass smtp.client-ip=136.143.169.55 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=objecting.org Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=objecting.org Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=objecting.org header.i=objecting@objecting.org header.b="FJ/H6GSh" ARC-Seal: i=1; a=rsa-sha256; t=1773525331; cv=none; d=zohomail.eu; s=zohoarc; b=BIV1u2WoYhFoIR5FmK5UkZdLqpxsFqGRFzBxPGBZeJxrEv9eza4hoIfpMiQv4vvLiYUeh8kezv7oy+4cy1mHwSAE0BNGKsCOWN2zMJOcsBS3PHB9LYLwycGiCTDEe8KHJ5Fs/Ki/1yr6Ut+HnM/WUrHJtiMEr7XJWiUe2iVQS98= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.eu; s=zohoarc; t=1773525331; h=Content-Transfer-Encoding:Cc:Cc:Date:Date:From:From:In-Reply-To:MIME-Version:Message-ID:References:Subject:Subject:To:To:Message-Id:Reply-To; bh=fWLmQp+E+iKxPqtXRglbvpsORXtw/1BYKl9r2jjl73I=; b=gtyGOya/1IKS/Pd5SGiZVtGyuRxaQu6AQMq1bWrAcob5ge2nQe5MKTHtBbBOSAOmxNtr9CPEbLV3C14Hd9Vqz/nyC/YLI/Tmq6UMs7XK1tgB8t6z+3hV6s3cSzXh1sb0C6hMXEWtiGxdULQA53YNrjEx5J3x6ZNhZIWABNP3Ie0= ARC-Authentication-Results: i=1; mx.zohomail.eu; dkim=pass header.i=objecting.org; spf=pass smtp.mailfrom=objecting@objecting.org; dmarc=pass header.from= DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; t=1773525331; s=zmail; d=objecting.org; i=objecting@objecting.org; h=From:From:To:To:Cc:Cc:Subject:Subject:Date:Date:Message-Id:Message-Id:In-Reply-To:References:MIME-Version:Content-Transfer-Encoding:Reply-To; bh=fWLmQp+E+iKxPqtXRglbvpsORXtw/1BYKl9r2jjl73I=; b=FJ/H6GShLNpox7RBuyWmn4OCTsoZ+U++7tahoX4dn5TIdtjz2oJy922Mj/8Htxjv 9KS+sU3cgefXsz+lUWKxEbUHJ8k94rRLmeqpbtQfH9I7yZE+Q/Jfif5ztOiacnuJXCR 2p22R57HZFUgYqlIdh8g6bHTHhnXlqYvxLy/9y6I= Received: by mx.zoho.eu with SMTPS id 1773525329731332.48671757054876; Sat, 14 Mar 2026 22:55:29 +0100 (CET) From: Josh Law To: Masami Hiramatsu , Andrew Morton Cc: linux-trace-kernel@vger.kernel.org, linux-kernel@vger.kernel.org, Josh Law Subject: [PATCH 04/14] lib/bootconfig: add blank line before xbc_get_info() kerneldoc Date: Sat, 14 Mar 2026 21:55:16 +0000 Message-Id: <20260314215526.108651-5-objecting@objecting.org> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20260314215526.108651-1-objecting@objecting.org> References: <20260314215526.108651-1-objecting@objecting.org> 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-ZohoMailClient: External Content-Type: text/plain; charset="utf-8" Signed-off-by: Josh Law --- lib/bootconfig.c | 1 + 1 file changed, 1 insertion(+) diff --git a/lib/bootconfig.c b/lib/bootconfig.c index 35091617bca5..e955d2f7e7ca 100644 --- a/lib/bootconfig.c +++ b/lib/bootconfig.c @@ -79,6 +79,7 @@ static inline void xbc_free_mem(void *addr, size_t size, = bool early) free(addr); } #endif + /** * xbc_get_info() - Get the information of loaded boot config * @node_size: A pointer to store the number of nodes. --=20 2.34.1 From nobody Tue Apr 7 07:29:12 2026 Received: from sender-of-o55.zoho.eu (sender-of-o55.zoho.eu [136.143.169.55]) (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 711EE38644E; Sat, 14 Mar 2026 21:55:38 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=pass smtp.client-ip=136.143.169.55 ARC-Seal: i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1773525340; cv=pass; b=p0kGBV9rZ7Mzjj4WGOLnLC7aOLKHz8cDTRP1SAixgF668FdEcY2L/dHmJSfRYqzkAYRiTLDpznKnpHL8wG/7VaI0NyCascyUxr0wtQyFP585G5jPKeUjXof+OmIxKJVb9uOe8izUixySyUZrnrwebI7KCaoP/tHWhlHNw46QMxk= ARC-Message-Signature: i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1773525340; c=relaxed/simple; bh=Ca2yOMLol0eXm8Z93sdZF0uzxBHDnoJJ5YjTb0UjCSg=; h=From:To:Cc:Subject:Date:Message-Id:In-Reply-To:References: MIME-Version; b=Wa8PW7wPn1+mA9mKGZEnIOCvPJD843Fs7bjFxaCvZ8o5AAiYFLCgj19BzpdXpOE8rONDL3wQ4P+CLMDbn5xD/mjjk65/Lu4AN7ykeWHI/vY03KyQmJABAaplqOw+KC+GiiVCebxNeUjWgcy9EQ/xdzY8kyitRTbFLWuyXrcvud4= ARC-Authentication-Results: i=2; smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=objecting.org; spf=pass smtp.mailfrom=objecting.org; dkim=pass (1024-bit key) header.d=objecting.org header.i=objecting@objecting.org header.b=B74gYtpY; arc=pass smtp.client-ip=136.143.169.55 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=objecting.org Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=objecting.org Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=objecting.org header.i=objecting@objecting.org header.b="B74gYtpY" ARC-Seal: i=1; a=rsa-sha256; t=1773525332; cv=none; d=zohomail.eu; s=zohoarc; b=dgycDmnQ7bZ22H1sei1ZsnrqYLU5lff5ZiyDr/+2HGeev09aFEqBs7tLt3J6uMA2+GrVt2cygbdJAdgsQP3u116dUBrUtWK61lUSqWIrtWwM7zaM0jpMPsA4rzjyIn4mvpzXuHVeySLib9qGWh3IKa15pvKaS34CZgvOvKKLcZk= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.eu; s=zohoarc; t=1773525332; h=Content-Transfer-Encoding:Cc:Cc:Date:Date:From:From:In-Reply-To:MIME-Version:Message-ID:References:Subject:Subject:To:To:Message-Id:Reply-To; bh=M861Pari/lV9kRCqOVfEViiGvsDrnuYG9MG+0z+YaXE=; b=iaNu5qElkyxh3Grm+1d5gQuRSIuYu3utl/UCfMEH0IdINxMinQqOs5GDX01k+QXVXF+cSqqmJWzBOSqqVC2hJTgib4hTn9aA60YBWkocubvvJHXW2u1UdohR/4UFDoZ5mwBuydV6ra1ZDSZNjaddsaBXHr2odbUDuE5rUqsXiZ8= ARC-Authentication-Results: i=1; mx.zohomail.eu; dkim=pass header.i=objecting.org; spf=pass smtp.mailfrom=objecting@objecting.org; dmarc=pass header.from= DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; t=1773525332; s=zmail; d=objecting.org; i=objecting@objecting.org; h=From:From:To:To:Cc:Cc:Subject:Subject:Date:Date:Message-Id:Message-Id:In-Reply-To:References:MIME-Version:Content-Transfer-Encoding:Reply-To; bh=M861Pari/lV9kRCqOVfEViiGvsDrnuYG9MG+0z+YaXE=; b=B74gYtpYSdqxaxQKvJAGfxBKn5byN3Nsf53CWNU8etvk5bC+9TUrxNZDR0NNofDl dzJW+0E+C2uxPDRerPvyYQRnF7IuDzhfi2Fy3Kq3TNArqyKVI2br+2EWa4mFYyxrzAP 99bNcvwubiQeUy9QmOHDcI7Ay2KVvh3XLzRPp+ME= Received: by mx.zoho.eu with SMTPS id 177352533025092.62113320692242; Sat, 14 Mar 2026 22:55:30 +0100 (CET) From: Josh Law To: Masami Hiramatsu , Andrew Morton Cc: linux-trace-kernel@vger.kernel.org, linux-kernel@vger.kernel.org, Josh Law Subject: [PATCH 05/14] lib/bootconfig: fix inconsistent if/else bracing Date: Sat, 14 Mar 2026 21:55:17 +0000 Message-Id: <20260314215526.108651-6-objecting@objecting.org> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20260314215526.108651-1-objecting@objecting.org> References: <20260314215526.108651-1-objecting@objecting.org> 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-ZohoMailClient: External Content-Type: text/plain; charset="utf-8" When one branch of a conditional uses braces, both branches should use them per kernel coding style. Signed-off-by: Josh Law --- lib/bootconfig.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/lib/bootconfig.c b/lib/bootconfig.c index e955d2f7e7ca..45db51bc9cc7 100644 --- a/lib/bootconfig.c +++ b/lib/bootconfig.c @@ -473,8 +473,9 @@ static struct xbc_node * __init __xbc_add_sibling(char = *data, uint32_t flag, boo sib->next =3D xbc_node_index(node); } } - } else + } else { xbc_parse_error("Too many nodes", data); + } =20 return node; } @@ -992,8 +993,9 @@ int __init xbc_init(const char *data, size_t size, cons= t char **emsg, int *epos) if (emsg) *emsg =3D xbc_err_msg; _xbc_exit(true); - } else + } else { ret =3D xbc_node_num; + } =20 return ret; } --=20 2.34.1 From nobody Tue Apr 7 07:29:12 2026 Received: from sender-of-o55.zoho.eu (sender-of-o55.zoho.eu [136.143.169.55]) (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 EB177386555; Sat, 14 Mar 2026 21:55:38 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=pass smtp.client-ip=136.143.169.55 ARC-Seal: i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1773525341; cv=pass; b=i+uAe5jqGM56wPVI9PDIz8xTU1AfH5FK0yHDc7WLmMPBFG8Ec1zuWNiTampJYqZB1gy8kGv6IGo7pAXM1D2D2GhJleVgxKZlGEGa4f0P3zHyBej9kmy+FNa5fgCTiV6wQ9v+c761UWJc4p4FCgUFus1ANjThrgmYkNQCSbWVLZk= ARC-Message-Signature: i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1773525341; c=relaxed/simple; bh=DRP0bkR7bPm24iP6Lzhg3tEJBN+s2+Bet778OjDqUXs=; h=From:To:Cc:Subject:Date:Message-Id:In-Reply-To:References: MIME-Version; b=Oiu1SmZ0NSYyBqd3N2jQymsWSotzn21vzVeUhTY/sdqpgF7iiBFlIklG4OJWTsWEDo3ipRi97H+gR9QPny+XhsyS+MXKER+cQ0SvvD+SmxLC/dCkqYzKirX6Z7jK9XLWwpB0/JklsyYIZVUtyRgeCA/HXdDscbJ+IGTAVYjk9r4= ARC-Authentication-Results: i=2; smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=objecting.org; spf=pass smtp.mailfrom=objecting.org; dkim=pass (1024-bit key) header.d=objecting.org header.i=objecting@objecting.org header.b=fVN2rFhH; arc=pass smtp.client-ip=136.143.169.55 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=objecting.org Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=objecting.org Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=objecting.org header.i=objecting@objecting.org header.b="fVN2rFhH" ARC-Seal: i=1; a=rsa-sha256; t=1773525332; cv=none; d=zohomail.eu; s=zohoarc; b=i33YKukZFcGBa9uqnCKZZZ/ycWTQAXYQ7vNB6lYO3mIABNYfSJr/2B1FCxgvlhYCkynJH0uFct0ckNP7pttusE8WOITsqf69mBkyLRPEeq6L6jqHkE2MDj/CKaaf4yg4UVddDrM3T4wMp69FuuWJ4I9DjDCTTiGbH+EK1uKE4Tg= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.eu; s=zohoarc; t=1773525332; h=Content-Transfer-Encoding:Cc:Cc:Date:Date:From:From:In-Reply-To:MIME-Version:Message-ID:References:Subject:Subject:To:To:Message-Id:Reply-To; bh=Xeupn9cKPxiPKbISrjkPHMR3deW24vI0PqVo9Jq/DYc=; b=TGYIm801TeLQtw2aulkY8eL/ae384EnY2hyH9Hjx4vw+qEwSr7MhsaIbjpd7sQissZJRtBYjZBQ8eDHWsWjIwTVSGn76QBWCNy/CBX8ilyew1RXYFhvOZn3iqtZ8ZlW3CFsZmCiRlBJWFakzJ4tSbwL9peUdy/bNoACc34scXqA= ARC-Authentication-Results: i=1; mx.zohomail.eu; dkim=pass header.i=objecting.org; spf=pass smtp.mailfrom=objecting@objecting.org; dmarc=pass header.from= DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; t=1773525332; s=zmail; d=objecting.org; i=objecting@objecting.org; h=From:From:To:To:Cc:Cc:Subject:Subject:Date:Date:Message-Id:Message-Id:In-Reply-To:References:MIME-Version:Content-Transfer-Encoding:Reply-To; bh=Xeupn9cKPxiPKbISrjkPHMR3deW24vI0PqVo9Jq/DYc=; b=fVN2rFhHzJWIFU4zjVuiLK5dYsZzYiaYb+Wc3wgfTb17OxL4T/slIo3u59dnLpr8 7tzW220GiUQnxR9FnWTAW5WTaJLFLWXsgV/ANW3LdcRbPO4s17L4wELlTfNtkt1UX4A IlIg01sGriRhx8v2XSLR87St3JbT8WxdaOgIkvxM= Received: by mx.zoho.eu with SMTPS id 1773525330771801.6178097395064; Sat, 14 Mar 2026 22:55:30 +0100 (CET) From: Josh Law To: Masami Hiramatsu , Andrew Morton Cc: linux-trace-kernel@vger.kernel.org, linux-kernel@vger.kernel.org, Josh Law Subject: [PATCH 06/14] lib/bootconfig: narrow flag parameter type from uint32_t to uint16_t Date: Sat, 14 Mar 2026 21:55:18 +0000 Message-Id: <20260314215526.108651-7-objecting@objecting.org> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20260314215526.108651-1-objecting@objecting.org> References: <20260314215526.108651-1-objecting@objecting.org> 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-ZohoMailClient: External Content-Type: text/plain; charset="utf-8" The flag parameter in the node creation helpers only ever carries XBC_KEY (0) or XBC_VALUE (0x8000), both of which fit in uint16_t. Using uint16_t matches the width of xbc_node.data where the flag is ultimately stored. Signed-off-by: Josh Law --- lib/bootconfig.c | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/lib/bootconfig.c b/lib/bootconfig.c index 45db51bc9cc7..34bdc2d13881 100644 --- a/lib/bootconfig.c +++ b/lib/bootconfig.c @@ -408,7 +408,7 @@ const char * __init xbc_node_find_next_key_value(struct= xbc_node *root, =20 /* XBC parse and tree build */ =20 -static int __init xbc_init_node(struct xbc_node *node, char *data, uint32_= t flag) +static int __init xbc_init_node(struct xbc_node *node, char *data, uint16_= t flag) { unsigned long offset =3D data - xbc_data; =20 @@ -422,7 +422,7 @@ static int __init xbc_init_node(struct xbc_node *node, = char *data, uint32_t flag return 0; } =20 -static struct xbc_node * __init xbc_add_node(char *data, uint32_t flag) +static struct xbc_node * __init xbc_add_node(char *data, uint16_t flag) { struct xbc_node *node; =20 @@ -452,7 +452,7 @@ static inline __init struct xbc_node *xbc_last_child(st= ruct xbc_node *node) return node; } =20 -static struct xbc_node * __init __xbc_add_sibling(char *data, uint32_t fla= g, bool head) +static struct xbc_node * __init __xbc_add_sibling(char *data, uint16_t fla= g, bool head) { struct xbc_node *sib, *node =3D xbc_add_node(data, flag); =20 @@ -480,17 +480,17 @@ static struct xbc_node * __init __xbc_add_sibling(cha= r *data, uint32_t flag, boo return node; } =20 -static inline struct xbc_node * __init xbc_add_sibling(char *data, uint32_= t flag) +static inline struct xbc_node * __init xbc_add_sibling(char *data, uint16_= t flag) { return __xbc_add_sibling(data, flag, false); } =20 -static inline struct xbc_node * __init xbc_add_head_sibling(char *data, ui= nt32_t flag) +static inline struct xbc_node * __init xbc_add_head_sibling(char *data, ui= nt16_t flag) { return __xbc_add_sibling(data, flag, true); } =20 -static inline __init struct xbc_node *xbc_add_child(char *data, uint32_t f= lag) +static inline __init struct xbc_node *xbc_add_child(char *data, uint16_t f= lag) { struct xbc_node *node =3D xbc_add_sibling(data, flag); =20 --=20 2.34.1 From nobody Tue Apr 7 07:29:12 2026 Received: from sender-of-o55.zoho.eu (sender-of-o55.zoho.eu [136.143.169.55]) (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 5B406386C0C; Sat, 14 Mar 2026 21:55:39 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=pass smtp.client-ip=136.143.169.55 ARC-Seal: i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1773525343; cv=pass; b=H7NGTxj9tP4tiZR6+vGcgIUBRM03/23AXSWL8MWMaQiKwXyFEMgT778bHqbdZpYRwEoPE0TEDCSkkLWfqXZYeI+4O9QoqDRg7GNiMO7T7cnoW8s3dl9hp3DG/NLLtcvDKPze726XZ0tkCIH1o5AEeFOTf1rTpOcfAOe3faXLdpg= ARC-Message-Signature: i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1773525343; c=relaxed/simple; bh=MjX+L5BkroUgaRrcSwrGDKK9It5hNznJ9Ds+whNCQGc=; h=From:To:Cc:Subject:Date:Message-Id:In-Reply-To:References: MIME-Version; b=qA/K+e67Mmy2Q2tEA0Vsg3H4giLOw6RqW6VbWh3AQa+0QUXxTNQed/i6KylE3Ggj6iyc/NeGuay4HOfC4L3DMKV5lKv5YxNZl0GW8zuIqARYNJk+yh+Ong5In1FMk0m7n9UBT0wnBR4xDR43RebKfOtcr4G3CUFQJ4pqmC/INBo= ARC-Authentication-Results: i=2; smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=objecting.org; spf=pass smtp.mailfrom=objecting.org; dkim=pass (1024-bit key) header.d=objecting.org header.i=objecting@objecting.org header.b=FZyorZzV; arc=pass smtp.client-ip=136.143.169.55 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=objecting.org Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=objecting.org Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=objecting.org header.i=objecting@objecting.org header.b="FZyorZzV" ARC-Seal: i=1; a=rsa-sha256; t=1773525333; cv=none; d=zohomail.eu; s=zohoarc; b=Rfd9vyfh/fds/mMv+yo6R0DTrExSkP5d31FqmmgjD2NRHzKZnEyDu6WPXqQkFwOhJUm9IZujjvZxcnF8xyUOJdfw8h3yASFsL4Tk16RiGeF97ijjYuuy2FNbvvVH9saVuuIqsOqWHAX2wBRLb8skvhQTL385WaYcaakZN+m5nV0= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.eu; s=zohoarc; t=1773525333; h=Content-Transfer-Encoding:Cc:Cc:Date:Date:From:From:In-Reply-To:MIME-Version:Message-ID:References:Subject:Subject:To:To:Message-Id:Reply-To; bh=6vqu+catdL+p5SuHEICmEvrCdVO4BKlL3X6/JARWFjI=; b=GovuVFBSwD/zOIFpG1y5DajKbyiJ9sxtS96ljCmWeFBlGNxNmt38ufpu6hM204m1KCDg1KZLFR5vgxl+kvqMSsuwNiMwwALJK3I13ET3B8+Q/3Key1u0t1cAFy6yWHNyyXU7b7tkv+zwd+uiZ4wQMJKVxSYvXMXn4iTrLcD68ms= ARC-Authentication-Results: i=1; mx.zohomail.eu; dkim=pass header.i=objecting.org; spf=pass smtp.mailfrom=objecting@objecting.org; dmarc=pass header.from= DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; t=1773525333; s=zmail; d=objecting.org; i=objecting@objecting.org; h=From:From:To:To:Cc:Cc:Subject:Subject:Date:Date:Message-Id:Message-Id:In-Reply-To:References:MIME-Version:Content-Transfer-Encoding:Reply-To; bh=6vqu+catdL+p5SuHEICmEvrCdVO4BKlL3X6/JARWFjI=; b=FZyorZzVrpI+FGKswIrWOFUPkCA6+5GerBfKbjsLoLND9BdqQF3LEpxQnfJw+qWA m1+gvBZiTgkeHqI+63aWxZxEIolUXNQP41BW6VAFEp1XCXWrs/GvxIIIFuvsUqJBCWC LYkkeIxSEwQjbGn9VmXErmvQWpO1ZJTYYflI2+mY= Received: by mx.zoho.eu with SMTPS id 1773525331339673.1430768261707; Sat, 14 Mar 2026 22:55:31 +0100 (CET) From: Josh Law To: Masami Hiramatsu , Andrew Morton Cc: linux-trace-kernel@vger.kernel.org, linux-kernel@vger.kernel.org, Josh Law Subject: [PATCH 07/14] lib/bootconfig: fix inconsistent if/else bracing in __xbc_add_key() Date: Sat, 14 Mar 2026 21:55:19 +0000 Message-Id: <20260314215526.108651-8-objecting@objecting.org> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20260314215526.108651-1-objecting@objecting.org> References: <20260314215526.108651-1-objecting@objecting.org> 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-ZohoMailClient: External Content-Type: text/plain; charset="utf-8" Signed-off-by: Josh Law --- lib/bootconfig.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/lib/bootconfig.c b/lib/bootconfig.c index 34bdc2d13881..58d6ae297280 100644 --- a/lib/bootconfig.c +++ b/lib/bootconfig.c @@ -657,9 +657,9 @@ static int __init __xbc_add_key(char *k) if (unlikely(xbc_node_num =3D=3D 0)) goto add_node; =20 - if (!last_parent) /* the first level */ + if (!last_parent) { /* the first level */ node =3D find_match_node(xbc_nodes, k); - else { + } else { child =3D xbc_node_get_child(last_parent); /* Since the value node is the first child, skip it. */ if (child && xbc_node_is_value(child)) @@ -667,9 +667,9 @@ static int __init __xbc_add_key(char *k) node =3D find_match_node(child, k); } =20 - if (node) + if (node) { last_parent =3D node; - else { + } else { add_node: node =3D xbc_add_child(k, XBC_KEY); if (!node) --=20 2.34.1 From nobody Tue Apr 7 07:29:12 2026 Received: from sender-of-o55.zoho.eu (sender-of-o55.zoho.eu [136.143.169.55]) (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 DA87F388361; Sat, 14 Mar 2026 21:55:41 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=pass smtp.client-ip=136.143.169.55 ARC-Seal: i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1773525345; cv=pass; b=GzT2YW8AHxY6RYey0ui5teIWupimy8deIr2LGqA3LcsHqoaP9bWHkG0dPcwc/NTGAxHAAW8pnHJCqyVWwx62S4rFb2uSwB8WKaJQaKIXZZ3fcZyAfrdw/tLGqRq9DLKL72MNtwH6kAsoiRSE6iedSVWg3Q1Hu5yD/E/rVC57d+A= ARC-Message-Signature: i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1773525345; c=relaxed/simple; bh=kDcgT5gXzTP1fqOGMdxALgedri0gVcD3is/FfzavjKc=; h=From:To:Cc:Subject:Date:Message-Id:In-Reply-To:References: MIME-Version; b=pyQRWg0oRW0uJtEL9TyCMtoLxuul6+uCGJXBLQzN6Uj++jNLtiXGbpaO21aBnWhi+y1qiC46DMjVYBrWsyjoko9DtUeQmV3uJKCx/RT8M+ENuI2FGGWnbeDA6N1oVh9UYJDx2Auh8ZQEESSTtBrhyF1f6BTcU4O2JzYg6ijrTzI= ARC-Authentication-Results: i=2; smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=objecting.org; spf=pass smtp.mailfrom=objecting.org; dkim=pass (1024-bit key) header.d=objecting.org header.i=objecting@objecting.org header.b=KTRYQltc; arc=pass smtp.client-ip=136.143.169.55 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=objecting.org Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=objecting.org Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=objecting.org header.i=objecting@objecting.org header.b="KTRYQltc" ARC-Seal: i=1; a=rsa-sha256; t=1773525335; cv=none; d=zohomail.eu; s=zohoarc; b=em1Cl6iATnY8Jvn8SR2LOpKmQ19zTbwWCImQ1DzcxGREmhVdJnfgKmba0SN3jDLKLSFnubH+uJN7CawwAmC9IH8N6dAzKLZxRXud40AcQAkr+IIg6uy6dEV+8VKESJX/CwgkzXsUh/5NdjzbezAh7zKcNNfjv20HyCz/Y8djpLk= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.eu; s=zohoarc; t=1773525335; h=Content-Transfer-Encoding:Cc:Cc:Date:Date:From:From:In-Reply-To:MIME-Version:Message-ID:References:Subject:Subject:To:To:Message-Id:Reply-To; bh=7bmeZKaQTYKiPdWWEUmU4EJNbpBFQlYVqCIGyMl5PZg=; b=MFrTMWF76wshT/3YmPXyiHfqOWNTxvnBSpdBlXsaat8lB55UcZ3ZD/6A5eQTsVZn83Xq0MhtcpTXxor1zMK5VAKULeEe3TuZ+wFnyWFDQbZshSksaPnI7GInnbB9zPLg/jPWZ4UkayWh0t+mKoNbAa9C6bE+/7jNAc3Vj1BdF8M= ARC-Authentication-Results: i=1; mx.zohomail.eu; dkim=pass header.i=objecting.org; spf=pass smtp.mailfrom=objecting@objecting.org; dmarc=pass header.from= DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; t=1773525335; s=zmail; d=objecting.org; i=objecting@objecting.org; h=From:From:To:To:Cc:Cc:Subject:Subject:Date:Date:Message-Id:Message-Id:In-Reply-To:References:MIME-Version:Content-Transfer-Encoding:Reply-To; bh=7bmeZKaQTYKiPdWWEUmU4EJNbpBFQlYVqCIGyMl5PZg=; b=KTRYQltc5adYiyA3hC65a7LjAPh1K67CTw4JHKYO8k67LWko2V6hBnb0DmJ6geOz 9BzdPKmlAsKPfLAeTjvjL2zCgqLRk/Z5MINYE1f1gdkl3g0kETHKXfnx9AW917RihT2 r4Dmh4dz24ft/eztMJPzSzopNBuHvzkHP5oxmdoA= Received: by mx.zoho.eu with SMTPS id 1773525331915186.41809130320257; Sat, 14 Mar 2026 22:55:31 +0100 (CET) From: Josh Law To: Masami Hiramatsu , Andrew Morton Cc: linux-trace-kernel@vger.kernel.org, linux-kernel@vger.kernel.org, Josh Law Subject: [PATCH 08/14] lib/bootconfig: fix off-by-one in xbc_verify_tree() next node check Date: Sat, 14 Mar 2026 21:55:20 +0000 Message-Id: <20260314215526.108651-9-objecting@objecting.org> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20260314215526.108651-1-objecting@objecting.org> References: <20260314215526.108651-1-objecting@objecting.org> 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-ZohoMailClient: External Content-Type: text/plain; charset="utf-8" Valid node indices are 0 to xbc_node_num-1, so a next value equal to xbc_node_num is out of bounds. Use >=3D instead of > to catch this. Signed-off-by: Josh Law --- lib/bootconfig.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/bootconfig.c b/lib/bootconfig.c index 58d6ae297280..56fbedc9e725 100644 --- a/lib/bootconfig.c +++ b/lib/bootconfig.c @@ -816,7 +816,7 @@ static int __init xbc_verify_tree(void) } =20 for (i =3D 0; i < xbc_node_num; i++) { - if (xbc_nodes[i].next > xbc_node_num) { + if (xbc_nodes[i].next >=3D xbc_node_num) { return xbc_parse_error("No closing brace", xbc_node_get_data(xbc_nodes + i)); } --=20 2.34.1 From nobody Tue Apr 7 07:29:12 2026 Received: from sender-of-o55.zoho.eu (sender-of-o55.zoho.eu [136.143.169.55]) (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 CA62A386C29; Sat, 14 Mar 2026 21:55:40 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=pass smtp.client-ip=136.143.169.55 ARC-Seal: i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1773525344; cv=pass; b=bmefGYXe+LMovMyncax0OU85gv7DimArMNGMQNa3GVptylVq+RiDMeNgKlfrESJE43XLxxQoHpXS7wrtH+Ckbk/xgtoAAqamT4JJwpMke9rYK8st0oo2caIv1txqftPWpaKCc+xyGqeBKesDZM9BI0zXV/FbXseOH2HyXHhbxWo= ARC-Message-Signature: i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1773525344; c=relaxed/simple; bh=5AnzfG0vkdEgFClTKvrYV4qYqkz7cUXrau3pFlOkbfI=; h=From:To:Cc:Subject:Date:Message-Id:In-Reply-To:References: MIME-Version; b=QrwVs4AQk4TbtWFCuOZW+FWBEGFUOyeFOlWc58cYrlgiC3Vept5+B0TVY/JSwdszDQbpcMOxFDx18uXP+srxZt8B/0KkblPYDm41r7txz9fbE1rqax5t7hkS00TelGF5h8nShEzeM29ppyI3DHiwl/vIumROQiFjHYH9wnZYluM= ARC-Authentication-Results: i=2; smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=objecting.org; spf=pass smtp.mailfrom=objecting.org; dkim=pass (1024-bit key) header.d=objecting.org header.i=objecting@objecting.org header.b=Xe8wOgIh; arc=pass smtp.client-ip=136.143.169.55 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=objecting.org Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=objecting.org Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=objecting.org header.i=objecting@objecting.org header.b="Xe8wOgIh" ARC-Seal: i=1; a=rsa-sha256; t=1773525334; cv=none; d=zohomail.eu; s=zohoarc; b=eGL6L/XdcZVbrI6Ffv6kpsC3DmvKZxaWIvSZa9Mi0E1nVnEt/fCFPlRlhN5LWrvIOrnYYxPI3hwCWgM9I41igFlgWWqkzULY5TuPirvB4nEWJ+jaSZGD0ZQ3SD9avQAED4zTQkalqmV//37od3AJ3+ZPgi42CaY/0IU4nAL2m3o= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.eu; s=zohoarc; t=1773525334; h=Content-Transfer-Encoding:Cc:Cc:Date:Date:From:From:In-Reply-To:MIME-Version:Message-ID:References:Subject:Subject:To:To:Message-Id:Reply-To; bh=ZkP6e7kBnlhV26QlBiganTloqfVRgfHEXYKYC2UlxIQ=; b=R4Qez38gk1nccOfyMV9wkue07VuKA/WN+sqlaP1QENFIKfLu7nqgLUbdlsvwY9yDn+H78s285q9w8oB1OwvKG9ZuOgdgMcSutrhNQI9jccfdIjKchr7KJeLL92qcnv8b2zFVDHXss8EoY0b49qpmKMR2oEqvTl9ufe79+13GoTo= ARC-Authentication-Results: i=1; mx.zohomail.eu; dkim=pass header.i=objecting.org; spf=pass smtp.mailfrom=objecting@objecting.org; dmarc=pass header.from= DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; t=1773525334; s=zmail; d=objecting.org; i=objecting@objecting.org; h=From:From:To:To:Cc:Cc:Subject:Subject:Date:Date:Message-Id:Message-Id:In-Reply-To:References:MIME-Version:Content-Transfer-Encoding:Reply-To; bh=ZkP6e7kBnlhV26QlBiganTloqfVRgfHEXYKYC2UlxIQ=; b=Xe8wOgIhb9y7oqUFu8IfVLRU6UN7qAXEdKjO90eQhN00aiKGPZ7seU0Q8dhy+W7r kvw92m6y7lE2zy5HunvRSgHpBQY6GQz9dASmbNPH7r23uz7zcGYCnbleRZc8V7CYyJE KRro9TdQxo/o/BLG3rpJKD5LVbO8L2O1yYsKZaJ8= Received: by mx.zoho.eu with SMTPS id 1773525332443785.0583921914424; Sat, 14 Mar 2026 22:55:32 +0100 (CET) From: Josh Law To: Masami Hiramatsu , Andrew Morton Cc: linux-trace-kernel@vger.kernel.org, linux-kernel@vger.kernel.org, Josh Law Subject: [PATCH 09/14] lib/bootconfig: increment xbc_node_num after node init succeeds Date: Sat, 14 Mar 2026 21:55:21 +0000 Message-Id: <20260314215526.108651-10-objecting@objecting.org> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20260314215526.108651-1-objecting@objecting.org> References: <20260314215526.108651-1-objecting@objecting.org> 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-ZohoMailClient: External Content-Type: text/plain; charset="utf-8" Move the xbc_node_num increment to after xbc_init_node() so a failed init does not leave a partially initialized node counted in the array. Signed-off-by: Josh Law --- lib/bootconfig.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lib/bootconfig.c b/lib/bootconfig.c index 56fbedc9e725..06e8a79ab472 100644 --- a/lib/bootconfig.c +++ b/lib/bootconfig.c @@ -429,9 +429,10 @@ static struct xbc_node * __init xbc_add_node(char *dat= a, uint16_t flag) if (xbc_node_num =3D=3D XBC_NODE_MAX) return NULL; =20 - node =3D &xbc_nodes[xbc_node_num++]; + node =3D &xbc_nodes[xbc_node_num]; if (xbc_init_node(node, data, flag) < 0) return NULL; + xbc_node_num++; =20 return node; } --=20 2.34.1 From nobody Tue Apr 7 07:29:12 2026 Received: from sender-of-o55.zoho.eu (sender-of-o55.zoho.eu [136.143.169.55]) (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 83B2238839D; Sat, 14 Mar 2026 21:55:42 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=pass smtp.client-ip=136.143.169.55 ARC-Seal: i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1773525344; cv=pass; b=kxgvGNe4emVH12Ir0LMYrAMDq+yGqe5tkAFjulkVerstkKveeiO44c6JwrrsQfCk/pVYddBcbpSU41UrUyhQYxXVihZm06PiQTq85onPYVKrnavVTrFZOKvjZQsJtJPdTasH0W4onv1VBpTWDS2F5kQYrhA13VE6EvrM3/IiOXM= ARC-Message-Signature: i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1773525344; c=relaxed/simple; bh=EWCRpZBNHCZU8iztguL/vt47WImiwDpV31hec4mL7Lw=; h=From:To:Cc:Subject:Date:Message-Id:In-Reply-To:References: MIME-Version; b=OZtQbhopd615Zr4x9wzM1ckx/8ojjcrbno7t+fEZ1HtwqcVlHs3YxfXyFf6a5nRCzSjZNcseQ5fm90S5Mt+FXTfQI4FpPiSocIDgy6mNgNGq5sED6oW4PYv15m/92SiEbEt1llRlGwsOcBv1pmCVo8UsSoX5FycY5evv2j5xh2U= ARC-Authentication-Results: i=2; smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=objecting.org; spf=pass smtp.mailfrom=objecting.org; dkim=pass (1024-bit key) header.d=objecting.org header.i=objecting@objecting.org header.b=A03VPcAc; arc=pass smtp.client-ip=136.143.169.55 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=objecting.org Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=objecting.org Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=objecting.org header.i=objecting@objecting.org header.b="A03VPcAc" ARC-Seal: i=1; a=rsa-sha256; t=1773525336; cv=none; d=zohomail.eu; s=zohoarc; b=C6qF1SDZXcdClZOCbWTC1ON6CmmPw9UletI+6T9hw+VDiJViilQM+HmS7HJZOlxDBevxPfDNUZtIWC8nLHdes+IlBzXk3vSXt9TwZONMOyMudFXaXnpTqsh+eant7IjFbcYkjG+38Xh60tU6zUv018eJ59MLxlc0w4J2pMwhHpY= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.eu; s=zohoarc; t=1773525336; h=Content-Transfer-Encoding:Cc:Cc:Date:Date:From:From:In-Reply-To:MIME-Version:Message-ID:References:Subject:Subject:To:To:Message-Id:Reply-To; bh=Y3g/gWcuZygcqvX4QpGo9gnBChjnwRu7NCitJ/yvsXM=; b=Z2MeT+0jZmA6lzkwFCMjE1kPVWqkJjOsfMUx+rfSKA2V3ONHyA4N03YXWOLadnvqoRCZ17J2lDn61mlGV0eNBlLo76xIog+sKFCcgOvxHKDS5bC1OyT4MCrl7Z5bXq5s3VAwD8VvBDeeQOlQiqucd7w1ho9AYDNuAxo/QbKGY60= ARC-Authentication-Results: i=1; mx.zohomail.eu; dkim=pass header.i=objecting.org; spf=pass smtp.mailfrom=objecting@objecting.org; dmarc=pass header.from= DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; t=1773525336; s=zmail; d=objecting.org; i=objecting@objecting.org; h=From:From:To:To:Cc:Cc:Subject:Subject:Date:Date:Message-Id:Message-Id:In-Reply-To:References:MIME-Version:Content-Transfer-Encoding:Reply-To; bh=Y3g/gWcuZygcqvX4QpGo9gnBChjnwRu7NCitJ/yvsXM=; b=A03VPcAcRoO88teheNaTYhqX/cT7inYqTrA4xpYnjFB9PL91UkpeoKKrnQJox3g/ W1xDM0qY2M2i8LF5/UXCEIPCqdryFalmhy+89v5uLFAVEqABWU1WfIIysmCstM6l3yu yUCU50Cjer8ja1wcGjESTh+Vc2XA/4Vlb23mx/U4= Received: by mx.zoho.eu with SMTPS id 1773525333115306.628767021615; Sat, 14 Mar 2026 22:55:33 +0100 (CET) From: Josh Law To: Masami Hiramatsu , Andrew Morton Cc: linux-trace-kernel@vger.kernel.org, linux-kernel@vger.kernel.org, Josh Law Subject: [PATCH 10/14] lib/bootconfig: drop redundant memset of xbc_nodes Date: Sat, 14 Mar 2026 21:55:22 +0000 Message-Id: <20260314215526.108651-11-objecting@objecting.org> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20260314215526.108651-1-objecting@objecting.org> References: <20260314215526.108651-1-objecting@objecting.org> 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-ZohoMailClient: External Content-Type: text/plain; charset="utf-8" memblock_alloc() already returns zeroed memory, so the explicit memset in xbc_init() is redundant. Switch the userspace xbc_alloc_mem() from malloc() to calloc() so both paths return zeroed memory, and remove the separate memset call. Signed-off-by: Josh Law --- lib/bootconfig.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/lib/bootconfig.c b/lib/bootconfig.c index 06e8a79ab472..fe1053043752 100644 --- a/lib/bootconfig.c +++ b/lib/bootconfig.c @@ -71,7 +71,7 @@ static inline void __init xbc_free_mem(void *addr, size_t= size, bool early) =20 static inline void *xbc_alloc_mem(size_t size) { - return malloc(size); + return calloc(1, size); } =20 static inline void xbc_free_mem(void *addr, size_t size, bool early) @@ -982,7 +982,6 @@ int __init xbc_init(const char *data, size_t size, cons= t char **emsg, int *epos) _xbc_exit(true); return -ENOMEM; } - memset(xbc_nodes, 0, sizeof(struct xbc_node) * XBC_NODE_MAX); =20 ret =3D xbc_parse_tree(); if (!ret) --=20 2.34.1 From nobody Tue Apr 7 07:29:13 2026 Received: from sender-of-o55.zoho.eu (sender-of-o55.zoho.eu [136.143.169.55]) (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 DA978388362; Sat, 14 Mar 2026 21:55:41 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=pass smtp.client-ip=136.143.169.55 ARC-Seal: i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1773525344; cv=pass; b=u+LsW05SaQeLDiDWR+FwyZ5JNUqdjmmSFI2bEAzxgCmP+ABJtMQTQcMfvbxa14jIZJZ97mC+6xQFmKMHqQVVEuQ7uDYx3ci3waIISdv4ChJN8EpH6WQ68f8BC/Tv4zvJQFl3mqlIdw8STo6To71DdyN24IbuX93L0p4YZH7ddy0= ARC-Message-Signature: i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1773525344; c=relaxed/simple; bh=FXNMbqg55SqbPOuJegAqlqm+AJvfK6co4zCLBLrw5Q0=; h=From:To:Cc:Subject:Date:Message-Id:In-Reply-To:References: MIME-Version; b=j37P8EcGk2JcCSJ3xQyqfqMJfXNYaVO/y5zZoSS8+24Zu1NbBH61zrzME9iKIdV+XNOMz1u71vNrW7AA3doXh4h23nwcDKavJjceXEPNW6vcMOsQqTXsoH68SQ5yUoEGOygPZfCtoc4NDKMdCHWVjy/DjltfLj9AaHgtjoQjTto= ARC-Authentication-Results: i=2; smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=objecting.org; spf=pass smtp.mailfrom=objecting.org; dkim=pass (1024-bit key) header.d=objecting.org header.i=objecting@objecting.org header.b=MTahgRw0; arc=pass smtp.client-ip=136.143.169.55 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=objecting.org Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=objecting.org Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=objecting.org header.i=objecting@objecting.org header.b="MTahgRw0" ARC-Seal: i=1; a=rsa-sha256; t=1773525335; cv=none; d=zohomail.eu; s=zohoarc; b=aj9ZibRqHmIfu74MF38s4SHS12mS7daAJZ3YWEUGQJk/NuWww075FD7cKzflxX2EBGpjVP5qvMdC0l4HDz0nnlRPZJKXY8dTdtyrKkvTZM6PYw2TTmCbhydXDbzjwoTUBoBlwprRwDd4aEQDGoKMieBPALHHJJQHo1o8biWns6E= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.eu; s=zohoarc; t=1773525335; h=Content-Transfer-Encoding:Cc:Cc:Date:Date:From:From:In-Reply-To:MIME-Version:Message-ID:References:Subject:Subject:To:To:Message-Id:Reply-To; bh=WR9vliQJfdjZlPD0h9WaXzdDRa+2M90wAFjtK+1BE/I=; b=hBu4zJjZt5HidUoQG+wyZUB/MnE9R6OYw8l30Sqyh3y+vE9smsnPBHGR4eRUiL+ip6yLjQqvR0NnnOEIlk8o6jrg1dfScuCDThZX28Wp5PsR6QONyo8NW972dYhXLnUITk7Mf2x3uV1bte4WJFJblsySEPR0AHV1p3ZsvmyL0Yw= ARC-Authentication-Results: i=1; mx.zohomail.eu; dkim=pass header.i=objecting.org; spf=pass smtp.mailfrom=objecting@objecting.org; dmarc=pass header.from= DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; t=1773525335; s=zmail; d=objecting.org; i=objecting@objecting.org; h=From:From:To:To:Cc:Cc:Subject:Subject:Date:Date:Message-Id:Message-Id:In-Reply-To:References:MIME-Version:Content-Transfer-Encoding:Reply-To; bh=WR9vliQJfdjZlPD0h9WaXzdDRa+2M90wAFjtK+1BE/I=; b=MTahgRw0UItsXGkaj6TZA+6k3xmJ35LGHUdUu0O+8/X1AaDdPim5F6u0+dgy9A2u RNS/ZI9ML5bhTDhCH+Jg+QEmmlUsuw4mZW1++r/Eb1hMdr/PENQwcsRQk8Y7SBj/Ekp OpWtuWAEf0WtBi3OsivSm4+7dRtoSR4XizIsMN3U= Received: by mx.zoho.eu with SMTPS id 1773525333683775.61190472551; Sat, 14 Mar 2026 22:55:33 +0100 (CET) From: Josh Law To: Masami Hiramatsu , Andrew Morton Cc: linux-trace-kernel@vger.kernel.org, linux-kernel@vger.kernel.org, Josh Law Subject: [PATCH 11/14] bootconfig: use __packed macro for struct xbc_node Date: Sat, 14 Mar 2026 21:55:23 +0000 Message-Id: <20260314215526.108651-12-objecting@objecting.org> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20260314215526.108651-1-objecting@objecting.org> References: <20260314215526.108651-1-objecting@objecting.org> 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-ZohoMailClient: External Content-Type: text/plain; charset="utf-8" Replace the open-coded __attribute__((__packed__)) with the kernel __packed macro for consistency with the rest of the kernel. Signed-off-by: Josh Law --- include/linux/bootconfig.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/linux/bootconfig.h b/include/linux/bootconfig.h index 25df9260d206..c37e0096c4f1 100644 --- a/include/linux/bootconfig.h +++ b/include/linux/bootconfig.h @@ -53,7 +53,7 @@ struct xbc_node { uint16_t child; uint16_t parent; uint16_t data; -} __attribute__ ((__packed__)); +} __packed; =20 #define XBC_KEY 0 #define XBC_VALUE (1 << 15) --=20 2.34.1 From nobody Tue Apr 7 07:29:13 2026 Received: from sender-of-o55.zoho.eu (sender-of-o55.zoho.eu [136.143.169.55]) (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 EC96038CFE6; Sat, 14 Mar 2026 21:55:44 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=pass smtp.client-ip=136.143.169.55 ARC-Seal: i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1773525353; cv=pass; b=OqHM6t/vIeo/wbyALHszSTSOx/KyiXGVG1TSrwru5W4tHLDPn2sUZALLANEq+UaBQ/aI9ekRHHanoY9e9EFJBByovMYFn2f3221SQrfVTmvyvt00l1NM9AakxqVORfjxSZBAFCxRe+i/pLJDiisgzwvUR5PbMUn1hlOJLkZL6iQ= ARC-Message-Signature: i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1773525353; c=relaxed/simple; bh=g0gLOzGvGgBaDelQ1nQAH+bFpUg7Z1FFbkCEaYNyQHI=; h=From:To:Cc:Subject:Date:Message-Id:In-Reply-To:References: MIME-Version; b=isyEW2wsGJtMARgvDae839x+d8GYGIK/SXylehGwSWLHQuKc9vZ4UHWb9HxuC7H5r2B+tNWRP2oEPuYi5cz1xE2Ya8iZYU9VMfHyWE1Jdw1KC4Xj0hcio+hngddfv29PsdLqtkvUABb+qifS9/e2BAtXn1VcJ0ZbdJ4lhKhMRxs= ARC-Authentication-Results: i=2; smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=objecting.org; spf=pass smtp.mailfrom=objecting.org; dkim=pass (1024-bit key) header.d=objecting.org header.i=objecting@objecting.org header.b=ZnMJu0fl; arc=pass smtp.client-ip=136.143.169.55 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=objecting.org Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=objecting.org Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=objecting.org header.i=objecting@objecting.org header.b="ZnMJu0fl" ARC-Seal: i=1; a=rsa-sha256; t=1773525337; cv=none; d=zohomail.eu; s=zohoarc; b=VQJqe1WzgwipycLrD/3bnLHF1HVUPGlpzWg3uXxDJG9fdCPD8HIvJYBLj4rGYeVqMQ6tqciP3WTu6AvfZhmb3Wb3LxbpVKWQx0Oh66YET1RwDDCuoAsT8fLSPRIf9Pay05W0vsXUOdywkTY9/jqnlK7Gd9VOV7ma5OH9oxQuqmU= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.eu; s=zohoarc; t=1773525337; h=Content-Transfer-Encoding:Cc:Cc:Date:Date:From:From:In-Reply-To:MIME-Version:Message-ID:References:Subject:Subject:To:To:Message-Id:Reply-To; bh=/qCjNtdUtGuqj2pRl8MUrYP2ntfBCQat1rATubD3gRk=; b=YQ0rE+b8bYX0DUdLeCCLg+TT9nCEdH/4IVzKaVZHnFNrTTzpA6+ahteZ6Y8Sk9YtItUSgN4tkpZ5WOqJG1SUtKT3vzqSxduDRoddaKSVZBZ9gkk+qTSlcpWkDFNfcW3vvPzz16TCeT5tdvEa6gvO1HQSf/A+8Gusogt1e8x7FEc= ARC-Authentication-Results: i=1; mx.zohomail.eu; dkim=pass header.i=objecting.org; spf=pass smtp.mailfrom=objecting@objecting.org; dmarc=pass header.from= DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; t=1773525337; s=zmail; d=objecting.org; i=objecting@objecting.org; h=From:From:To:To:Cc:Cc:Subject:Subject:Date:Date:Message-Id:Message-Id:In-Reply-To:References:MIME-Version:Content-Transfer-Encoding:Reply-To; bh=/qCjNtdUtGuqj2pRl8MUrYP2ntfBCQat1rATubD3gRk=; b=ZnMJu0fl8GN3+C7VmpnQyHLOnD4Tw9eP2xDkqmMkoS5zkeDpOE0BGQLdQ/V9E2o8 DK0tNxSo5Vu/HMC+fLLHsPM8vI1iVHtB5ko5DxDPzPVTMyw3BlG+HE480ldmagxydzs CK3zMH6250fItgPQ//UHKB1upM/n19qZM18xJJoQ= Received: by mx.zoho.eu with SMTPS id 1773525334203484.16421197734496; Sat, 14 Mar 2026 22:55:34 +0100 (CET) From: Josh Law To: Masami Hiramatsu , Andrew Morton Cc: linux-trace-kernel@vger.kernel.org, linux-kernel@vger.kernel.org, Josh Law Subject: [PATCH 12/14] bootconfig: constify xbc_calc_checksum() data parameter Date: Sat, 14 Mar 2026 21:55:24 +0000 Message-Id: <20260314215526.108651-13-objecting@objecting.org> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20260314215526.108651-1-objecting@objecting.org> References: <20260314215526.108651-1-objecting@objecting.org> 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-ZohoMailClient: External Content-Type: text/plain; charset="utf-8" xbc_calc_checksum() only reads the data buffer, so mark the parameter as const void * and the internal pointer as const unsigned char *. Signed-off-by: Josh Law --- include/linux/bootconfig.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/include/linux/bootconfig.h b/include/linux/bootconfig.h index c37e0096c4f1..d78c2b62debf 100644 --- a/include/linux/bootconfig.h +++ b/include/linux/bootconfig.h @@ -36,9 +36,9 @@ bool __init cmdline_has_extra_options(void); * The checksum will be used with the BOOTCONFIG_MAGIC and the size for * embedding the bootconfig in the initrd image. */ -static inline __init uint32_t xbc_calc_checksum(void *data, uint32_t size) +static inline __init uint32_t xbc_calc_checksum(const void *data, uint32_t= size) { - unsigned char *p =3D data; + const unsigned char *p =3D data; uint32_t ret =3D 0; =20 while (size--) --=20 2.34.1 From nobody Tue Apr 7 07:29:13 2026 Received: from sender-of-o55.zoho.eu (sender-of-o55.zoho.eu [136.143.169.55]) (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 72967386434; Sat, 14 Mar 2026 21:55:42 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=pass smtp.client-ip=136.143.169.55 ARC-Seal: i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1773525348; cv=pass; b=A2vk9pKFBxpHIF6PjyodO95ihFGxgkQMn0cWhgK2go5KRPaj9dDaLg9yhjlLxbjDuyZDS9T4LemFYIJ4o1EKDEeJAXyGQgyJ2pw9Xf1PfMtqTPz3blYVzY2aUS7P8TucOB6qInHCAcDOC1EkUSrMKw9cKn4mLxorRX+4Yet1cM0= ARC-Message-Signature: i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1773525348; c=relaxed/simple; bh=5jHlNQbA4ax5oxWy6TmNNrMnctsyCd5kWbRwYKqDhJE=; h=From:To:Cc:Subject:Date:Message-Id:In-Reply-To:References: MIME-Version; b=Lja/nBhRF0trGogaQtAk3SF0delMD2juqD5gzROhex4BQJFQDl+DumJ4NwjaN5uewuX4uClMPHTUaD5UGXDOo1L7JBMGGECvyb9d07/J52gx2abdSdtgvT4XAVSCbtfW8rXp4QrfcOnRgfAnmT+jBbK2TfLxTCnsjjNPU+60RL0= ARC-Authentication-Results: i=2; smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=objecting.org; spf=pass smtp.mailfrom=objecting.org; dkim=pass (1024-bit key) header.d=objecting.org header.i=objecting@objecting.org header.b=czDwkkMm; arc=pass smtp.client-ip=136.143.169.55 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=objecting.org Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=objecting.org Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=objecting.org header.i=objecting@objecting.org header.b="czDwkkMm" ARC-Seal: i=1; a=rsa-sha256; t=1773525335; cv=none; d=zohomail.eu; s=zohoarc; b=eOdo108LkuqVPV5IF6y/PPCiBf6lNpzFxFU2pqmNP1pqcWzF/CpFEIyNllOcil5Vm4UmPVKZvvMCphSNT5KfIksKUqbE7LVVppNpNaupa9fUemjY9bS6bxu5FxhTb4oXiC5f6yihUKJYjpgkfP6mgMmjcQP4cey/bFCBLb6TsJ8= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.eu; s=zohoarc; t=1773525335; h=Content-Transfer-Encoding:Cc:Cc:Date:Date:From:From:In-Reply-To:MIME-Version:Message-ID:References:Subject:Subject:To:To:Message-Id:Reply-To; bh=RAInAapaPEVVIMyMy0xQq48ym4WbDouBno9PBv2kGos=; b=HkdbvrsrtEtTH2umX6NczFnxPD8fDt65Ohqwyl/k3MkI+u7eCEyPGeOddssnkmxqfORHQ2lfUTpRQvEo/7aPEjWEEb2Vg4Ujidjfkh3dR9+rIKpyledAw8PtH+G+UfVjS9vpT4eD9NSHNzZ9vz6SZTQBZQ1zxYw4IgOYhzES0qc= ARC-Authentication-Results: i=1; mx.zohomail.eu; dkim=pass header.i=objecting.org; spf=pass smtp.mailfrom=objecting@objecting.org; dmarc=pass header.from= DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; t=1773525335; s=zmail; d=objecting.org; i=objecting@objecting.org; h=From:From:To:To:Cc:Cc:Subject:Subject:Date:Date:Message-Id:Message-Id:In-Reply-To:References:MIME-Version:Content-Transfer-Encoding:Reply-To; bh=RAInAapaPEVVIMyMy0xQq48ym4WbDouBno9PBv2kGos=; b=czDwkkMmBBtyFrTgPTAeQqxkFZXMnA2SuW7RP7bv80ziIkWJB/xA8Iy1KyZg8QMn seH+0wTONj0TFEGrxRwmWhRsUmOOh1E4YkwCfzmZ4uQO9bc/QK+tmO+EsCflmSop1Cf YqdAkr1wsioFyFme4TkzrcDPIjoRqM5G6StnRoQ0= Received: by mx.zoho.eu with SMTPS id 1773525334731728.2655266394097; Sat, 14 Mar 2026 22:55:34 +0100 (CET) From: Josh Law To: Masami Hiramatsu , Andrew Morton Cc: linux-trace-kernel@vger.kernel.org, linux-kernel@vger.kernel.org, Josh Law Subject: [PATCH 13/14] lib/bootconfig: replace linux/kernel.h with specific includes Date: Sat, 14 Mar 2026 21:55:25 +0000 Message-Id: <20260314215526.108651-14-objecting@objecting.org> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20260314215526.108651-1-objecting@objecting.org> References: <20260314215526.108651-1-objecting@objecting.org> 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-ZohoMailClient: External Content-Type: text/plain; charset="utf-8" linux/kernel.h is a legacy catch-all header. Replace it with the specific headers actually needed: linux/cache.h for SMP_CACHE_BYTES, linux/compiler.h for unlikely(), and linux/sprintf.h for snprintf(). Signed-off-by: Josh Law --- lib/bootconfig.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/lib/bootconfig.c b/lib/bootconfig.c index fe1053043752..0823491221f4 100644 --- a/lib/bootconfig.c +++ b/lib/bootconfig.c @@ -17,7 +17,9 @@ #include #include #include -#include +#include +#include +#include #include #include =20 --=20 2.34.1 From nobody Tue Apr 7 07:29:13 2026 Received: from sender-of-o55.zoho.eu (sender-of-o55.zoho.eu [136.143.169.55]) (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 EA96638CFE5; Sat, 14 Mar 2026 21:55:42 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=pass smtp.client-ip=136.143.169.55 ARC-Seal: i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1773525348; cv=pass; b=ubQrbmn9LxDSg/ZM+p8QkweL+rIttRvQlNhkEtVkDyuwlNtNcA9U9feQDWBUIdWWN4YVgfW+h4YdKZS9IFbmv4eDhWgIevF89P+89VoXpUm5ex2a9eWAsQpsoytzALl5FQGl8cfzTwWqkO3tAk7ATotkdcng50SLffi4gsKu3+s= ARC-Message-Signature: i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1773525348; c=relaxed/simple; bh=6I0hpTbxvzM0MrqqhLwejv2QuzQNDU3b1q7ISIjV9Vw=; h=From:To:Cc:Subject:Date:Message-Id:In-Reply-To:References: MIME-Version; b=ku+dqwooghde2pjHpsrKpHTkVoRmQdJA+uBEdmNEHnl9/JoZRnYTRMr+qUCRbzfbIluWF7GZDCJRRw0T8DLosgSkWh07QZChcS4y5iplRmuSKqk9tw+FdNnJI8Tz71H3WJSqorZLSi/uNowz384z0foIFucBPLasibeG9S/1U9E= ARC-Authentication-Results: i=2; smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=objecting.org; spf=pass smtp.mailfrom=objecting.org; dkim=pass (1024-bit key) header.d=objecting.org header.i=objecting@objecting.org header.b=kjL/FMXf; arc=pass smtp.client-ip=136.143.169.55 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=objecting.org Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=objecting.org Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=objecting.org header.i=objecting@objecting.org header.b="kjL/FMXf" ARC-Seal: i=1; a=rsa-sha256; t=1773525337; cv=none; d=zohomail.eu; s=zohoarc; b=lC/ENHuLQGN70aCHNaJpUtvvyNTC2qgabXuoSWEoeuWfoOv1mAT//ufVBGfPr5siD+GbUJMZAdHmFwKkX9kPqCg0JfSkGhaUnPG7vT9AudN6VmaefwAleZs54FTfRnHp3fgTa5EtMmXGaW1L21/5gka4deMZOIeX1QWyAHoVOfQ= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.eu; s=zohoarc; t=1773525337; h=Content-Transfer-Encoding:Cc:Cc:Date:Date:From:From:In-Reply-To:MIME-Version:Message-ID:References:Subject:Subject:To:To:Message-Id:Reply-To; bh=1AD6D9MidV6Fkfxyg/iT9A9sDWNhqE7cnbV+HIFl0WI=; b=X5qtnMWrECxljtGASC4+QLc0DOCiFT+bmveugQk85hqF4TXyTO/YE+UtDEEW1TBoLzlXgxbZh732pGSlViClLibBM6q4n2HgkUTqdmREqa22SzmDg51Rgq/S54I8TEoH5hs9Q3aspyhYxG0mGoVrW+VMl6Fv8RvK5lyLHKxNxwM= ARC-Authentication-Results: i=1; mx.zohomail.eu; dkim=pass header.i=objecting.org; spf=pass smtp.mailfrom=objecting@objecting.org; dmarc=pass header.from= DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; t=1773525337; s=zmail; d=objecting.org; i=objecting@objecting.org; h=From:From:To:To:Cc:Cc:Subject:Subject:Date:Date:Message-Id:Message-Id:In-Reply-To:References:MIME-Version:Content-Transfer-Encoding:Reply-To; bh=1AD6D9MidV6Fkfxyg/iT9A9sDWNhqE7cnbV+HIFl0WI=; b=kjL/FMXfPRNOZ9xSkpD+q5i00MzDDZIefmf9I1x7roH7Lmr0Zg3gvbPp//eG487o cQ9HeLzqEX45X8wjcaGTrMwxVJkOY9s0BRSw0qfrUEaFW1ZceTwumJofmTfWUo7VByB adP0dI1i6Nqm8yTPfSy+c8UKTA4a7gysX0tqUQAQ= Received: by mx.zoho.eu with SMTPS id 1773525335259810.0485260693058; Sat, 14 Mar 2026 22:55:35 +0100 (CET) From: Josh Law To: Masami Hiramatsu , Andrew Morton Cc: linux-trace-kernel@vger.kernel.org, linux-kernel@vger.kernel.org, Josh Law Subject: [PATCH 14/14] bootconfig: add __packed definition to tools/bootconfig shim header Date: Sat, 14 Mar 2026 21:55:26 +0000 Message-Id: <20260314215526.108651-15-objecting@objecting.org> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20260314215526.108651-1-objecting@objecting.org> References: <20260314215526.108651-1-objecting@objecting.org> 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-ZohoMailClient: External Content-Type: text/plain; charset="utf-8" The tools/bootconfig userspace build includes the main bootconfig.h via a shim header that defines kernel macros for userspace. Add the __packed macro so the struct xbc_node declaration works after the conversion from open-coded __attribute__((__packed__)). Signed-off-by: Josh Law --- tools/bootconfig/include/linux/bootconfig.h | 1 + 1 file changed, 1 insertion(+) diff --git a/tools/bootconfig/include/linux/bootconfig.h b/tools/bootconfig= /include/linux/bootconfig.h index 6784296a0692..41c50ab95ba5 100644 --- a/tools/bootconfig/include/linux/bootconfig.h +++ b/tools/bootconfig/include/linux/bootconfig.h @@ -48,6 +48,7 @@ static inline char *strim(char *s) =20 #define __init #define __initdata +#define __packed __attribute__((__packed__)) =20 #include "../../../../include/linux/bootconfig.h" =20 --=20 2.34.1