Skip to content

bootconfig: Fix integer overflow problems

Masami Hiramatsu (Google) linux-trace-kernel lkml 4 versions In review

Get series with b4
b4 am 178905331374.213925.295025394754459843.stgit@devnote2

Versions newest first · linked by author and title

  1. v4 Latest2 patches 3 repliesIn review 1 of 2 applied
  2. v32 patches 4 repliesSuperseded
  3. v21 patch 0 repliesSuperseded
Earlier versions · 1
VersionPostedPatchesRepliesStatus
v11 patch2 repliesSuperseded

Patches in v4 1 of 2 applied

#Subject and filesSizeRepliesApplied
1/2tools/bootconfig: Fix integer overflow and truncation in size checkstools/bootconfig/main.c+12 -11 reply
2/2bootconfig: Fix integer overflow in initrd size checkinit/main.c+15 -102 repliesApplied

Reviews trailers per patch

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

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

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

Read the v4 thread

Cover letter [PATCH v4 0/2] bootconfig: Fix integer overflow problems

Hi,

Here are v4 patches to fix bootconfig size overflow issue. If there is a wrong bootconfig size is recorded, it can bypass the size check in the tool and the kernel.

Here is the previous version.

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

This version removes redundant and wrong size check in setup_boot_config() and add correct error message for size > XBC_DATA_MAX.

Thank you,

---

Masami Hiramatsu (Google) (2):
tools/bootconfig: Fix integer overflow and truncation in size checks
bootconfig: Fix integer overflow in initrd size check

 init/main.c             |   25 +++++++++++++++----------
 tools/bootconfig/main.c |   13 ++++++++++++-
 2 files changed, 27 insertions(+), 11 deletions(-)

--
Masami Hiramatsu (Google) <[email protected]>