summaryrefslogtreecommitdiffstats
path: root/meta-oe/recipes-test/syzkaller
Commit message (Collapse)AuthorAgeFilesLines
* syzkaller: Fix appends overriding valuesMichal Sieron2026-04-011-2/+2
| | | | | | | | Those LIC_FILES_CHKSUM:class-native(sdk) were actually overriding the rest of LIC_FILES_CHKSUM. Signed-off-by: Michal Sieron <michalwsieron@gmail.com> Signed-off-by: Khem Raj <khem.raj@oss.qualcomm.com>
* syzkaller: Drop qemu-system-native dependencyMichal Sieron2026-04-011-4/+0
| | | | | | | | | Either I am missing something or it isn't needed in the build time and should maybe be a RRECOMMENDS:${PN}? Signed-off-by: Michal Sieron <michalwsieron@gmail.com> Cc: Stefan Wiehler <me@sephalon.net> Signed-off-by: Khem Raj <khem.raj@oss.qualcomm.com>
* syzkaller: Add nativesdkStefan Wiehler2025-08-142-4/+23
| | | | | Signed-off-by: Stefan Wiehler <me@sephalon.net> Signed-off-by: Khem Raj <raj.khem@gmail.com>
* syzkaller: Upgrade to latest tip of trunkStefan Wiehler2025-08-146-146/+180
| | | | | | | | | | | | | | | | | | - All patches have been upstreamed - Add Go module dependencies to allow offline builds since upstream does not vendor them into the repo anymore - In accordance to upstream, disable cgo as we are unable to compile with it on all supported architectures; in addition, remove -linkshared and -buildmode=pie as it requires external (cgo) linking (the latter only on ARM and x86). Binary size hardly matters here as syzkaller is unlikely to be shipped in a production environment. - Add missing metadata and comply with style guide - Mark musl as incompatible as it does not provide the Memory Protection Keys API; in addition, there seems to be no intention from upstream to support anything besides glibc Signed-off-by: Stefan Wiehler <me@sephalon.net> Signed-off-by: Khem Raj <raj.khem@gmail.com>
* recipes: Fix variable assignment whitespaceRichard Purdie2025-03-201-2/+2
| | | | | Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org> Signed-off-by: Khem Raj <raj.khem@gmail.com>
* syzkaller: network in compile is not neededRoss Burton2024-12-101-4/+0
| | | | | | | | There appears to be no more network access in the compile task, so we can remove the flag. Signed-off-by: Ross Burton <ross.burton@arm.com> Signed-off-by: Khem Raj <raj.khem@gmail.com>
* syzkaller: Add UPSTREAM_CHECK_COMMITSYoann Congal2024-08-091-0/+3
| | | | | | | | | Upstream repo does not tag so, use UPSTREAM_CHECK_COMMITS to detect upstream updates. Signed-off-by: Yoann Congal <yoann.congal@smile.fr> Reviewed-by: Alexandre Truong <alexandre.truong@smile.fr> Signed-off-by: Khem Raj <raj.khem@gmail.com>
* syzkaller: Fix build with musl + gcc14Khem Raj2024-05-232-0/+30
| | | | Signed-off-by: Khem Raj <raj.khem@gmail.com>
* syzkaller: Fix build with go 1.21Khem Raj2024-03-031-2/+10
| | | | | | | | - export GOPROXY - Fix clang-18 found errors by not forcing C++ compiler for CC but just passing c++ std library to link with Signed-off-by: Khem Raj <raj.khem@gmail.com>
* syzkaller: Upgrade to latest tip of trunkKhem Raj2023-06-193-11/+44
| | | | | | | - Enable cgo with this version - Fix build with musl Signed-off-by: Khem Raj <raj.khem@gmail.com>
* syzkaller: add recipe and selftest for syzkaller fuzzingOvidiu Panait2022-10-212-0/+140
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>