linux/arch/powerpc/platforms/pseries
Aruna Balakrishnaiah 7e76f34fa1 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>
2013-08-09 18:06:40 +10:00
..
cmm.c power: cmm - convert sysdev_class to a regular subsystem 2011-12-21 15:09:51 -08:00
dlpar.c powerpc+of: Add of node/property notification chain for adds and removes 2012-11-15 12:56:41 +11:00
dtl.c cputime: Generic on-demand virtual cputime accounting 2013-01-27 19:23:27 +01:00
eeh_pseries.c powerpc/eeh: Introdce flag to protect sysfs 2013-07-24 14:18:49 +10:00
event_sources.c
firmware.c powerpc/pseries: Update CPU maps when device tree is updated 2013-04-26 16:08:23 +10:00
hotplug-cpu.c powerpc: Fix a lazy irq related WARING in arch_local_irq_restore() 2013-01-10 14:43:45 +11:00
hotplug-memory.c mm, hotplug: avoid compiling memory hotremove functions when disabled 2013-04-29 15:54:37 -07:00
hvCall_inst.c new helper: file_inode(file) 2013-02-22 23:31:31 -05:00
hvCall.S powerpc: Merge STK_REG/PARAM/FRAMESIZE 2012-07-10 19:18:03 +10:00
hvconsole.c
hvcserver.c powerpc/pseries/hvcserver: Fix strncpy buffer limit in location code 2013-03-05 16:56:27 +11:00
io_event_irq.c trivial: powerpc: Fix typo in ioei_interrupt() description 2013-06-30 15:03:18 +10:00
iommu.c powerpc/vfio: Enable on pSeries platform 2013-06-20 16:55:15 +10:00
Kconfig powerpc/pseries: Drop "select HOTPLUG" 2013-07-24 14:18:44 +10:00
kexec.c
lpar.c powerpc/pseries: Fix a typo in pSeries_lpar_hpte_insert() 2013-07-24 14:42:18 +10:00
Makefile powerpc/eeh: Move common part to kernel directory 2013-06-20 17:05:35 +10:00
mobility.c powerpc/pseries: Correct buffer parsing in update_dt_node() 2013-04-26 16:08:19 +10:00
msi.c powerpc/pseries: Make 32-bit MSI quirk work on systems lacking firmware support 2013-05-24 18:16:54 +10:00
nvram.c powerpc/pseries: Fix buffer overflow when reading from pstore 2013-08-09 18:06:40 +10:00
offline_states.h
pci_dlpar.c powerpc/eeh: Move common part to kernel directory 2013-06-20 17:05:35 +10:00
pci.c powerpc/pseries: Perform proper max_bus_speed detection 2013-05-06 09:25:38 +10:00
plpar_wrappers.h powerpc: Use VPA subfunction macros instead of numbers for vpa calls 2013-04-18 11:52:58 +10:00
power.c
processor_idle.c cpuidle: remove en_core_tk_irqen flag 2013-04-23 13:45:22 +02:00
pseries_energy.c powerpc/pseries: Cleanup best_energy_hcall detection 2013-01-10 15:08:37 +11:00
pseries.h powerpc/pseries: Perform proper max_bus_speed detection 2013-05-06 09:25:38 +10:00
ras.c powerpc: Fix the corrupt r3 error during MCE handling. 2013-07-24 14:18:45 +10:00
reconfig.c proc: Supply PDE attribute setting accessor functions 2013-05-01 17:29:18 -04:00
scanlog.c ppc: Clean up scanlog 2013-05-01 17:29:45 -04:00
setup.c powerpc/pseries: Perform proper max_bus_speed detection 2013-05-06 09:25:38 +10:00
smp.c powerpc/smp: Use '==' instead of '<' for system_state 2013-06-20 17:04:23 +10:00
suspend.c powerpc: Bring all threads online prior to migration/hibernation 2013-05-14 14:36:29 +10:00