All of lore.kernel.org
 help / color / mirror / Atom feed
From: Stefan Weil <sw@weilnetz.de>
To: qemu-devel <qemu-devel@nongnu.org>
Subject: [Qemu-devel] [Bug] qemu-alpha broken on 32 bit hosts
Date: Sat, 14 Sep 2013 19:35:08 +0200	[thread overview]
Message-ID: <52349E4C.9030902@weilnetz.de> (raw)

All (?) syscalls fail to handle addresses larger than 32 bit correctly.
See "Bad address" in the strace ouput below.

Tested on arm and on i686 hosts with Debian's busybox-static.

$ alpha-linux-user/qemu-alpha -d unimp,guest_errors -strace
/usr/gnemul/qemu-alpha/bin/busybox ls -l block.c
host mmap_min_addr=0x1000
Reserved 0x21e000 bytes of guest address space
Relocating guest address space from 0x0000000020000000 to 0x20000000
guest_base  0x0
start    end      size     prot
0000000020000000-0000000020218000 0000000000218000 rwx
0000000040000000-0000000040002000 0000000000002000 ---
0000000040002000-0000000040802000 0000000000800000 rw-
0000000020216000-000000012021e000 0000000100008000 rwx
start_brk   0x0000000000000000
end_code    0x00000001202179bd
start_code  0x0000000120000000
start_data  0x0000000120000000
end_data    0x00000001202179bd
start_stack 0x0000000040801590
brk         0x000000012021dcb0
entry       0x00000001200d3fe0
15764 uname(0x408012d0) = 0
15764 brk(NULL) = 0x000000002021e000
15764 brk(0x000000002021ef8e) = 0x000000002021ef8e
15764 osf_getsysinfo(45,1082135520,1082136000,0,1082136475,4834034616) = 0
15764 osf_setsysinfo(14,1082135520,1082136000,0,1082136475,4834034616) = 0
15764 brk(0x0000000020240f8e) = 0x0000000020240f8e
15764 brk(0x0000000020242000) = 0x0000000020242000
15764
getxuid(1082136491,3399988123389603631,1082136000,0,1082136475,4834034616)
= 1000
15764 stat64(0x00000001201cea90,0x0000000040801290) = -1 errno=14 (Bad
address)
15764 getxgid(1082136529,1082135968,213,1,4832709268,4834034616) = 1000
15764 setgid(1000,1000,213,0,1000,4834034616) = 0
15764 setuid(1000,1000,213,0,1000,4834034616) = 0
15764 gettimeofday(1082135216,0,213,0,1000,4834034616) = 0
15764 ioctl(0,1074295912,1082135220,0,1000,4834034616) = 0
15764 lstat64("block.c",0x0000000040801220) = 0
15764 fstat64(1611596608,0x00000000408008c0) = 0
15764
mmap(NULL,1611596608,PROT_READ|PROT_WRITE,MAP_PRIVATE|MAP_ANONYMOUS,1611596608,0x600f0340)
= 0x0000000040802000
15764 open(0x00000001201cedfe,O_RDONLY) = -1 errno=14 (Bad address)
15764 open(0x00000001201cedf3,O_RDONLY) = -1 errno=14 (Bad address)
15764 open(0x00000001201e0edf,O_RDONLY) = -1 errno=14 (Bad address)
-rw-r--r--    1 1000     1000        128079 Sep 12 07:23 block.c
15764 write(1,0,1082138624) = 65
15764 exit_group(0)

             reply	other threads:[~2013-09-14 17:35 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-09-14 17:35 Stefan Weil [this message]
2013-09-15 10:34 ` [Qemu-devel] [Bug] qemu-alpha broken on 32 bit hosts Peter Maydell

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=52349E4C.9030902@weilnetz.de \
    --to=sw@weilnetz.de \
    --cc=qemu-devel@nongnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.