aboutsummaryrefslogtreecommitdiffstats
path: root/executor
Commit message (Collapse)AuthorAgeFilesLines
* sys/linux: improve recvmsg descriptionsMichael Tuexen2018-12-081-5/+5
|
* sys/openbsd: improve recvmsg() descriptionMichael Tuexen2018-12-081-1/+1
|
* sys/netbsd: improve recvmsg() descriptionMichael Tuexen2018-12-081-1/+1
|
* sys/freebsd: use a better description of msg_flags fieldsMichael Tuexen2018-12-081-1/+1
| | | | | | | As suggested by Dmitry us a better description of the msg_flags field, which is only used to provide information from the kernel to the application for recvmsg() calls. This means that the value provided is basically ignored.
* sys/freebsd: Improve socket related tests for FreeBSD.Michael Tuexen2018-12-082-4/+3
|
* sys/openbsd: correct semctl syscall numberAnton Lindqvist2018-12-072-11/+11
|
* sys/freebsd: improve TCP testsMichael Tüxen2018-12-052-1/+5
| | | | | | | | | | * sys/freebsd: improve TCP tests Add missing TCP socket options for FreeBSD. * sys/freebsd: improve TCP tests Add socket option description for TCP_FASTOPEN.
* sys/freebsd: improve udp testsMichael Tuexen2018-12-042-1/+5
| | | | | Add support for the UDP_ENCAP. Add required includes and remove the Linux specific ones.
* sys: remove socketpair for AF_INET and AF_INET6Michael Tüxen2018-12-042-122/+8
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * OpebBSD: remove socketpair() for AF_INET and AF_INET6. socketpair() is only supported on AF_UNIX. * NetBSD: remove socketpair() for AF_INET and AF_INET6. socketpair() is only supported for AF_UNIX. * FreeBSD: remove socketpair() for AF_INET and AF_INET6. socketpair() only supports AF_UNIX. * Linux: remove socketpair for AF_INET and AF_INET6. socketpair only supports AF_UNIX. * Autogenerated files. These are manually generated for all platforms you are not running on. FreeBSD in this case. * executor: rebase. * sys/freebsd: rebase. * sys/linux: use AF_UNIX based socketpair for nbd. This was suggested by Dmitry. Fixes #845
* sys/freebsd: add UDP-Lite descriptionsMichael Tüxen2018-12-032-1/+7
|
* pkg/csource: use defines from sys/syscall.h on *bsdGreg Steuck2018-12-021-0/+1
| | | Fixes #841
* executor: add support for tap interfaces on FreeBSDMichael Tüxen2018-12-013-3/+20
|
* openbsd: repair pkg/csource_testGreg Steuck2018-11-302-54/+44
|
* removing trace2syz constants and moving rand_addr as the first ipv4_addr optionShankara Pailoor2018-11-301-5/+5
|
* FreeBSD: Fix make extractMichael Tüxen2018-11-301-1/+1
| | | | | | | | | | * FreeBSD: Fix make extract. A header was missing... * FreeBSD: Fix make extract Changes in generated files.
* executor: Use correct macros.Michael Tuexen2018-11-301-1/+1
| | | | Suggested by Dmitry Vyukov.
* Whitespace change.Michael Tuexen2018-11-301-1/+0
|
* executor: Fix compilation on FreeBSDMichael Tuexen2018-11-301-5/+5
| | | | | Fix the compilation on FreeBSD when not supporting the tun interface.
* sys/fuchsia: fix task syscalls.Marco Vanotti2018-11-292-4/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | This commit fixes two issues related to the task syscalls. The zx_task_resume syscall has been recently removed from zircon[0]. It has been deprecated for some time already. This commit removes the syscall. The `ZX_EXCEPTION_PORT_UNBIND_QUIETLY` option for the syscall `zx_task_bind_exception_port` has been removed recently as well[1]. This commit removes that option from tasks.txt. To test this change, I followed the procedure for building syzkaller for fuchsia: ```shell $ make extract TARGETOS=fuchsia SOURCEDIR=${FUCHSIADIR} $ make generate $ make TARGETOS=fuchsia TARGETARCH=amd64 SOURCEDIR=${FUCHSIADIR} ``` I excluded the changes from make extract. This commit only has the generated files from make generate. [0]: https://fuchsia-review.googlesource.com/c/zircon/+/228712 [1]: https://fuchsia-review.googlesource.com/c/zircon/+/228658
* reordering unions for trace2syzShankara Pailoor2018-11-251-5/+5
|
* removing trace2syz constantsShankara Pailoor2018-11-241-5/+5
|
* executor: FreeBSD: fixed endian.h pathmsvoelker2018-11-231-0/+4
| | | | The include statement for endian.h failed on FreeBSD. Changed include statement to syz/endian.h for FreeBSD.
* sys/fuchsia: update VMAR syscallsMarco Vanotti2018-11-212-5/+5
| | | | | | | | | | | | | | | | | | | | | | | * sys/fuchsia: update vmar syscalls. In a previous zircon commit[0], the vmar related syscalls (like `zx_vmar_map`, `zx_vmar_protect` and `zx_vmar_allocate`) changed the order of their parameters, making putting the flags parameter as the second parameter, and renaming it to "options". This commit modifies vmars.txt so that it reflects the latest state of the syscalls in zircon. I also modified the usage in `executor/common_fuchsia.h` I ran make extract, make generate and compiled syzkaller to test this change. [0]: https://fuchsia-review.googlesource.com/c/zircon/+/168060 * sys/fuchsia run make generate This commit is just the result of running make generate after its parent. This regenerates the definitions for the modified VMAR syscalls.
* sys/fuchsia: update fidl mappings.Marco Vanotti2018-11-212-2/+40
| | | | | | | This commit is just a run of make extract + make generate with an up to date fuchsia tree. This commit only updates the fidl definitions, there are some other syscalls that had changed and need to be manually updated (that will come in a future commit).
* openbsd: enable packet injectionGreg Steuck2018-11-191-1/+1
|
* sys/linux: refine tcp_zerocopy_receiveDmitry Vyukov2018-11-171-5/+5
| | | | Use the new vma64 now that we have it.
* sys/linux: refine description for PR_SET_MMDmitry Vyukov2018-11-172-10/+30
|
* sys/linux: modernize arch_prctl descriptionsDmitry Vyukov2018-11-172-4/+18
|
* sys/linux: modernize prctl descriptionsDmitry Vyukov2018-11-172-50/+240
| | | | Use one syscall per command, refine arguments, etc.
* sys/linux: refine tcp repair descriptionsDmitry Vyukov2018-11-172-5/+35
|
* executor: OpenBSD network package injectionGreg Steuck2018-11-173-8/+236
| | | | | | | | | | | | | | | | | | | | | | | | Squash of: * Doc typo * Ported some tun related functions. * Copy vnet.txt from linux to openbsd. * Simplified syz_emit_ethernet and stubbed out vnet.txt. * Undo clang-format header sorting: headers are order sensitive. * Uniquify tap devices by pid. * clang-format off for includes * Happier clang-format. * Partially revert "Uniquify tap devices by pid." Just rely on procid magic instead of getting it from a flag.
* 1) making bpf_insn varlen, 2) changing bpf_generic to match the struct ↵Shankara Pailoor2018-11-121-5/+5
| | | | definition in linux to make trace2syz generation simpler
* sys/linux: add vimc/vivid/vim2m/vicodec/swradio/radio/vbi/cec devicesDmitry Vyukov2018-11-102-5/+60
| | | | | | Create planar and non-planar vivid devices. Create each for each test process. Add swradio/radio/vbi/cec media devices.
* sys/linux: add /dev/dlm* devicesDmitry Vyukov2018-11-102-5/+20
|
* sys/linux: regenerate on latest kernelDmitry Vyukov2018-11-101-5/+5
|
* sys: initial trusty supportDmitry Vyukov2018-11-072-0/+49
| | | | | | | | | Trusty is a set of software components supporting a Trusted Execution Environment (TEE) on mobile devices. https://source.android.com/security/trusty Add syscall descriptions and some boilerplate.
* executor: fix inclusion of kvm arch-specific codeDmitry Vyukov2018-10-311-2/+2
| | | | | We use GOOS now to figure out target arch (which can be different from host arch).
* sys/linux: adding constants for trace2syz to socketsshankarapailoor2018-10-301-5/+5
|
* sys/linux: add perf, kvm, btrfs consts for trace2syzshankarapailoor2018-10-302-5/+10
|
* sys/linux: add additional constants for trace2syz to bpfShankara Pailoor2018-10-301-5/+5
| | | | Fixes #783
* sys/linux: fix up descriptionsDmitry Vyukov2018-10-301-5/+5
| | | | | | | 1. Extract consts on the latest linux tree. 2. Don't manually define O_TMPFILE/O_ACCMODE/_LINUX_CAPABILITY_VERSION_N, they are defined in kernel headers. 3. Don't use CLOCK_SGI_CYCLE as clock id, it's not implemented.
* sys/linux: add additional constants for trace2syzshankarapailoor2018-10-301-5/+5
|
* sys/openbsd: added minherit, extended/simplified mmapGreg Steuck2018-10-292-1/+2
| | | | | | | | | | | | * sys/openbsd: added minherit, extended/simplified mmap. Added a script from anton_at_openbsd.org for regenerating syscalls. Generated by ksh ./sys/openbsd/extract-openbsd.sh * Undo whitespace change not passing on CI * No need for magic script.
* sys/linux: fix SIOCGIFCONF constDmitry Vyukov2018-10-291-5/+5
|
* sys/linux: fix IP6T_SO_GET_INFO constDmitry Vyukov2018-10-291-5/+5
| | | | Fix copy-paste error.
* sys/linux: open /dev/media* filesDmitry Vyukov2018-10-282-10/+10
| | | | Also remove the second syscall for opening of /dev/fd*.
* sys/linux: slightly refine perf descriptionsDmitry Vyukov2018-10-282-5/+10
| | | | | CPU argument can be -1. It makes sense to mmap perf fd.
* sys/syz-extract: support missing arch headersDmitry Vyukov2018-10-282-5/+55
| | | | | | | | The latest Linux kernel misses some arch-specific headers on some archs: asm/a.out.h asm/prctl.h asm/mce.h Support that.
* sys/linux: floppy interface descriptionDenis Efremov2018-10-282-5/+85
| | | | | | | | | | For floppy fuzzing you need to enable: 1) CONFIG_BLK_DEV_FD in your kernel configuration 2) "cmdline": " -fda FLOPPY.img " in syzkaller configuration Signed-off-by: Denis Efremov <efremov@linux.com> Signed-off-by: Alexander Popov <alex.popov@linux.com>
* sys: check that target consts are definedDmitry Vyukov2018-10-191-2/+2
| | | | | | | | | | | | | | Currently when we get target consts with target.ConstMap["name"] during target initialization, we just get 0 for missing consts. This is error-prone as we can mis-type a const, or a const may be undefined only on some archs (as we have common unix code shared between several OSes). Check that all the consts are actually defined. The check detects several violations, to fix them: 1. move mremap to linux as it's only defined on linux 2. move S_IFMT to openbsd, as it's only defined and used on openbsd 3. define missing MAP_ANONYMOUS for freebsd and netbsd 4. fix extract for netbsd