diff options
author | Arvind Sankar <nivedita@alum.mit.edu> | 2020-05-21 03:29:21 +0300 |
---|---|---|
committer | Ard Biesheuvel <ardb@kernel.org> | 2020-05-22 17:50:03 +0300 |
commit | 80b1bfe1cb2f20225fb2d8f11d44af4a9d765396 (patch) | |
tree | cd6f70557c1fe4a91be370bb79c8df837a9487ad /drivers/firmware/dmi-sysfs.c | |
parent | 04b24409b42a9fcae2379a6ddcf9c827b9af7a45 (diff) | |
download | linux-80b1bfe1cb2f20225fb2d8f11d44af4a9d765396.tar.xz |
efi/libstub: Don't parse overlong command lines
Check if the command line passed in is larger than COMMAND_LINE_SIZE,
and truncate it to the last full argument if so.
Signed-off-by: Arvind Sankar <nivedita@alum.mit.edu>
Link: https://lore.kernel.org/r/20200521002921.69650-1-nivedita@alum.mit.edu
Signed-off-by: Ard Biesheuvel <ardb@kernel.org>
Diffstat (limited to 'drivers/firmware/dmi-sysfs.c')
0 files changed, 0 insertions, 0 deletions