Skip to contentSkip to conversation

Another stub bug

uml-devel Jeff Dike 1 participant 1 message Oct 31, 2005 User-mode Linux (UML)

lore
Share & tools
lore

Jeff Dike

author
#0 lore raw

I just saw another case where the stubs are being badly assembled. This cases involves the address of from being referred relative to ebp. After the call to syscall6, ebp is trash because, even though we carefully push and pop it, we pop it from a brand new page.

This interaction between mmap and syscall6 suggests that this is the wrong interface. It looks more like we should have stub_remap_stack instead of stub_syscall6, and similar things for the others. Even so, it's not clear to me how to deal with this. We are out of registers, so we could possibly store ebp in esp, restore it after the mmap, and set esp to a fixed value.

Jeff

-------------------------------------------------------
This SF.Net email is sponsored by the JBoss Inc.
Get Certified Today * Register for a JBoss Training Course Free Certification Exam for All Training Attendees Through End of 2005 Visit http://www.jboss.com/services/certification for more information
_______________________________________________
User-mode-linux-devel mailing list [email protected]
https://lists.sourceforge.net/lists/listinfo/user-mode-linux-devel