i am trying grugq's userland exec() [1]
but is unable to run with my simple static linked hello world program
[2]
because of the random stack start address,I tried added the following
three lines in the
save.c:ul_setup_stack():
stack_top = mmap(0,0x16000, PROT_WRITE |PROT_READ,
MAP_PRIVATE|MAP_ANONYMOUS|MAP_GROWSDOWN,-1,0);// test
stack_top +=0x16000;
the program still segmentation fault at memcpy: 0x804d95f: rep
movsl %ds:(%esi),%es:(%edi)
Does anyone have ideas about it?
Kind Regards,
arcbbb
[1] http://www.phrack.org/issues.html?issue=62&id=8
[2] my simple hello world compiled with gcc -g -static
#include <unistd.h>
#define hello "Hello World!\n"
int
main(void)
{
write(1, hello, 13);
return (0);
}
--
| David Miller | [GIT]: Networking |
| Linus Torvalds | Linux 2.6.26-rc4 |
| Fred . | Please add ZFS support (from GPL sources) |
| Greg KH | Linux 2.6.25.10 |
git: | |
| Alexander Gladysh | [Q] Encrypted GIT? |
| Kevin Leung | Edit log message after commit |
| Pietro Mascagni | GIT vs Other: Need argument |
| Michael Hendricks | removing content from git history |
| GVG GVG | ssh_exchange_identification: Connection closed by remote host |
| Edwin Eyan Moragas | poll(2) vs kqueue(2) performance |
| Didier Wiroth | win32-codecs, avi and amd64 question |
| Daniel Ouellet | identifying sparse files and get ride of them trick available? |
| Daniel Brewer | Re: fsync performance hit on 1.6.1 |
| Hubert Feyrer | Compressed vnd handling tested successfully |
| Elad Efrat | Integrating securelevel and kauth(9) |
| YAMAMOTO Takashi | yamt-km branch |
