+4
−0
Loading
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>