summaryrefslogtreecommitdiffstats
path: root/arch/mn10300
diff options
context:
space:
mode:
authorAruna Balakrishnaiah <aruna@linux.vnet.ibm.com>2013-08-08 22:33:49 +0530
committerBenjamin Herrenschmidt <benh@kernel.crashing.org>2013-08-09 18:06:40 +1000
commit7e76f34fa103677a27d96a7cfef8ce61389a32de (patch)
treefe4ceca869426702d81b5dbf0a924adbd9708725 /arch/mn10300
parent4e90a2a7375e86827541bda9393414c03e7721c6 (diff)
powerpc/pseries: Fix buffer overflow when reading from pstore
When reading from pstore there is a buffer overflow during decompression due to the header added in unzip_oops. Remove unzip_oops and call pstore_decompress directly in nvram_pstore_read. Allocate buffer of size report_length of the oops header as header will not be deallocated in pstore. Since we have 'openssl' command line tool to decompress the compressed data, dump the compressed data in case decompression fails instead of not dumping anything. Signed-off-by: Aruna Balakrishnaiah <aruna@linux.vnet.ibm.com> Signed-off-by: Benjamin Herrenschmidt <benh@kernel.crashing.org>
Diffstat (limited to 'arch/mn10300')
0 files changed, 0 insertions, 0 deletions