Skip to content
Snippets Groups Projects
Commit bdabc8e7 authored by Kees Cook's avatar Kees Cook
Browse files

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: default avatarKees Cook <keescook@chromium.org>
parent 971f66d8
No related branches found
No related tags found
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment