aboutsummaryrefslogtreecommitdiff
path: root/scripts/gdb/linux/modules.py
diff options
context:
space:
mode:
authorAruna Balakrishnaiah <[email protected]>2013-08-08 22:33:49 +0530
committerBenjamin Herrenschmidt <[email protected]>2013-08-09 18:06:40 +1000
commit7e76f34fa103677a27d96a7cfef8ce61389a32de (patch)
treefe4ceca869426702d81b5dbf0a924adbd9708725 /scripts/gdb/linux/modules.py
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 <[email protected]> Signed-off-by: Benjamin Herrenschmidt <[email protected]>
Diffstat (limited to 'scripts/gdb/linux/modules.py')
0 files changed, 0 insertions, 0 deletions