[PATCH v2 0/4] bootconfig: Reject unexpected data after null character and cleanups

From: Masami Hiramatsu (Google)

Date: Fri Sep 11 2026 - 10:26:33 EST


Hi,

Here are v2 patches for bootconfig to rejects unexpected config data after
null character and other cleanups including tools/bootconfig to consolidate
bootconfig initialization with errors, and skipping internal tree sanity
check in kernel.

The previous version is here:

https://lore.kernel.org/all/178896921555.177508.434402948295885560.stgit@devnote2/

This version removes redundant buffer copy in init_xbc_with_error() [2/4]
and moves BOOTCONFIG_FOOTER_SIZE to include/linux/bootconfig.h[4/4].

Thank you,

---
base-commit: 7812d6dab0698001e50e8c2f901e17da3eb6f429

Masami Hiramatsu (Google) (4):
bootconfig: Reject unexpected data after null character
tools/bootconfig: Consolidate xbc_init() to error message wrapper
bootconfig: Skip internal tree sanity checks in kernel
bootconfig: Move BOOTCONFIG_FOOTER_SIZE to include/linux/bootconfig.h


include/linux/bootconfig.h | 4 +
init/main.c | 2 -
lib/bootconfig.c | 45 +++++++++++----
tools/bootconfig/main.c | 106 +++++++++++++++--------------------
tools/bootconfig/test-bootconfig.sh | 12 ++++
5 files changed, 95 insertions(+), 74 deletions(-)

--
Masami Hiramatsu (Google) <mhiramat@xxxxxxxxxx>