On 08/21/2011 07:26 PM, Andrew Lutomirski wrote: > > Which still leaves the question of how to fix it. Restarting via an > int 0x80-based helper might be the only option that leaves everything > fully functional. >
The issue is that we don't represent the entire state ... we represent only one metalevel of it, currently the "cooked" one. The problem is that we need the "raw" one as well, and in order to have *both* we need to know the entry mechanism. We need that IN EITHER CASE. This is reasonably straightforward... we can carry the entry mechanism forward inside the kernel, and fix it up in the IRET path. The *really* big issue is what we drop as the sigcontext since this is an ABI carried out to userspace. We could just say "it's currently totally broken for SYSCALL" and just change it to drop the raw state, but which has the potential for breaking unknown programs, *or* we could add a bit of state (presumably by reclaiming one of the padding fields around cs and ss) ... which *also* has the potential for breaking programs. Right now, SYSCALL -> signal -> restart *is broken*, however, so there is also the option of just doing nothing in this case, I guess. -hpa -- H. Peter Anvin, Intel Open Source Technology Center I work for Intel. I don't speak on their behalf. ------------------------------------------------------------------------------ uberSVN's rich system and user administration capabilities and model configuration take the hassle out of deploying and managing Subversion and the tools developers use with it. Learn more about uberSVN and get a free download at: http://p.sf.net/sfu/wandisco-dev2dev _______________________________________________ User-mode-linux-devel mailing list User-mode-linux-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/user-mode-linux-devel