qemu-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Qemu-devel] [REGRESSION] mprotect in guest makes qemu-i386 crash


From: Jan Kiszka
Subject: [Qemu-devel] [REGRESSION] mprotect in guest makes qemu-i386 crash
Date: Thu, 03 Jul 2008 17:13:53 +0200
User-agent: Mozilla/5.0 (X11; U; Linux i686 (x86_64); de; rv:1.8.1.12) Gecko/20080226 SUSE/2.0.0.12-1.1 Thunderbird/2.0.0.12 Mnenhy/0.7.5.666

Hi,

this fragment from a code self-modification test of mine used to work a
few weeks ago with qemu-i386 userspace emulation. Now it causes a segfault.

#include <sys/mman.h>
main()
{
        mprotect((void *)((unsigned long)main & ~0xfff), 0x1000,
                 PROT_READ|PROT_WRITE|PROT_EXEC);
}

qemu-x86_64 even complains about an "Unsupported syscall: 221", while
the same 64-bit binary works fine with 0.9.1 (I don't recall anymore if
it worked recently with SVN head).

Anyone some idea? Known issue?

Jan

-- 
Siemens AG, Corporate Technology, CT SE 2
Corporate Competence Center Embedded Linux




reply via email to

[Prev in Thread] Current Thread [Next in Thread]