On Tuesday 29 November 2005 18:55, Jeff Dike wrote: > On Tue, Nov 29, 2005 at 05:28:56PM +0100, Blaisorblade wrote: > > So, again: can we finally rewrite clone.c in assembly? Or, otherwise, to > > use a unique assembly macro joining mmap, the return and trap_myself? > > I would favor the second, although I would just join the mmap and storing > of the error value. I want to add the int3 too - that's the only way to be deterministically sure that GCC doesn't use %ebp after the unmap.
> The stack switching is at the heart of our recent > problems here, so some asm which hides that should be OK. I think the rest > is OK with the pseudo-C, right? Yes, mostly.... there is also the problem with hardened toolchains (two different reports), which makes inline syscalls bleach (hardened toolchains use PIE code and need to have %EBX reserved for GOT/PLT handling), but I currently I do not consider fixing it before I can reproduce it. -- Inform me of my mistakes, so I can keep imitating Homer Simpson's "Doh!". Paolo Giarrusso, aka Blaisorblade (Skype ID "PaoloGiarrusso", ICQ 215621894) http://www.user-mode-linux.org/~blaisorblade ___________________________________ Yahoo! Messenger: chiamate gratuite in tutto il mondo http://it.messenger.yahoo.com ------------------------------------------------------- This SF.net email is sponsored by: Splunk Inc. Do you grep through log files for problems? Stop! Download the new AJAX search engine that makes searching your log files as easy as surfing the web. DOWNLOAD SPLUNK! http://ads.osdn.com/?ad_id=7637&alloc_id=16865&op=click _______________________________________________ User-mode-linux-devel mailing list User-mode-linux-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/user-mode-linux-devel