All of lore.kernel.org
 help / color / mirror / Atom feed
From: Launchpad Bug Tracker <1761153@bugs.launchpad.net>
To: qemu-devel@nongnu.org
Subject: [Bug 1761153] Re: qemu-user incorrect mmap for large files on 64bits host and 32bits executable.
Date: Sun, 10 Jan 2021 04:17:33 -0000	[thread overview]
Message-ID: <161025225373.18863.12111676248942722411.malone@loganberry.canonical.com> (raw)
In-Reply-To: 152284551397.28710.6742910020765706357.malonedeb@chaenomeles.canonical.com

[Expired for QEMU because there has been no activity for 60 days.]

** Changed in: qemu
       Status: Incomplete => Expired

-- 
You received this bug notification because you are a member of qemu-
devel-ml, which is subscribed to QEMU.
https://bugs.launchpad.net/bugs/1761153

Title:
  qemu-user incorrect mmap for large files on 64bits host and 32bits
  executable.

Status in QEMU:
  Expired

Bug description:
  qemu-user seems to incorrectly mmap a file if the offset is > 4GiB and
  guest binary is 32 bits elf.

  See attached test program `test_mmap.c`.

  ```
  $ gcc -g -m32 -march=i386 test_mmap.c -o test_mmap
  $ file test_mmap
  test_mmap: ELF 32-bit LSB executable, Intel 80386, version 1 (SYSV), dynamically linked, interpreter /lib/ld-linux.so.2, for GNU/Linux 3.2.0, BuildID[sha1]=e36db05f4dfd8a9cfde8a969214a242c1f5a4b49, with debug_info, not stripped
  $ uname -a
  Linux localhost.localdomain 4.15.10-300.fc27.x86_64 #1 SMP Thu Mar 15 17:13:04 UTC 2018 x86_64 x86_64 x86_64 GNU/Linux
  $ qemu-i386 --version
  qemu-i386 version 2.10.1(qemu-2.10.1-2.fc27)
  Copyright (c) 2003-2017 Fabrice Bellard and the QEMU Project developers
  $ ./test_mmap
  $ qemu-i386 test_mmap
  Incorrect data 1
  ```

  Tested with qemu-i386 packaged in Fedora 27 and qemu-i386 compiled
  from git master (094b62cd9c)

  The issue was firstly detected on (more complex program) using qemu-
  arm (with 32bits binary) so it is probably a 32/64bits problem
  independently of the cpu family.

To manage notifications about this bug go to:
https://bugs.launchpad.net/qemu/+bug/1761153/+subscriptions


      parent reply	other threads:[~2021-01-10  4:27 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2018-04-04 12:38 [Qemu-devel] [Bug 1761153] [NEW] qemu-user incorrect mmap for large files on 64bits host and 32bits executable Matthieu Gautier
2020-11-10 15:42 ` [Bug 1761153] " Thomas Huth
2021-01-10  4:17 ` Launchpad Bug Tracker [this message]

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=161025225373.18863.12111676248942722411.malone@loganberry.canonical.com \
    --to=1761153@bugs.launchpad.net \
    --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.