Files
linux/lib
Masami Hiramatsu (Google) e84e60da22 bootconfig: Skip internal tree sanity checks in kernel
In xbc_verify_tree(), the loop iterating through all nodes to check that
xbc_nodes[i].next < xbc_node_num and xbc_nodes[i].child < xbc_node_num
is a defensive sanity check against implementation regressions (such
an out-of-bounds index cannot be produced by malformed input).

Running this check in the kernel adds unnecessary boot-time overhead.
Split this check out into xbc_sanity_check_tree() for userspace, so
that it continues to run during userspace bootconfig validation (e.g.
when applying or testing bootconfig with tools/bootconfig), but is
omitted in the kernel to speed up initialization.

Link: https://lore.kernel.org/all/178913600409.248794.12941798680046327623.stgit@devnote2/

Reported-by: Sang-Heon Jeon <[email protected]>
Closes: https://lore.kernel.org/all/[email protected]/
Signed-off-by: Masami Hiramatsu (Google) <[email protected]>
Reviewed-by: Sang-Heon Jeon <[email protected]>
2026-10-11 10:33:40 +09:00
..
2026-08-03 21:10:16 -07:00
2026-08-13 15:42:05 -07:00
2025-03-16 22:30:49 -07:00
…
…
2025-04-11 17:32:37 -07:00
2026-03-05 22:16:08 -05:00
…
…
…
…
…
…
…
…
…
…
…
…
…
…
2026-07-31 10:09:12 +02:00
2024-10-14 16:33:24 -05:00
…
…
2026-01-11 06:09:11 -10:00
2026-02-27 16:40:16 +01:00
…
…
2025-03-25 10:18:31 -03:00
2026-04-18 00:10:48 -07:00
…
2024-12-09 13:48:29 -08:00