lz4: fix system halt at boot kernel on x86_64
authorKrzysztof Kolasa <kkolasa@winsoft.pl>
Wed, 11 Dec 2019 14:35:39 +0000 (15:35 +0100)
committerJan Beulich <jbeulich@suse.com>
Wed, 11 Dec 2019 14:35:39 +0000 (15:35 +0100)
commit14b62ab3e5a79816edfc6dd3afce1bb68c106ac5
treef3729fd132548974f3c3d24ff5959dffaab0d641
parent6561994b87af3e9cd28ee99c42e8b2697621687d
lz4: fix system halt at boot kernel on x86_64

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>
[Linux commit 99b7e93c95c78952724a9783de6c78def8fbfc3f]

The offending commit in our case is fcc17f96c277 ("LZ4 : fix the data
abort issue").

Signed-off-by: Jan Beulich <jbeulich@suse.com>
Acked-by: Andrew Cooper <andrew.cooper3@citrix.com>
master commit: 5d90ff79542ab9c6eebe5c315c68c196bcf353b9
master date: 2019-12-09 14:02:35 +0100
xen/common/lz4/decompress.c