public inbox for linux-mips@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH 0/8] MIPS: bound early command-line construction
@ 2026-04-05  2:20 Pengpeng Hou
  2026-04-04 14:06 ` [PATCH 2/8] MIPS: sni: bound PROM command-line appends Pengpeng Hou
                   ` (7 more replies)
  0 siblings, 8 replies; 11+ messages in thread
From: Pengpeng Hou @ 2026-04-05  2:20 UTC (permalink / raw)
  To: Thomas Bogendoerfer, Maciej W. Rozycki; +Cc: linux-mips, linux-kernel, pengpeng

From: Pengpeng Hou <pengpeng@iscas.ac.cn>
Date: Sun, 5 Apr 2026 10:20:00 +0800
Subject: [PATCH 0/8] MIPS: bound early command-line construction

These eight fixes harden a set of MIPS early boot paths that build the
kernel command line in fixed-size buffers with unchecked appends.

The affected paths take firmware- or PROM-provided arguments and extend
`arcs_cmdline` or `fw_getcmdline()` with repeated `strcat()`, in-place
`sprintf()`, or equivalent unchecked copies. A long enough firmware
argument set can therefore run past the fixed command-line buffer during
early boot.

This series switches those constructions over to bounded concatenation
while keeping the existing boot-time behavior otherwise unchanged.

Patches:
- 1/8 MIPS: dec: bound PROM command-line appends
- 2/8 MIPS: sni: bound PROM command-line appends
- 3/8 MIPS: lemote-2f: bound machtype command-line append
- 4/8 MIPS: txx9: bound command-line reconstruction
- 5/8 MIPS: arc: bound firmware command-line construction
- 6/8 MIPS: cavium-octeon: bound default console command-line append
- 7/8 MIPS: malta-init: bound default console command-line append
- 8/8 MIPS: malta-setup: bound pci_clock command-line append

Base:
- `origin/master`
- `3aae9383f42f`

Checks:
- all 8 patches apply cleanly to the latest `origin/master`
- `checkpatch --strict` is clean on all 8 exported patch files

Thanks,
Pengpeng



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

end of thread, other threads:[~2026-04-06  0:40 UTC | newest]

Thread overview: 11+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-04-05  2:20 [PATCH 0/8] MIPS: bound early command-line construction Pengpeng Hou
2026-04-04 14:06 ` [PATCH 2/8] MIPS: sni: bound PROM command-line appends Pengpeng Hou
2026-04-04 14:06 ` [PATCH 3/8] MIPS: lemote-2f: bound machtype command-line append Pengpeng Hou
2026-04-04 14:06 ` [PATCH 1/8] MIPS: dec: bound PROM command-line appends Pengpeng Hou
2026-04-04 14:06 ` [PATCH 7/8] MIPS: malta-init: bound default console command-line append Pengpeng Hou
2026-04-05 16:08   ` Sergey Shtylyov
2026-04-06  5:30   ` Pengpeng Hou
2026-04-04 14:06 ` [PATCH 8/8] MIPS: malta-setup: bound pci_clock " Pengpeng Hou
2026-04-04 14:06 ` [PATCH 6/8] MIPS: cavium-octeon: bound default console " Pengpeng Hou
2026-04-04 14:06 ` [PATCH 5/8] MIPS: arc: bound firmware command-line construction Pengpeng Hou
2026-04-04 14:06 ` [PATCH 4/8] MIPS: txx9: bound command-line reconstruction Pengpeng Hou

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