Skip to contentSkip to conversation

Qemu user space on linux

Qemu-devel Toni 2 participants 2 messages Aug 26, 2009

lore
Share & tools
lore

Toni

author
#0 lore raw

I found that in qemu user space on linux (qemu-i386), if you execute an executable that contains an "execve" this is execute into qemu-i386 replacing it. See "linux-user/syscall.c" around line 4360. How it is possible to fix this bug?

Antonio

#1 lore raw
Quoted 6 lines · Toni

I found that in qemu user space on linux (qemu-i386), if you execute an executable that contains an "execve" this is execute into qemu-i386 replacing it.
See "linux-user/syscall.c" around line 4360. How it is possible to fix this bug?
Antonio

Could you precisely tell what you see? I did this in qemu linux user for i386 (version 0.10.5):

$  /usr/local/qemu/bin/qemu-i386 -strace ./myexecve /bin/ls

4 last lines showed:
20693 execve("/bin/ls",{"/bin/ls","-l","-s",NULL})total 16 8 -rwxrwxr-x 1 mulyadi mulyadi 5320 Aug 26 14:41 myexecve 4 -rw-rw-r-- 1 mulyadi mulyadi 428 Aug 26 14:41 myexecve.c 4 -rw-rw-r-- 1 mulyadi mulyadi 622 Aug 26 14:39 myexecve.c~

As you can see, it is executing /bin/ls, not qemu-i386.

Signature · 5 lines
regards,

Mulyadi Santosa
Freelance Linux trainer
blog: the-hydra.blogspot.com