• Kees Cook's avatar
    pstore: Do not use crash buffer for decompression · bdabc8e7
    Kees Cook authored
    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>
    bdabc8e7
platform.c 18.6 KB