linux-hardened/arch/powerpc/platforms
Michael Ellerman c1a72173ab [POWERPC] spufs: Don't return -ENOSYS as extra notes size if spufs is not loaded
Because the SPU coredump code might be built as part of a module (spufs),
we have a stub which is called by the coredump code, this routine then calls
into spufs if it's loaded.

Unfortunately the stub returns -ENOSYS if spufs is not loaded, which is
interpreted by the coredump code as an extra note size of -38 bytes. This
leads to a corrupt core dump.

If spufs is not loaded there will be no SPU ELF notes to write, and so the
extra notes size will be == 0.

Signed-off-by: Michael Ellerman <michael@ellerman.id.au>
Signed-off-by: Jeremy Kerr <jk@ozlabs.org>
Acked-by: Arnd Bergmann <arnd.bergmann@de.ibm.com>
Signed-off-by: Paul Mackerras <paulus@samba.org>
2007-09-19 15:12:18 +10:00
..
8xx [POWERPC] Remove old includes from arch/ppc 2007-08-22 22:39:35 -05:00
40x [POWERPC] Walnut board support 2007-09-07 07:51:24 -05:00
44x [POWERPC] Fix bus probe on Bamboo board 2007-09-07 07:50:26 -05:00
52xx [POWERPC] Provide a default irq_host match, which matches on an exact of_node 2007-09-14 01:33:20 +10:00
82xx [POWERPC] Provide a default irq_host match, which matches on an exact of_node 2007-09-14 01:33:20 +10:00
83xx [POWERPC] MPC832x_RDB: Update dts to use SPI1 in QE, register mmc_spi stub 2007-09-14 08:54:13 -05:00
85xx [POWERPC] 85xx: Add basic Uniprocessor MPC8572 DS port 2007-09-14 08:51:54 -05:00
86xx [POWERPC] 86xx: Remove unnecessary loops_per_jiffy initialization code. 2007-09-14 08:51:32 -05:00
cell [POWERPC] spufs: Don't return -ENOSYS as extra notes size if spufs is not loaded 2007-09-19 15:12:18 +10:00
celleb [POWERPC] Invert null match behaviour for irq_hosts 2007-09-14 01:33:20 +10:00
chrp [POWERPC] Copy over headers from arch/ppc to arch/powerpc that we need 2007-08-22 22:43:29 -05:00
embedded6xx [POWERPC] linkstation updates 2007-09-14 08:51:27 -05:00
iseries [POWERPC] Invert null match behaviour for irq_hosts 2007-09-14 01:33:20 +10:00
maple [POWERPC] maple pci_ops: Use named structure member initializers 2007-08-17 11:01:53 +10:00
pasemi [POWERPC] Add workaround for MPICs with broken register reads 2007-09-14 01:33:25 +10:00
powermac [POWERPC] Add an optional device_node pointer to the irq_host 2007-09-14 01:33:20 +10:00
prep [POWERPC] Split several platforms into their respective Kconfig file 2007-03-22 10:07:32 -05:00
ps3 [POWERPC] PS3: Enhance storage probe debug output 2007-09-14 01:33:26 +10:00
pseries [POWERPC] Add an optional device_node pointer to the irq_host 2007-09-14 01:33:20 +10:00
fsl_uli1575.c [POWERPC] Fix interrupt routing and setup of ULI M1575 on FSL boards 2007-08-17 13:22:16 -05:00
Kconfig [POWERPC] Add workaround for MPICs with broken register reads 2007-09-14 01:33:25 +10:00
Kconfig.cputype [POWERPC] bootwrapper: Add 8xx cuboot support 2007-08-22 15:28:59 +10:00
Makefile [POWERPC] Walnut board support 2007-09-07 07:51:24 -05:00