]> git.proxmox.com Git - mirror_ubuntu-hirsute-kernel.git/commit
x86/kaslr: Make command line handling safer
authorArvind Sankar <nivedita@alum.mit.edu>
Mon, 27 Jul 2020 23:07:54 +0000 (19:07 -0400)
committerIngo Molnar <mingo@kernel.org>
Fri, 31 Jul 2020 09:07:51 +0000 (11:07 +0200)
commit709709ac6410f4a14ded158a4b23b979e33e10fb
treef72d7d905e9d4390db05741ac6641e03e8dc3c37
parent92ed301919932f777713b9172e525674157e983d
x86/kaslr: Make command line handling safer

Handle the possibility that the command line is NULL.

Replace open-coded strlen with a function call.

Signed-off-by: Arvind Sankar <nivedita@alum.mit.edu>
Signed-off-by: Ingo Molnar <mingo@kernel.org>
Reviewed-by: Kees Cook <keescook@chromium.org>
Link: https://lore.kernel.org/r/20200727230801.3468620-2-nivedita@alum.mit.edu
arch/x86/boot/compressed/kaslr.c