linux/arch/powerpc/platforms/cell/spufs
Mateusz Guzik 1607f09c22 coredump: fix dumping through pipes
The offset in the core file used to be tracked with ->written field of
the coredump_params structure. The field was retired in favour of
file->f_pos.

However, ->f_pos is not maintained for pipes which leads to breakage.

Restore explicit tracking of the offset in coredump_params. Introduce
->pos field for this purpose since ->written was already reused.

Fixes: a008393951 ("get rid of coredump_params->written").

Reported-by: Zbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>
Signed-off-by: Mateusz Guzik <mguzik@redhat.com>
Reviewed-by: Omar Sandoval <osandov@fb.com>
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
2016-06-07 22:07:09 -04:00
..
.gitignore
backing_ops.c powerpc: remove non-required uses of include <linux/module.h> 2011-10-31 19:30:44 -04:00
context.c powerpc: cell: Use ktime_get_ns() 2014-07-23 10:18:07 -07:00
coredump.c coredump: fix dumping through pipes 2016-06-07 22:07:09 -04:00
fault.c powerpc/mm: Replace _PAGE_USER with _PAGE_PRIVILEGED 2016-05-01 18:32:26 +10:00
file.c wrappers for ->i_mutex access 2016-01-22 18:04:28 -05:00
gang.c
hw_ops.c powerpc: remove non-required uses of include <linux/module.h> 2011-10-31 19:30:44 -04:00
inode.c dcache_{readdir,dir_lseek}() users: switch to ->iterate_shared 2016-05-02 19:49:32 -04:00
lscsa_alloc.c powerpc/cell: Drop support for 64K local store on 4K kernels 2015-08-18 19:29:49 +10:00
Makefile powerpc/cell: Fix compilation with CONFIG_COREDUMP=n 2014-07-11 12:55:05 +10:00
run.c powerpc: Standardise on NR_syscalls rather than __NR_syscalls. 2015-11-26 22:11:17 +11:00
sched.c powerpc: cell: Use ktime_get_ns() 2014-07-23 10:18:07 -07:00
spu_restore_crt0.S
spu_restore_dump.h_shipped
spu_restore.c Fix common misspellings 2011-03-31 11:26:23 -03:00
spu_save_crt0.S
spu_save_dump.h_shipped
spu_save.c
spu_utils.h
spufs.h powerpc/spufs: Remove duplicate SPUFS_CNTL_MAP_SIZE define 2014-06-11 17:03:32 +10:00
sputrace.h
switch.c powerpc: various straight conversions from module.h --> export.h 2011-10-31 19:30:44 -04:00
syscalls.c powerpc/cell: Fix compilation with CONFIG_COREDUMP=n 2014-07-11 12:55:05 +10:00