Skip to content
Commit 1607f09c authored by Mateusz Guzik's avatar Mateusz Guzik Committed by Al Viro
Browse files

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: a0083939 ("get rid of coredump_params->written").

Reported-by: default avatarZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>
Signed-off-by: default avatarMateusz Guzik <mguzik@redhat.com>
Reviewed-by: default avatarOmar Sandoval <osandov@fb.com>
Signed-off-by: default avatarAl Viro <viro@zeniv.linux.org.uk>
parent a01e718f
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment