aboutsummaryrefslogtreecommitdiffstats
path: root/pkg/host/host_test.go
Commit message (Collapse)AuthorAgeFilesLines
* pkg/vminfo: move feature checking to hostDmitry Vyukov2024-05-151-70/+0
| | | | | | | | | | | | | | | | | Feature checking procedure is split into 2 phases: 1. syz-fuzzer invokes "syz-executor setup feature" for each feature one-by-one, and checks if executor does not fail. Executor can also return a special "this feature does not need custom setup", this allows to not call setup of these features in each new VM. 2. pkg/vminfo runs a simple program with ipc.ExecOpts specific for a concrete feature, e.g. for wifi injection it will try to run a program with wifi feature enabled, if setup of the feature fails, executor should also exit with an error. For coverage features we also additionally check that we actually got coverage. Then pkg/vminfo combines results of these 2 checks into final result. syz-execprog now also uses vminfo package and mimics the same checking procedure. Update #1541
* pkg/host: disable TestDetectSupportedSyscalls/fallback under race detectorDmitry Vyukov2024-05-081-0/+4
| | | | | For some reason it started to consistently timeout on CI (got 3 failures in a row). Disable it under race detector.
* pkg/host: only try enabled syscalls when starting syz-fuzzerKris Alder2022-03-081-1/+5
| | | | | | | | | | | When syz-fuzzer starts, it tries all syscalls to filter out any that are not supported. This process should include only the syscalls that are enabled using the 'enable_syscalls' and 'disable_syscalls' fields in syz-manager's config. This is useful for fuzzing Cuttlefish devices, for example, where the 'vhost_vsock' syscall needs to be excluded from fuzzing and from this test.
* pkg/host: add Features.SupportedDmitry Vyukov2019-11-161-1/+1
| | | | To reduce diff in future changes. Currently no-op.
* pkg/host: move kallsyms parsing test to host_linux_test.goAndrey Konovalov2019-04-051-77/+0
|
* pkg/host: enable kallsyms parsing on armCody Holliday2019-04-051-0/+13
| | | | pkg/host/host_linux.go: Add "arm" to kallsyms support test. pkg/host/host_test.go: TestKallsymsParse(): Add entry to test arm kallsyms parsing support.
* host: add kallsyms parsing testsAndrey Konovalov2019-04-041-0/+64
| | | | Start with a few simple tests that can be extended when needed.
* pkg/host: disable for akarosDmitry Vyukov2018-07-061-1/+5
| | | | | | akaros can't have own host version because fuzzer does not run on akaros, so just disable it all.
* pkg/host: fix race in testDmitry Vyukov2018-06-191-1/+1
|
* pkg/host: support trial supported syscall detectionDmitry Vyukov2018-06-181-22/+30
| | | | | Detect supported syscall by directly executing them if kallsyms is not present. This is required for gvisor testing.
* pkg/host: rework host feature detection/setupDmitry Vyukov2018-06-121-1/+12
| | | | | | | | | | Currently host feature detection/setup code is spread across platform-independent fuzzer code, pkg/host, pkg/ipc and executor. Move this all into pkg/host and show readable info about features on manager start. Fixes #46
* pkg/prog: explain why syscalls are transitively disabledDmitry Vyukov2018-04-061-9/+3
|
* pkg/host: explain why syscalls are disabledDmitry Vyukov2018-04-061-0/+45
|
* pkg/host: add fuchsia supportDmitry Vyukov2017-09-201-84/+0
|
* prog: remove default target and all global stateDmitry Vyukov2017-09-151-10/+14
| | | | | | Now each prog function accepts the desired target explicitly. No global, implicit state involved. This is much cleaner and allows cross-OS/arch testing, etc.
* syz-manager/mgrconfig: explicitly specify target in configDmitry Vyukov2017-09-151-0/+5
| | | | | Add target config parameter (e.g. linux/amd64) which controls target OS/arch. No more explicit assumptions about target.
* prog, sys: move types to progDmitry Vyukov2017-09-051-5/+6
| | | | | | | | | | | Large overhaul moves syscalls and arg types from sys to prog. Sys package now depends on prog and contains only generated descriptions of syscalls. Introduce prog.Target type that encapsulates all targer properties, like syscall list, ptr/page size, etc. Also moves OS-dependent pieces like mmap call generation from prog to sys. Update #191
* sys: rename Call to SyscallDmitry Vyukov2017-09-051-3/+3
| | | | | In preparation for moving sys types to prog to avoid confusion between sys.Call and prog.Call.
* pkg/host: move from hostDmitry Vyukov2017-06-171-0/+74