aboutsummaryrefslogtreecommitdiffstats
path: root/pkg/instance/instance_test.go
Commit message (Collapse)AuthorAgeFilesLines
* pkg/instance: refactor ExecprogCmdAleksandr Nogikh2024-09-251-1/+14
| | | | Reduce the number of arguments by using a csource.Option value directly.
* tools/syz-execprog: pass the VM type to execprogLaura Peskin2024-09-241-2/+4
| | | | | | This makes it possible to skip certain machine checks depending on the VM type, as syz-manager already does.
* pkg/instance: use execprog to do basic instance testingDmitry Vyukov2024-05-271-65/+0
| | | | | | | | | | | When we accept new kernels for fuzzing we need more extensive testing, but syz-ci switched to using syz-manager for this purpose. Now instance testing is used only for bisection and patch testing, which does not need such extensive image testing (it may even harm). So just run a simple program as a testing. It also uses the same features as the target reproducer, so e.g. if the reproducer does not use wifi, we won't test it, which reduces changes of unrelated kernel bugs.
* pkg/csource, pkg/instance, pkg/ipc, pkg/mgrconfig, tools/syz-prog2c, ↵Andrey Artemiev2022-08-061-5/+5
| | | | syz-manager: introduce a new setting 'sandbox_arg' (#3263)
* pkg/instance: explicitly specify optional fuzzer argumentsAleksandr Nogikh2022-04-061-1/+1
| | | | | | | | Otherwise we get problems while testing patches for older syzkaller versions, which didn't support optional arguments. Adjust tests so that problems with how OldFuzzerCmd handles such arguments could be seen.
* syz-verifier: don't use -collide in the runner (#3032)Taras Madan2022-03-161-6/+1
|
* all: replace collide mode by `async` call propertyAleksandr Nogikh2021-12-101-4/+7
| | | | | | | | | | | | | Replace the currently existing straightforward approach to race triggering (that was almost entirely implemented inside syz-executor) with a more flexible one. The `async` call property instructs syz-executor not to block until the call has completed execution and proceed immediately to the next call. The decision on what calls to mark with `async` is made by syz-fuzzer. Ultimately this should let us implement more intelligent race provoking strategies as well as make more fine-grained reproducers.
* pkg/instance, syz-runner, syz-verifier: add option to create a new ↵Mara Mihali2021-07-191-1/+6
| | | | environment for each program
* pkg/instance: added threaded and collide flagsMara Mihali2021-07-061-1/+11
| | | | These can be used to disable threaded execution and collision mode for program's system calls.
* pkg/instance: add RunnerCmdMara Mihali2021-06-301-0/+35
| | | | This function creates the command for starting a runner with the provided command line arguments.
* all: make timeouts configurableDmitry Vyukov2020-12-281-3/+8
| | | | | | Add sys/targets.Timeouts struct that parametrizes timeouts throughout the system. The struct allows to control syscall/program/no output timeouts for OS/arch/VM/etc. See comment on the struct for more details.
* sys/targets: add OS/Arch name constsDmitry Vyukov2020-10-261-6/+9
| | | | | | | | | | | | We use strings to identify OS/Arch. These strings are duplicated throughout the code base massively. golangci-lint points to possiblity of typos and duplication. We already had to define these names in pkg/csource and disable checking for prog package. A future change triggers such warnings in another package. Add OS/Arch name consts to sys/targets so that they can be used to refer to OS/Arch. Use the consts everywhere.
* all: convert Fuchsia to use "host fuzzing" modeMatthew Dempsky2019-08-271-1/+1
| | | | | | | | | Go support is not a priority for Fuchsia at the moment, so it's preferable to use host fuzzing mode for Fuchsia like currently done for Akaros. This commit basically looks for all the places where there was special logic for OS=="akaros" and extends the same logic for OS=="fuchsia".
* pkg/log: rename -v to -vvDmitry Vyukov2019-07-161-4/+4
| | | | | To avoid conflicts with programs that import both syzkaller packages and github.com/golang/glog which also defines -v flag.
* pkg/instance: fix gometalinter warningsDmitry Vyukov2018-08-291-8/+9
|
* pkg/instance: fix job testingDmitry Vyukov2018-08-291-0/+134
New FuzzerCmd generates flags that can't be parsed by an old fuzzer. Fix that and add a test.