mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* [PATCH v3 0/2] bootconfig: Fix integer overflow problems
@ 2026-09-10  1:59 Masami Hiramatsu (Google)
  2026-09-10  1:59 ` [PATCH v3 1/2] tools/bootconfig: Fix integer overflow and truncation in size checks Masami Hiramatsu (Google)
  2026-09-10  1:59 ` [PATCH v3 2/2] bootconfig: Fix integer overflow in initrd size check Masami Hiramatsu (Google)
  0 siblings, 2 replies; 3+ messages in thread
From: Masami Hiramatsu (Google) @ 2026-09-10  1:59 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 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.

The previous version only fixes tools, but Sashiko found the same issue in
the kernel. So this version add that fix.

Here is the previous version.

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

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             |   14 ++++++++++----
 tools/bootconfig/main.c |   13 ++++++++++++-
 2 files changed, 22 insertions(+), 5 deletions(-)

--
Masami Hiramatsu (Google) <mhiramat@kernel.org>

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

end of thread, other threads:[~2026-09-10  1:59 UTC | newest]

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

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®