Thread (27 messages) flat view 27 messages, 4 authors, 2007-09-13

Re: [PATCH 07/15] Don't return -ENOSYS as extra notes size if spufs is not loaded

From: Arnd Bergmann <arnd@arndb.de>
Date: 2007-09-12 11:08:35
Also in: lkml

On Wednesday 12 September 2007, Michael Ellerman wrote:
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 <redacted>
Acked-by: Arnd Bergmann <redacted>
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help