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]>
