From: Greg Kroah-Hartman Date: Thu, 3 Jul 2014 23:06:57 +0000 (-0700) Subject: lz4: add overrun checks to lz4_uncompress_unknownoutputsize() X-Git-Tag: omap-for-v3.17/soc-cleanup~15^2 X-Git-Url: https://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=4a3a99045177369700c60d074c0e525e8093b0fc;p=pandora-kernel.git lz4: add overrun checks to lz4_uncompress_unknownoutputsize() Jan points out that I forgot to make the needed fixes to the lz4_uncompress_unknownoutputsize() function to mirror the changes done in lz4_decompress() with regards to potential pointer overflows. The only in-kernel user of this function is the zram code, which only takes data from a valid compressed buffer that it made itself, so it's not a big issue. But due to external kernel modules using this function, it's better to be safe here. Reported-by: Jan Beulich Cc: "Don A. Bailey" Cc: stable Signed-off-by: Greg Kroah-Hartman --- Reading git-diff-tree failed