Skip to content

Commit fa2b9c4

Browse files
Merge branch 'master' of github.com:AFLplusplus/qemu-libafl-bridge
2 parents 4e5821f + 652155b commit fa2b9c4

File tree

441 files changed

+13513
-7132
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

441 files changed

+13513
-7132
lines changed

.gitlab-ci.d/buildtest.yml

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -100,6 +100,17 @@ avocado-system-debian:
100100
IMAGE: debian-amd64
101101
MAKE_CHECK_ARGS: check-avocado
102102

103+
crash-test-debian:
104+
extends: .native_test_job_template
105+
needs:
106+
- job: build-system-debian
107+
artifacts: true
108+
variables:
109+
IMAGE: debian-amd64
110+
script:
111+
- cd build
112+
- scripts/device-crash-test -q ./qemu-system-i386
113+
103114
build-system-fedora:
104115
extends: .native_build_job_template
105116
needs:
@@ -134,6 +145,18 @@ avocado-system-fedora:
134145
IMAGE: fedora
135146
MAKE_CHECK_ARGS: check-avocado
136147

148+
crash-test-fedora:
149+
extends: .native_test_job_template
150+
needs:
151+
- job: build-system-fedora
152+
artifacts: true
153+
variables:
154+
IMAGE: fedora
155+
script:
156+
- cd build
157+
- scripts/device-crash-test -q ./qemu-system-ppc
158+
- scripts/device-crash-test -q ./qemu-system-riscv32
159+
137160
build-system-centos:
138161
extends: .native_build_job_template
139162
needs:

.gitlab-ci.d/cirrus.yml

Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -89,3 +89,38 @@ x64-macos-11-base-build:
8989
PATH_EXTRA: /usr/local/opt/ccache/libexec:/usr/local/opt/gettext/bin
9090
PKG_CONFIG_PATH: /usr/local/opt/curl/lib/pkgconfig:/usr/local/opt/ncurses/lib/pkgconfig:/usr/local/opt/readline/lib/pkgconfig
9191
TEST_TARGETS: check-unit check-block check-qapi-schema check-softfloat check-qtest-x86_64
92+
93+
94+
# The following jobs run VM-based tests via KVM on a Linux-based Cirrus-CI job
95+
.cirrus_kvm_job:
96+
stage: build
97+
image: registry.gitlab.com/libvirt/libvirt-ci/cirrus-run:master
98+
needs: []
99+
timeout: 80m
100+
allow_failure: true
101+
script:
102+
- sed -e "s|[@]CI_REPOSITORY_URL@|$CI_REPOSITORY_URL|g"
103+
-e "s|[@]CI_COMMIT_REF_NAME@|$CI_COMMIT_REF_NAME|g"
104+
-e "s|[@]CI_COMMIT_SHA@|$CI_COMMIT_SHA|g"
105+
-e "s|[@]NAME@|$NAME|g"
106+
-e "s|[@]CONFIGURE_ARGS@|$CONFIGURE_ARGS|g"
107+
-e "s|[@]TEST_TARGETS@|$TEST_TARGETS|g"
108+
<.gitlab-ci.d/cirrus/kvm-build.yml >.gitlab-ci.d/cirrus/$NAME.yml
109+
- cat .gitlab-ci.d/cirrus/$NAME.yml
110+
- cirrus-run -v --show-build-log always .gitlab-ci.d/cirrus/$NAME.yml
111+
rules:
112+
- when: manual
113+
114+
x86-netbsd:
115+
extends: .cirrus_kvm_job
116+
variables:
117+
NAME: netbsd
118+
CONFIGURE_ARGS: --target-list=x86_64-softmmu,ppc64-softmmu,aarch64-softmmu
119+
TEST_TARGETS: check
120+
121+
x86-openbsd:
122+
extends: .cirrus_kvm_job
123+
variables:
124+
NAME: openbsd
125+
CONFIGURE_ARGS: --target-list=i386-softmmu,riscv64-softmmu,mips64-softmmu
126+
TEST_TARGETS: check

