On 08/22/2011 02:52 PM, Andrew Lutomirski wrote: > > Even if it's ok, we still have to do *something* in the cstar entry > point -- I don't think there's any way to turn SYSCALL in > compatibility mode but leave it enabled in long mode. So if we're > planning on killing off SYSCALL from outside the vdso, we could > probably get away with leaving it enabled in the vdso. > > Unless, of course, there are 32-bit JITs that do things that they > shouldn't. We could still make it work by rewriting the arguments > (including arg6 on the stack) from the syscall restart path, but that > may be more trouble than it's worth. >
Hm, looks like you might be right; I thought leaving CSTAR at zero would take care of that, but it looks like that might not be true. However, we could just issue a SIGILL or SIGSEGV at this point; the same way we would if we got an #UD or #GP fault; SIGILL/#UD would be consistent with Intel CPUs here. Yes, we could do an EIP check and issue SIGILL only if it isn't in the vdso, but after the crap from earlier this month I would be happier if we could avoid this potential problem entirely. Borislav has a query in with his hardware folks, let's give them the chance to answer. -hpa ------------------------------------------------------------------------------ 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