diff options
| author | Pengpeng Hou <pengpeng@iscas.ac.cn> | 2026-04-07 09:57:03 +0800 |
|---|---|---|
| committer | Thomas Bogendoerfer <tsbogend@alpha.franken.de> | 2026-04-13 15:36:36 +0200 |
| commit | f992846d0b45691a02d0a9775c5c2a50956e62a5 (patch) | |
| tree | 8681670b58f65edf4cebc2df8941586efb7109dc /rust/kernel/interop/git@git.tavy.me:linux-stable.git | |
| parent | d1d0aa620a0f5fc621e5fb780e55a71962b19413 (diff) | |
MIPS: validate DT bootargs before appending them
bootcmdline_scan_chosen() fetches the raw flat-DT bootargs property and
passes it straight to bootcmdline_append(). That helper later feeds the
same pointer into strlcat(), which computes strlen(src) before copying.
Flat DT properties are external boot input, and this path does not
prove that bootargs is NUL-terminated within its declared bounds.
Reject unterminated bootargs properties before appending them to the
kernel command line.
Signed-off-by: Pengpeng Hou <pengpeng@iscas.ac.cn>
Signed-off-by: Thomas Bogendoerfer <tsbogend@alpha.franken.de>
Diffstat (limited to 'rust/kernel/interop/git@git.tavy.me:linux-stable.git')
0 files changed, 0 insertions, 0 deletions
