bootconfig: Fix integer overflow problems
Get series with b4
b4 am 178905331374.213925.295025394754459843.stgit@devnote2Versions newest first · linked by author and title
- v4 Latest2 patches 3 repliesIn review 1 of 2 applied
- v32 patches 4 repliesSuperseded
- v21 patch 0 repliesSuperseded
Earlier versions · 1
| Version | Posted | Patches | Replies | Status |
|---|---|---|---|---|
| v1 | 1 patch | 2 replies | Superseded |
Patches in v4 1 of 2 applied
| # | Subject and files | Size | Replies | Applied |
|---|---|---|---|---|
| 1/2 | tools/bootconfig: Fix integer overflow and truncation in size checkstools/ | +12 | 1 reply | |
| 2/2 | bootconfig: Fix integer overflow in initrd size checkinit/ | +15 | 2 replies | Applied |
Reviews trailers per patch
All 2 patches have a Reviewed-by or Acked-by.
| Patch | Sang-Heon Jeon |
|---|---|
| 1/2 | R-b |
| 2/2 | R-b |
Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.
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]>