.gitlab-ci.d/cirrus/kvm-build.yml

Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
container:
2+
image: fedora:35
3+
cpu: 4
4+
memory: 8Gb
5+
kvm: true
6+
7+
env:
8+
CIRRUS_CLONE_DEPTH: 1
9+
CI_REPOSITORY_URL: "@CI_REPOSITORY_URL@"
10+
CI_COMMIT_REF_NAME: "@CI_COMMIT_REF_NAME@"
11+
CI_COMMIT_SHA: "@CI_COMMIT_SHA@"
12+
13+
@NAME@_task:
14+
@NAME@_vm_cache:
15+
folder: $HOME/.cache/qemu-vm
16+
install_script:
17+
- dnf update -y
18+
- dnf install -y git make openssh-clients qemu-img qemu-system-x86 wget
19+
clone_script:
20+
- git clone --depth 100 "$CI_REPOSITORY_URL" .
21+
- git fetch origin "$CI_COMMIT_REF_NAME"
22+
- git reset --hard "$CI_COMMIT_SHA"
23+
build_script:
24+
- if [ -f $HOME/.cache/qemu-vm/images/@[email protected] ]; then
25+
make vm-build-@NAME@ J=$(getconf _NPROCESSORS_ONLN)
26+
EXTRA_CONFIGURE_OPTS="@CONFIGURE_ARGS@"
27+
BUILD_TARGET="@TEST_TARGETS@" ;
28+
else
29+
make vm-build-@NAME@ J=$(getconf _NPROCESSORS_ONLN) BUILD_TARGET=help
30+
EXTRA_CONFIGURE_OPTS="--disable-system --disable-user --disable-tools" ;
31+
fi

.gitlab-ci.d/qemu-project.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,3 +11,4 @@ include:
1111
- local: '/.gitlab-ci.d/static_checks.yml'
1212
- local: '/.gitlab-ci.d/custom-runners.yml'
1313
- local: '/.gitlab-ci.d/cirrus.yml'
14+
- local: '/.gitlab-ci.d/windows.yml'

.gitlab-ci.d/windows.yml

Lines changed: 98 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,98 @@
1+
.shared_msys2_builder:
2+
tags:
3+
- shared-windows
4+
- windows
5+
- windows-1809
6+
cache:
7+
key: "${CI_JOB_NAME}-cache"
8+
paths:
9+
- ${CI_PROJECT_DIR}/msys64/var/cache
10+
needs: []
11+
stage: build
12+
timeout: 70m
13+
before_script:
14+
- If ( !(Test-Path -Path msys64\var\cache ) ) {
15+
mkdir msys64\var\cache
16+
}
17+
- If ( !(Test-Path -Path msys64\var\cache\msys2.exe ) ) {
18+
Invoke-WebRequest
19+
"https://github.com/msys2/msys2-installer/releases/download/2021-07-25/msys2-base-x86_64-20210725.sfx.exe"
20+
-outfile "msys64\var\cache\msys2.exe"
21+
}
22+
- msys64\var\cache\msys2.exe -y
23+
- ((Get-Content -path .\msys64\etc\\post-install\\07-pacman-key.post -Raw)
24+
-replace '--refresh-keys', '--version') |
25+
Set-Content -Path ${CI_PROJECT_DIR}\msys64\etc\\post-install\\07-pacman-key.post
26+
- .\msys64\usr\bin\bash -lc "sed -i 's/^CheckSpace/#CheckSpace/g' /etc/pacman.conf"
27+
- .\msys64\usr\bin\bash -lc 'pacman --noconfirm -Syuu' # Core update
28+
- .\msys64\usr\bin\bash -lc 'pacman --noconfirm -Syuu' # Normal update
29+
- taskkill /F /FI "MODULES eq msys-2.0.dll"
30+
31+
msys2-64bit:
32+
extends: .shared_msys2_builder
33+
script:
34+
- .\msys64\usr\bin\bash -lc "pacman -Sy --noconfirm --needed
35+
diffutils git grep make sed
36+
mingw-w64-x86_64-capstone
37+
mingw-w64-x86_64-curl
38+
mingw-w64-x86_64-cyrus-sasl
39+
mingw-w64-x86_64-gcc
40+
mingw-w64-x86_64-glib2
41+
mingw-w64-x86_64-gnutls
42+
mingw-w64-x86_64-libnfs
43+
mingw-w64-x86_64-libpng
44+
mingw-w64-x86_64-libssh
45+
mingw-w64-x86_64-libtasn1
46+
mingw-w64-x86_64-libusb
47+
mingw-w64-x86_64-libxml2
48+
mingw-w64-x86_64-nettle
49+
mingw-w64-x86_64-ninja
50+
mingw-w64-x86_64-pixman
51+
mingw-w64-x86_64-pkgconf
52+
mingw-w64-x86_64-python
53+
mingw-w64-x86_64-SDL2
54+
mingw-w64-x86_64-SDL2_image
55+
mingw-w64-x86_64-snappy
56+
mingw-w64-x86_64-usbredir
57+
mingw-w64-x86_64-zstd "
58+
- $env:CHERE_INVOKING = 'yes' # Preserve the current working directory
59+
- $env:MSYSTEM = 'MINGW64' # Start a 64 bit Mingw environment
60+
- .\msys64\usr\bin\bash -lc './configure --target-list=x86_64-softmmu
61+
--enable-capstone=system --without-default-devices'
62+
- .\msys64\usr\bin\bash -lc "sed -i '/^ROMS=/d' build/config-host.mak"
63+
- .\msys64\usr\bin\bash -lc 'make -j2'
64+
- .\msys64\usr\bin\bash -lc 'make check'
65+
66+
msys2-32bit:
67+
extends: .shared_msys2_builder
68+
script:
69+
- .\msys64\usr\bin\bash -lc "pacman -Sy --noconfirm --needed
70+
diffutils git grep make sed
71+
mingw-w64-i686-capstone
72+
mingw-w64-i686-curl
73+
mingw-w64-i686-cyrus-sasl
74+
mingw-w64-i686-gcc
75+
mingw-w64-i686-glib2
76+
mingw-w64-i686-gnutls
77+
mingw-w64-i686-gtk3
78+
mingw-w64-i686-libgcrypt
79+
mingw-w64-i686-libjpeg-turbo
80+
mingw-w64-i686-libssh
81+
mingw-w64-i686-libtasn1
82+
mingw-w64-i686-libusb
83+
mingw-w64-i686-libxml2
84+
mingw-w64-i686-lzo2
85+
mingw-w64-i686-ninja
86+
mingw-w64-i686-pixman
87+
mingw-w64-i686-pkgconf
88+
mingw-w64-i686-python
89+
mingw-w64-i686-snappy
90+
mingw-w64-i686-usbredir "
91+
- $env:CHERE_INVOKING = 'yes' # Preserve the current working directory
92+
- $env:MSYSTEM = 'MINGW32' # Start a 32-bit MinG environment
93+
- mkdir output
94+
- cd output
95+
- ..\msys64\usr\bin\bash -lc "../configure --target-list=ppc64-softmmu
96+
--enable-capstone=system"
97+
- ..\msys64\usr\bin\bash -lc 'make -j2'
98+
- ..\msys64\usr\bin\bash -lc 'make check'

