aboutsummaryrefslogtreecommitdiff
path: root/fs/pstore/inode.c
diff options
context:
space:
mode:
authorGravatar Ben Zhang <benzh@chromium.org> 2014-10-30 17:14:21 -0700
committerGravatar Tony Luck <tony.luck@intel.com> 2014-11-05 09:58:17 -0800
commita28726b4fb624f81d637a8afb9ea12fc16500f61 (patch)
tree97dbec898efa336bca564174d2311acb35eb2c78 /fs/pstore/inode.c
parentLinux 3.18-rc3 (diff)
downloadlinux-a28726b4fb624f81d637a8afb9ea12fc16500f61.tar.gz
linux-a28726b4fb624f81d637a8afb9ea12fc16500f61.tar.bz2
linux-a28726b4fb624f81d637a8afb9ea12fc16500f61.zip
pstore/ram: Strip ramoops header for correct decompression
pstore compression/decompression was added during 3.12. The ramoops driver prepends a "====timestamp.timestamp-C|D\n" header to the compressed record before handing it over to pstore driver which doesn't know about the header. In pstore_decompress(), the pstore driver reads the first "==" as a zlib header, so the decompression always fails. For example, this causes the driver to write /dev/pstore/dmesg-ramoops-0.enc.z instead of /dev/pstore/dmesg-ramoops-0. This patch makes the ramoops driver remove the header before pstore decompression. Signed-off-by: Ben Zhang <benzh@chromium.org> Acked-by: Kees Cook <keescook@chromium.org> Signed-off-by: Tony Luck <tony.luck@intel.com>
Diffstat (limited to 'fs/pstore/inode.c')
0 files changed, 0 insertions, 0 deletions