* [Qemu-devel] Qemu user space on linux
@ 2009-08-26 0:50 Toni
2009-08-26 7:54 ` Mulyadi Santosa
0 siblings, 1 reply; 2+ messages in thread
From: Toni @ 2009-08-26 0:50 UTC (permalink / raw)
To: qemu-devel
[-- Attachment #1: Type: text/plain, Size: 244 bytes --]
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
[-- Attachment #2: Type: text/html, Size: 302 bytes --]
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: [Qemu-devel] Qemu user space on linux
2009-08-26 0:50 [Qemu-devel] Qemu user space on linux Toni
@ 2009-08-26 7:54 ` Mulyadi Santosa
0 siblings, 0 replies; 2+ messages in thread
From: Mulyadi Santosa @ 2009-08-26 7:54 UTC (permalink / raw)
To: Toni; +Cc: qemu-devel
On Wed, Aug 26, 2009 at 7:50 AM, Toni<tonygio04@gmail.com> wrote:
> 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.
--
regards,
Mulyadi Santosa
Freelance Linux trainer
blog: the-hydra.blogspot.com
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2009-08-26 7:55 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-08-26 0:50 [Qemu-devel] Qemu user space on linux Toni
2009-08-26 7:54 ` Mulyadi Santosa
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).