linux_dsm_epyc7002/drivers/firmware/efi/libstub
Arvind Sankar 8a8a3237a7 efi/libstub: Handle unterminated cmdline
Make the command line parsing more robust, by handling the case it is
not NUL-terminated.

Use strnlen instead of strlen, and make sure that the temporary copy is
NUL-terminated before parsing.

Cc: <stable@vger.kernel.org>
Signed-off-by: Arvind Sankar <nivedita@alum.mit.edu>
Link: https://lore.kernel.org/r/20200813185811.554051-4-nivedita@alum.mit.edu
Signed-off-by: Ard Biesheuvel <ardb@kernel.org>
2020-08-20 11:18:58 +02:00
..
alignedmem.c
arm32-stub.c
arm64-stub.c
efi-stub-helper.c efi/libstub: Handle unterminated cmdline 2020-08-20 11:18:58 +02:00
efi-stub.c
efistub.h
fdt.c
file.c
gop.c
hidden.h
Makefile Kbuild updates for v5.9 2020-08-09 14:10:26 -07:00
mem.c
pci.c
random.c
randomalloc.c
relocate.c
secureboot.c
skip_spaces.c
string.c
tpm.c
vsprintf.c
x86-stub.c