[CRIU] [PATCH v2 02/24] exec: Simplify unshare_files
Linus Torvalds
torvalds at linux-foundation.org
Mon Nov 23 21:25:13 MSK 2020
On Mon, Nov 23, 2020 at 9:52 AM Oleg Nesterov <oleg at redhat.com> wrote:
>
> Can anyone explain why does do_coredump() need unshare_files() at all?
Hmm. It goes back to 2012, and it's placed just before calling
"->core_dump()", so I assume some core dumping function messed with
the file table back when..
I can't see anything like that currently.
The alternative is that core-dumping just keeps the file table around
for a long while, and thus files don't actually close in a timely
manner. So it might not be a "correctness" issue as much as a latency
issue.
Linus
More information about the CRIU
mailing list