mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* [PATCH v4 0/2] bootconfig: Fix integer overflow problems
@ 2026-09-10 15:15 Masami Hiramatsu (Google)
  2026-09-10 15:15 ` [PATCH v4 1/2] tools/bootconfig: Fix integer overflow and truncation in size checks Masami Hiramatsu (Google)
  2026-09-10 15:15 ` [PATCH v4 2/2] bootconfig: Fix integer overflow in initrd size check Masami Hiramatsu (Google)
  0 siblings, 2 replies; 6+ messages in thread
From: Masami Hiramatsu (Google) @ 2026-09-10 15:15 UTC (permalink / raw)
  To: Masami Hiramatsu, Andrew Morton, Breno Leitao, Christian Brauner,
	Thomas Gleixner, Ryan Roberts, Thomas Weißschuh,
	Douglas Anderson, Huacai Chen
  Cc: Mark Rutland, linux-kernel, linux-trace-kernel, Sang-Heon Jeon

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) <mhiramat@kernel.org>

^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2026-09-11  6:16 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2026-09-10 15:15 [PATCH v4 0/2] bootconfig: Fix integer overflow problems Masami Hiramatsu (Google)
2026-09-10 15:15 ` [PATCH v4 1/2] tools/bootconfig: Fix integer overflow and truncation in size checks Masami Hiramatsu (Google)
2026-09-10 16:16   ` Sang-Heon Jeon
2026-09-10 15:15 ` [PATCH v4 2/2] bootconfig: Fix integer overflow in initrd size check Masami Hiramatsu (Google)
2026-09-10 16:29   ` Sang-Heon Jeon
2026-09-11  6:16     ` Masami Hiramatsu

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®