kernel-ark/arch
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
..
alpha
arm
avr32
blackfin
cris
frv
h8300
i386
ia64
m32r
m68k
m68knommu
mips
parisc
powerpc [POWERPC] spufs: Don't return -ENOSYS as extra notes size if spufs is not loaded 2007-09-19 15:12:18 +10:00
ppc
s390
sh
sh64
sparc
sparc64
um
v850
x86_64
xtensa