summary refs log tree commit diff stats
path: root/results/classifier/118/files/1761153
blob: 62d97fac07bdfdadc3451d5dfff50a066d184ba2 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
x86: 0.963
i386: 0.958
files: 0.949
user-level: 0.933
graphic: 0.912
debug: 0.904
architecture: 0.902
network: 0.830
arm: 0.825
performance: 0.816
mistranslation: 0.783
semantic: 0.783
device: 0.740
kernel: 0.718
PID: 0.716
register: 0.681
ppc: 0.663
VMM: 0.649
hypervisor: 0.647
permissions: 0.641
TCG: 0.633
vnc: 0.609
risc-v: 0.594
peripherals: 0.577
socket: 0.567
virtual: 0.537
boot: 0.517
KVM: 0.503
assembly: 0.473

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

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.



The QEMU project is currently considering to move its bug tracking to another system. For this we need to know which bugs are still valid and which could be closed already. Thus we are setting older bugs to "Incomplete" now.
If you still think this bug report here is valid, then please switch the state back to "New" within the next 60 days, otherwise this report will be marked as "Expired". Or mark it as "Fix Released" if the problem has been solved with a newer version of QEMU already. Thank you and sorry for the inconvenience.


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