Skip to content

bootconfig: Reject unexpected data after null character and cleanups

Masami Hiramatsu (Google) linux-next linux-trace-kernel lkml regressions 2 versions – In review

Get series with b4
b4 am 178913597653.248794.1237187523153227751.stgit@devnote2

Versions newest first · linked by author and title

  1. v2 Latest4 patches 9 repliesIn review 3 of 4 applied
  2. v13 patches 5 repliesSuperseded

Patches in v2 3 of 4 applied

#Subject and filesSizeRepliesApplied
1/4bootconfig: Reject unexpected data after null characterlib/bootconfig.c tools/bootconfig/main.c tools/bootconfig/test-bootconfig.sh+22 -10 repliesApplied
2/4tools/bootconfig: Consolidate xbc_init() to error message wrappertools/bootconfig/main.c+43 -575 repliesApplied
3/4bootconfig: Skip internal tree sanity checks in kernellib/bootconfig.c+26 -120 repliesApplied
4/4bootconfig: Move BOOTCONFIG_FOOTER_SIZE to include/linux/bootconfig.hinclude/linux/bootconfig.h init/main.c tools/bootconfig/main.c+5 -51 reply

Reviews trailers per patch

All 4 patches have a Reviewed-by or Acked-by.

PatchSang-Heon Jeon
1/4R-b
2/4R-b
3/4R-b
4/4R-b

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v2 thread

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

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) <[email protected]>