.mailmap

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -50,6 +50,7 @@ Aleksandar Rikalo <[email protected]> <[email protected]>
5050
5151
5252
Anthony Liguori <[email protected]> Anthony Liguori <[email protected]>
53+
Christian Borntraeger <[email protected]> <[email protected]>
5354
5455
5556

MAINTAINERS

Lines changed: 20 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -324,7 +324,7 @@ F: disas/sparc.c
324324
X86 TCG CPUs
325325
M: Paolo Bonzini <[email protected]>
326326
M: Richard Henderson <[email protected]>
327-
M: Eduardo Habkost <[email protected]>
327+
M: Eduardo Habkost <[email protected]>
328328
S: Maintained
329329
F: target/i386/tcg/
330330
F: tests/tcg/i386/
@@ -393,7 +393,7 @@ F: target/ppc/kvm.c
393393

394394
S390 KVM CPUs
395395
M: Halil Pasic <[email protected]>
396-
M: Christian Borntraeger <borntraeger@de.ibm.com>
396+
M: Christian Borntraeger <borntraeger@linux.ibm.com>
397397
S: Supported
398398
F: target/s390x/kvm/
399399
F: target/s390x/ioinst.[ch]
@@ -1527,7 +1527,7 @@ S390 Machines
15271527
-------------
15281528
S390 Virtio-ccw
15291529
M: Halil Pasic <[email protected]>
1530-
M: Christian Borntraeger <borntraeger@de.ibm.com>
1530+
M: Christian Borntraeger <borntraeger@linux.ibm.com>
15311531
S: Supported
15321532
F: hw/char/sclp*.[hc]
15331533
F: hw/char/terminal3270.c
@@ -1541,7 +1541,7 @@ T: git https://github.com/borntraeger/qemu.git s390-next
15411541
15421542

15431543
S390-ccw boot
1544-
M: Christian Borntraeger <borntraeger@de.ibm.com>
1544+
M: Christian Borntraeger <borntraeger@linux.ibm.com>
15451545
M: Thomas Huth <[email protected]>
15461546
S: Supported
15471547
F: hw/s390x/ipl.*
@@ -1628,7 +1628,7 @@ F: include/hw/i386/microvm.h
16281628
F: pc-bios/bios-microvm.bin
16291629

