Re: [RFC][PATCH 8/8] check files for checkpointability

From: Serge E. Hallyn
Date: Mon Mar 02 2009 - 13:35:58 EST


Quoting Dave Hansen (dave@xxxxxxxxxxxxxxxxxx):
> On Mon, 2009-03-02 at 11:44 -0600, Serge E. Hallyn wrote:
> > Quoting Dave Hansen (dave@xxxxxxxxxxxxxxxxxx):
> > > On Mon, 2009-03-02 at 11:22 -0600, Nathan Lynch wrote:
> > > > No.. I mean what if a process 1234 does
> > > >
> > > > f = fopen("/proc/1234/stat", "r");
> > > >
> > > > and is then checkpointed. Can that path be resolved during restart,
> > > > before pid 1234 is alive?
> > >
> > > Heh, that's a good one.
> > >
> > > It does mean that we can't do restore like this:
> > >
> > > for_each_cr_task()
> > > restore_task_struct()
> > > restore_files()
> > > ...
> > >
> > > We have to do:
> > >
> > > for_each_cr_task()
> > > restore_task_struct()
> > > for_each_cr_task()
> > > restore_files()
> > >
> > Which is what we actually do, right?
>
> OK, I have a really evil one.
>
> What if task 1234 does:
>
> open(O_RDONLY, "/proc/5678/fdinfo/44");
>
> and task 5678 does:
>
> open(O_RDONLY, "/proc/5678/fdinfo/55");

Nice one. Let's make fdinfo files uncheckpointable for now :)

-serge
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/