diff options
| author | Mateusz Guzik <[email protected]> | 2016-06-05 21:14:14 +0000 |
|---|---|---|
| committer | Al Viro <[email protected]> | 2016-06-08 02:07:09 +0000 |
| commit | 1607f09c226d1378439c411baaaa020042750338 (patch) | |
| tree | 664e5239468f2bc978c6b8c6f2fb64904c20f7e9 /tools/perf/scripts/python/syscall-counts.py | |
| parent | fix a regression in atomic_open() (diff) | |
| download | kernel-1607f09c226d1378439c411baaaa020042750338.tar.gz kernel-1607f09c226d1378439c411baaaa020042750338.zip | |
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: a00839395103 ("get rid of coredump_params->written").
Reported-by: Zbigniew Jędrzejewski-Szmek <[email protected]>
Signed-off-by: Mateusz Guzik <[email protected]>
Reviewed-by: Omar Sandoval <[email protected]>
Signed-off-by: Al Viro <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/syscall-counts.py')
0 files changed, 0 insertions, 0 deletions
