]> git.baikalelectronics.ru Git - kernel.git/commit
bootconfig: Check the checksum before removing the bootconfig from initrd
authorMasami Hiramatsu <mhiramat@kernel.org>
Wed, 6 Apr 2022 02:31:09 +0000 (11:31 +0900)
committerSteven Rostedt (Google) <rostedt@goodmis.org>
Tue, 26 Apr 2022 21:58:51 +0000 (17:58 -0400)
commit648550b5f6961523b504f55d1488b01712a9315e
tree1e1359050ddd8a809d2fc6c8d28aa8cbd1d91caa
parentaaaddd66c519426e01b93428597ad58690145049
bootconfig: Check the checksum before removing the bootconfig from initrd

Check the bootconfig's checksum before removing the bootconfig data
from initrd to avoid modifying initrd by mistake.
This will also simplifies the get_boot_config_from_initrd() interface.

Link: https://lkml.kernel.org/r/164921226891.1090670.16955839243639298134.stgit@devnote2
Cc: Padmanabha Srinivasaiah <treasure4paddy@gmail.com>
Cc: Jonathan Corbet <corbet@lwn.net>
Cc: Randy Dunlap <rdunlap@infradead.org>
Cc: Nick Desaulniers <ndesaulniers@google.com>
Cc: Sami Tolvanen <samitolvanen@google.com>
Cc: Nathan Chancellor <nathan@kernel.org>
Cc: Masahiro Yamada <masahiroy@kernel.org>
Cc: Linux Kbuild mailing list <linux-kbuild@vger.kernel.org>
Signed-off-by: Masami Hiramatsu <mhiramat@kernel.org>
Signed-off-by: Steven Rostedt (Google) <rostedt@goodmis.org>
init/main.c