]> asedeno.scripts.mit.edu Git - linux.git/commit
pstore: Do not use crash buffer for decompression
authorKees Cook <keescook@chromium.org>
Fri, 26 Oct 2018 08:17:07 +0000 (01:17 -0700)
committerKees Cook <keescook@chromium.org>
Tue, 4 Dec 2018 00:52:35 +0000 (16:52 -0800)
commitbdabc8e71c8582cd61314f004b9a0283269585bb
tree37a81c0fcf48abf0702a333cc83e8d88833a8a17
parent971f66d8a75a4f86a254652cc1e70a7be841cc43
pstore: Do not use crash buffer for decompression

The pre-allocated compression buffer used for crash dumping was also
being used for decompression. This isn't technically safe, since it's
possible the kernel may attempt a crashdump while pstore is populating the
pstore filesystem (and performing decompression). Instead, just allocate
a separate buffer for decompression. Correctness is preferred over
performance here.

Signed-off-by: Kees Cook <keescook@chromium.org>
fs/pstore/platform.c