]> git.baikalelectronics.ru Git - kernel.git/commit
pstore: Allocate compression during late_initcall()
authorJoel Fernandes (Google) <joel@joelfernandes.org>
Wed, 17 Oct 2018 10:13:55 +0000 (03:13 -0700)
committerKees Cook <keescook@chromium.org>
Mon, 22 Oct 2018 14:11:58 +0000 (07:11 -0700)
commitabc0167ab433ddb12eaf4a529297bee1608ee124
tree34316a8c8acabd4ece304c2374ef87084aa41d81
parentaa60f34125bd659ee3cb06e60f15902b253289a8
pstore: Allocate compression during late_initcall()

ramoops's call of pstore_register() was recently moved to run during
late_initcall() because the crypto backend may not have been ready during
postcore_initcall(). This meant early-boot crash dumps were not getting
caught by pstore any more.

Instead, lets allow calls to pstore_register() earlier, and once crypto
is ready we can initialize the compression.

Reported-by: Sai Prakash Ranjan <saiprakash.ranjan@codeaurora.org>
Signed-off-by: Joel Fernandes (Google) <joel@joelfernandes.org>
Tested-by: Sai Prakash Ranjan <saiprakash.ranjan@codeaurora.org>
Fixes: 8da3da789baf ("pstore: Use crypto compress API")
[kees: trivial rebase]
Signed-off-by: Kees Cook <keescook@chromium.org>
Tested-by: Guenter Roeck <groeck@chromium.org>
fs/pstore/platform.c
fs/pstore/ram.c