# \[PATCH 0/3\] bootconfig: Reject unexpected data after null character and cleanups

- From: Masami Hiramatsu (Google) \<mhiramat@kernel.org\>
- Date: 2026-09-09 15:53:39 
- List: linux-trace-kernel
- Page: https://ratatoskr.run/linux-trace-kernel/2026/09/17540761
- Thread: https://ratatoskr.run/linux-trace-kernel/2026/09/17540761/t.md

```text
Hi,

Here are 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 last one is initially reported by Sang-Heon Jeon [1].

[1] https://lore.kernel.org/all/20260905141637.1547429-1-ekffu200098@gmail.com/

Thank you,

---
base-commit: 13e8b7707efcea3a401d242958ba0a392f227847

Masami Hiramatsu (Google) (3):
      bootconfig: Reject unexpected data after null character
      tools/bootconfig: Consolidate xbc_init() to error message wrapper
      bootconfig: Skip internal tree sanity checks in kernel


 lib/bootconfig.c                    |   45 ++++++++++----
 tools/bootconfig/main.c             |  112 +++++++++++++++++------------------
 tools/bootconfig/test-bootconfig.sh |   12 ++++
 3 files changed, 99 insertions(+), 70 deletions(-)

--
Masami Hiramatsu (Google) [ref]
```
