bootconfig: Updates for v7.1
Subsystems (2)
Masami Hiramatsu (Google)
maintainerHi Linus,
Bootconfig for v7.1:
- bootconfig: Minor fixes for handling errors, which includes the following commits:
. fix off-by-one in xbc_verify_tree() next node check . increment xbc_node_num after node init succeeds . validate child node index in xbc_verify_tree()
- bootconfig: Code cleanups (mainly type/attribute changes), which includes the following commits.
. clean up comment typos and bracing
. drop redundant memset of xbc_nodes
. replace linux/kernel.h with specific includes
. narrow flag parameter type from uint32_t to uint16_t . constify xbc_calc_checksum() data parameter
. fix signed comparison in xbc_node_get_data()
. use size_t for strlen result in xbc_node_match_prefix() . use signed type for offset in xbc_init_node()
. use size_t for key length tracking in xbc_verify_tree() . change xbc_node_index() return type to uint16_t
Please pull the latest bootconfig-v7.1 tree, which can be found at:
git://git.kernel.org/pub/scm/linux/kernel/git/trace/linux-trace.git
bootconfig-v7.1
Tag SHA1: caea779c2ccca218e1440502472550e899f4858b Head SHA1: 6eb255d019b810614c5cbd99b9ef281b7b9361e3
Josh Law (13):
lib/bootconfig: clean up comment typos and bracing lib/bootconfig: narrow flag parameter type from uint32_t to uint16_t lib/bootconfig: fix off-by-one in xbc_verify_tree() next node check lib/bootconfig: increment xbc_node_num after node init succeeds lib/bootconfig: drop redundant memset of xbc_nodes
bootconfig: constify xbc_calc_checksum() data parameter lib/bootconfig: replace linux/kernel.h with specific includes lib/bootconfig: validate child node index in xbc_verify_tree() lib/bootconfig: fix signed comparison in xbc_node_get_data() lib/bootconfig: use size_t for strlen result in xbc_node_match_prefix() lib/bootconfig: use signed type for offset in xbc_init_node() lib/bootconfig: use size_t for key length tracking in xbc_verify_tree() lib/bootconfig: change xbc_node_index() return type to uint16_t
----
include/linux/bootconfig.h | 6 ++--- lib/bootconfig.c | 62 +++++++++++++++++++++++++++------------------- 2 files changed, 39 insertions(+), 29 deletions(-)
---------------------------
include/linux/bootconfig.h +3 -3
@@ -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 = data; +const unsigned char *p = data;uint32_t ret =0 ;while (size--)
@@ -66,7 +66,7 @@ struct xbc_node {/* Node tree access raw APIs */ struct xbc_node *__init xbc_root_node (void ); -int __init xbc_node_index (struct xbc_node *node); +uint16_t __init xbc_node_index (struct xbc_node *node);struct xbc_node *__init xbc_node_get_parent (struct xbc_node *node);struct xbc_node *__init xbc_node_get_child (struct xbc_node *node);struct xbc_node *__init xbc_node_get_next (struct xbc_node *node);
lib/bootconfig.c +36 -26
200 lines not on this page · raw message
Signature · 1 line
Masami Hiramatsu (Google) <[email protected]>
The pull request you sent on Fri, 17 Apr 2026 10:04:52 +0900:
The pull request you sent on Fri, 17 Apr 2026 10:04:52 +0900:
Quoted 1 line
git://git.kernel.org/pub/scm/linux/kernel/git/trace/linux-trace.gitbootconfig-v7.1
has been merged into torvalds/linux.git:
https://git.kernel.org/torvalds/c/829000f7894bcb0bfedf5e2c91f277ae3ef72c40
Thank you!
Signature · 2 lines
Deet-doot-dot, I am a bot. https://korg.docs.kernel.org/prtracker.html