Re: [patch 5/5] elf: Add support for loading ET_CKPT files

From: Tejun Heo
Date: Fri Oct 14 2011 - 13:33:12 EST


Hello, again.

On Fri, Oct 14, 2011 at 10:10:33AM -0700, Tejun Heo wrote:
> I see that you removed zapping to allow restoring multi-threaded
> process, which seems quite scary to me. It might be okay, I don't
> know, but IMHO it just isn't a very good idea to introduce such
> variation to basic exec behavior for this rather narrow use case.

* It's still calling exec_mmap(), so the exec'ing thread will be on
the new mm while other threads would still be on the old one.

* There are operations which assume that the calling task is
de-threaded and thus has exclusive access to data structures which
can be shared among the thread group (e.g. signal struct). How are
accesses to them synchronized?

* What about properties which should be reset and then shared by
threads by inheriting (credentials, comm, self_exec_id and so on)?
e.g. new thread follows exec-time imposed rules but old ones keep
their original credentials.

So, no, it really doesn't look good.

Thanks.

--
tejun
--
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/