Go to file
Ovidiu Panait cfac82c560 syzkaller: add recipe and selftest for syzkaller fuzzing
Syzkaller is a coverage-guided fuzzer that is widely used to find bugs in
the Linux kernel:
https://github.com/google/syzkaller

Add the recipe and a selftest for running the fuzzer in a qemux86-64
kvm environment. The following steps can be used to start the test:
"""
cat >> conf/local.conf <<EOF
SYZ_WORKDIR="<path>"
SYZ_FUZZTIME="30"
SYZ_QEMU_VM_COUNT="2"
SYZ_QEMU_MEM="2048"
SYZ_QEMU_CPUS="2"
EOF

oe-selftest -r syzkaller
...
loading corpus...
serving http on http://127.0.0.1:49605
serving rpc on tcp://[::]:46475
booting test machines...
wait for the connection from test machine...
vm-0: crash: KCSAN: data-race in poll_schedule_timeout.constprop.NUM / pollwake
vm-1: crash: KCSAN: data-race in mutex_spin_on_owner
machine check:
syscalls                : 2227/4223
code coverage           : enabled
comparison tracing      : enabled
extra coverage          : enabled
delay kcov mmap         : mmap returned an invalid pointer
setuid sandbox          : enabled
namespace sandbox       : enabled
Android sandbox         : /sys/fs/selinux/policy does not exist
fault injection         : enabled
leak checking           : enabled
net packet injection    : enabled
net device setup        : enabled
concurrency sanitizer   : enabled
devlink PCI setup       : PCI device 0000:00:10.0 is not available
USB emulation           : enabled
hci packet injection    : enabled
wifi device emulation   : enabled
802.15.4 emulation      : enabled
corpus                  : 0 (deleted 0 broken)
seeds                   : 0/0
VMs 2, executed 1, cover 0, signal 0/0, crashes 2, repro 0
vm-1: crash: KCSAN: data-race in mutex_spin_on_owner
"""

This will fuzz the yocto kernel for 30 minutes using 2 qemu VMs, each VM
getting 2048MB of memory and 2 CPUs.

The path in SYZ_WORKDIR must be an absolute path that is persistent across
oe-selftest runs, so that fuzzing does not start all over again on each
invocation. Syzkaller will save the corpus database in that directory and will
use the database to keep track of the interfaces already fuzzed.

After the test is done, <workdir>/crashes directory will contain the report
files for all the bugs found.

Signed-off-by: Ovidiu Panait <ovidiu.panait@windriver.com>
Signed-off-by: Khem Raj <raj.khem@gmail.com>
2022-10-21 09:57:59 -07:00
contrib pw-am.sh: update to new patcwork system 2022-02-28 08:39:26 -08:00
meta-filesystems xfstests: upgrade 2022.09.25 -> 2022.10.09 2022-10-18 08:23:44 -07:00
meta-gnome yelp: upgrade 42.1 -> 42.2 2022-10-18 08:23:44 -07:00
meta-initramfs kexec-tools-klibc: Fix type mismatch in calls to dtb_set_initrd on mips 2022-09-11 20:42:05 -07:00
meta-multimedia wireplumber: upgrade 0.4.11 -> 0.4.12 2022-10-15 18:24:49 -07:00
meta-networking postfix: Upgrade to 3.7.3 2022-10-19 10:33:43 -07:00
meta-oe syzkaller: add recipe and selftest for syzkaller fuzzing 2022-10-21 09:57:59 -07:00
meta-perl libnet-dns-perl: upgrade 1.34 -> 1.35 2022-10-09 20:06:54 -07:00
meta-python Add recipe for python3-pytest-json-report 2022-10-20 15:31:40 -07:00
meta-webserver cockpit: Update to 276 2022-09-07 16:44:54 -07:00
meta-xfce xfce4-settings: upgrade 4.16.2 -> 4.16.3 2022-10-18 11:48:35 -07:00
.gitignore .gitignore: add *.pyc and *.pyo 2019-06-15 16:45:33 -07:00
COPYING.MIT add README and license for this layer 2011-02-13 16:47:32 +01:00
README Update maintainers 2018-08-27 10:53:58 -07:00

Collection of layers for the OE-core universe

Main layer maintainer: Khem Raj raj.khem@gmail.com

This repository is a collection of layers to suppliment OE-Core with additional packages, Each layer have designated maintainer Please see the respective READMEs in the layer subdirectories