]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
lz4: fix system halt at boot kernel on x86_64
authorKrzysztof Kolasa <kkolasa@winsoft.pl>
Mon, 4 May 2015 03:58:59 +0000 (22:58 -0500)
committerLuis Henriques <luis.henriques@canonical.com>
Wed, 15 Jul 2015 09:06:00 +0000 (10:06 +0100)
commit162831b1fb2311627eb5e23b99d1c95308979718
tree8d79963f50e57cf31f88189ff9f28a4633928103
parent4e424152cb46d68375623a2191bc4b2a68983e7b
lz4: fix system halt at boot kernel on x86_64

commit 99b7e93c95c78952724a9783de6c78def8fbfc3f upstream.

Sometimes, on x86_64, decompression fails with the following
error:

Decompressing Linux...

Decoding failed

 -- System halted

This condition is not needed for a 64bit kernel(from commit d5e7caf):

if( ... ||
    (op + COPYLENGTH) > oend)
    goto _output_error

macro LZ4_SECURE_COPY() tests op and does not copy any data
when op exceeds the value.

added by analogy to lz4_uncompress_unknownoutputsize(...)

Signed-off-by: Krzysztof Kolasa <kkolasa@winsoft.pl>
Tested-by: Alexander Kuleshov <kuleshovmail@gmail.com>
Tested-by: Caleb Jorden <cjorden@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Signed-off-by: Luis Henriques <luis.henriques@canonical.com>
lib/lz4/lz4_decompress.c