16301630
Machine core
1631-
M: Eduardo Habkost <[email protected]>
1631+
M: Eduardo Habkost <[email protected]>
16321632
M: Marcel Apfelbaum <[email protected]>
16331633
R: Philippe Mathieu-Daudé <[email protected]>
16341634
S: Supported
@@ -1825,6 +1825,7 @@ F: hw/scsi/*
18251825
F: tests/qtest/virtio-scsi-test.c
18261826
F: tests/qtest/fuzz-virtio-scsi-test.c
18271827
F: tests/qtest/am53c974-test.c
1828+
F: tests/qtest/fuzz-lsi53c895a-test.c
18281829
T: git https://github.com/bonzini/qemu.git scsi-next
18291830

18301831
SSI
@@ -2648,13 +2649,13 @@ F: backends/cryptodev*.c
26482649
Python library
26492650
M: John Snow <[email protected]>
26502651
M: Cleber Rosa <[email protected]>
2651-
R: Eduardo Habkost <[email protected]>
2652+
R: Eduardo Habkost <[email protected]>
26522653
S: Maintained
26532654
F: python/
26542655
T: git https://gitlab.com/jsnow/qemu.git python
26552656

26562657
Python scripts
2657-
M: Eduardo Habkost <[email protected]>
2658+
M: Eduardo Habkost <[email protected]>
26582659
M: Cleber Rosa <[email protected]>
26592660
S: Odd Fixes
26602661
F: scripts/*.py
@@ -2730,7 +2731,7 @@ T: git https://github.com/mdroth/qemu.git qga
27302731
QOM
27312732
M: Paolo Bonzini <[email protected]>
27322733
R: Daniel P. Berrange <[email protected]>
2733-
R: Eduardo Habkost <[email protected]>
2734+
R: Eduardo Habkost <[email protected]>
27342735
S: Supported
27352736
F: docs/qdev-device-use.txt
27362737
F: hw/core/qdev*
@@ -2750,7 +2751,7 @@ F: tests/unit/check-qom-proplist.c
27502751
F: tests/unit/test-qdev-global-props.c
27512752

27522753
QOM boilerplate conversion script
2753-
M: Eduardo Habkost <[email protected]>
2754+
M: Eduardo Habkost <[email protected]>
27542755
S: Maintained
27552756
F: scripts/codeconverter/
27562757

@@ -3076,8 +3077,9 @@ Usermode Emulation
30763077
Overall usermode emulation
30773078
M: Riku Voipio <[email protected]>
30783079
S: Maintained
3079-
F: thunk.c
30803080
F: accel/tcg/user-exec*.c
3081+
F: include/user/
3082+
F: common-user/
30813083

30823084
BSD user
30833085
M: Warner Losh <[email protected]>
@@ -3469,7 +3471,7 @@ M: Alex Bennée <[email protected]>
34693471
M: Philippe Mathieu-Daudé <[email protected]>
34703472
M: Thomas Huth <[email protected]>
34713473
R: Wainer dos Santos Moschetta <[email protected]>
3472-
R: Willian Rampazzo <willianr@redhat.com>
3474+
R: Beraldo Leal <bleal@redhat.com>
34733475
S: Maintained
34743476
F: .github/lockdown.yml
34753477
F: .gitlab-ci.yml
@@ -3507,10 +3509,16 @@ W: https://trello.com/b/6Qi1pxVn/avocado-qemu
35073509
R: Cleber Rosa <[email protected]>
35083510
R: Philippe Mathieu-Daudé <[email protected]>
35093511
R: Wainer dos Santos Moschetta <[email protected]>
3510-
R: Willian Rampazzo <willianr@redhat.com>
3512+
R: Beraldo Leal <bleal@redhat.com>
35113513
S: Odd Fixes
35123514
F: tests/avocado/
35133515

3516+
GitLab custom runner (Works On Arm Sponsored)
3517+
M: Alex Bennée <[email protected]>
3518+
M: Philippe Mathieu-Daudé <[email protected]>
3519+
S: Maintained
3520+
F: .gitlab-ci.d/custom-runners/ubuntu-20.04-aarch64.yml
3521+
35143522
Documentation
35153523
-------------
35163524
Build system architecture

VERSION

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
6.2.91
1+
6.2.50

0 commit comments

Comments
 (0)