Re: [PATCH 7/7] binfmt: Introduce the binfmt_img exec handler

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hello,

On Sat, Jul 23, 2011 at 12:51:09PM +0400, Pavel Emelyanov wrote:
> On 07/23/2011 12:45 PM, Tejun Heo wrote:
> > Just restore it using the usual system calls - clone, mmap, open....
> 
> I can't clone/mmap/open registers (yet, unless we decide to have /proc/pid/regs
> file, do we?). Neither can I do it for anonymous private mappings :(

Hmmm?  When restoring a task, the task is started under restorer's
control.  The restorer can use ptrace to restore registers or feed it
assemblies to restore register states (ie. series of movq's to set
each register to the stored value followed by jmp to the stored RIP).

I don't understand your concern about anonymous private mappings.
What's different about them?  Can't the process being restored mmap
anonymous private mappings and fill it with the saved data?

Thanks.

-- 
tejun
_______________________________________________
Containers mailing list
Containers@xxxxxxxxxxxxxxxxxxxxxxxxxx
https://lists.linux-foundation.org/mailman/listinfo/containers


[Index of Archives]     [Cgroups]     [Netdev]     [Linux Wireless]     [Kernel Newbies]     [Security]     [Linux for Hams]     [Netfilter]     [Bugtraq]     [Yosemite Forum]     [MIPS Linux]     [ARM Linux]     [Linux RAID]     [Linux Admin]     [Samba]

  Powered by Linux