]> git.baikalelectronics.ru Git - kernel.git/commit
Revert "pstore: migrate to crypto acomp interface"
authorGuilherme G. Piccoli <gpiccoli@igalia.com>
Thu, 29 Sep 2022 21:55:15 +0000 (18:55 -0300)
committerKees Cook <keescook@chromium.org>
Fri, 30 Sep 2022 15:16:06 +0000 (08:16 -0700)
commitfd9f8317fc108e289f36182636473b211e54aab7
treed9b0e163ac2fa7179650c5538ec7c1962040518e
parent3d7dcb2c5450a57f60c448f42be48fdfe456bfdf
Revert "pstore: migrate to crypto acomp interface"

This reverts commit 05ba8240bcb6636bf672a69a21f2818db98ca71f.

When using this new interface, both efi_pstore and ramoops
backends are unable to properly decompress dmesg if using
zstd, lz4 and lzo algorithms (and maybe more). It does succeed
with deflate though.

The message observed in the kernel log is:

[2.328828] pstore: crypto_acomp_decompress failed, ret = -22!

The pstore infrastructure is able to collect the dmesg with
both backends tested, but since decompression fails it's
unreadable. With this revert everything is back to normal.

Fixes: 05ba8240bcb6 ("pstore: migrate to crypto acomp interface")
Cc: Ard Biesheuvel <ardb@kernel.org>
Signed-off-by: Guilherme G. Piccoli <gpiccoli@igalia.com>
Signed-off-by: Kees Cook <keescook@chromium.org>
Link: https://lore.kernel.org/r/20220929215515.276486-1-gpiccoli@igalia.com
fs/pstore/platform.c