aboutsummaryrefslogtreecommitdiffstats
path: root/executor
Commit message (Collapse)AuthorAgeFilesLines
* executor: improve kcov compatibility with upcoming supportMichael Tuexen2018-12-281-3/+8
| | | | | Get ioctl() definitions and usage in sync with the upcoming support reviewed in https://reviews.freebsd.org/D14599.
* executor: KIOENABLE accepts a mode argument on OpenBSDAnton Lindqvist2018-12-281-5/+3
|
* pkg/csource: use 0 for missing syscall argsDmitry Vyukov2018-12-273-13/+55
| | | | | | | | | | | | | | We don't specify trailing unused args for some syscalls (e.g. ioctl that does not use its arg). Executor always filled tailing unsed args with 0's but pkg/csource didn't. Some such syscalls actually check that the unsed arg is 0 and as the result failed with C repro. We could statically check and eliminate all such cases, but it turns out the warning fires in 1500+ cases: https://gist.githubusercontent.com/dvyukov/e59ba1d9a211ee32fa0ba94fab86a943/raw/a3ace5a63f7281f0298f51ea9842ead1e4713418/gistfile1.txt So instead fill such args with 0's in pkg/csource too.
* executor: include sys/kcov.h on OpenBSDAnton Lindqvist2018-12-271-3/+6
| | | | Since we no longer cross-compile, there's no need to repeat the defines.
* executor: fix max number of syscall argsDmitry Vyukov2018-12-261-1/+1
| | | | De-hardcode max number (wrong) of syscall args.
* executor: create more net devices on linuxDmitry Vyukov2018-12-263-27/+63
|
* executor: restrict ipc resource usageDmitry Vyukov2018-12-261-1/+25
| | | | | For context see: https://groups.google.com/d/msg/syzkaller-bugs/ZaBzAJbn6i8/Py9FVlAqDQAJ
* sys/linux: add network drop monitor supportDmitry Vyukov2018-12-242-5/+20
|
* sys/linux: add udmabuf descriptionsDmitry Vyukov2018-12-242-5/+20
|
* sys/linux: add basic AF_CAIF descriptionsDmitry Vyukov2018-12-242-5/+30
|
* sys/linux: add basic X25 descriptionsDmitry Vyukov2018-12-242-5/+120
|
* sys/linux: extend AX25/ROSE/NETROM descriptionsDmitry Vyukov2018-12-244-67/+233
|
* sys/linux: add CRYPTO_MSG_GETSTATDmitry Vyukov2018-12-221-5/+5
|
* sys/linux: add RTM_NEWNSID/RTM_GETNSIDDmitry Vyukov2018-12-221-5/+5
|
* sys/linux: add fs-verity ioctlsVictor Hsieh2018-12-182-5/+15
| | | | | | | | This adds 2 ioctls and an argument type: - FS_IOC_ENABLE_VERITY - FS_IOC_MEASURE_VERITY - struct fsverity_digest Note fs-verity on-disk structs are not yet added.
* prog, pkg/csource: more readable serialization for stringsDmitry Vyukov2018-12-153-4/+7
| | | | | | | Always serialize strings in readable format (non-hex). Serialize binary data in readable format in more cases. Fixes #792
* executor: move setrlimit from setup_control_pipes to bsd os_initDmitry Vyukov2018-12-142-6/+5
| | | | This broke fuchsia build. We need setrlimit only for bsd.
* pkg/csource: support tun and setuid repros on {free,open}bsdGreg Steuck2018-12-132-2/+8
| | | | | | * expose procid on BSD for tun, always declare loop() * deal with terrible bsd includes * replicate loop() declaration
* sys/linux: add basic tipc testDmitry Vyukov2018-12-121-1/+2
|
* executor: reapply setuid sandbox for bsdGreg Steuck2018-12-113-19/+80
| | | | | | | | | | * Revert "Revert "executor: add setuid sandbox for openbsd"" The problem is the low file descriptor limit. This reverts commit 4093e33b1338f274ae0062f555de9d6af8640d61. * executor/executor make sure the file descriptor limit is sufficient
* Revert "executor: add setuid sandbox for openbsd"Greg Steuck2018-12-102-74/+19
| | | | This reverts commit 6565f24da9f4eb36702339ba290213995fcc902f.
* prog: support AUTO args in programsDmitry Vyukov2018-12-102-4/+5
| | | | | | | | | | | | | | | AUTO arguments can be used for: - consts - lens - pointers For const's and len's AUTO is replaced with the natural value, addresses for AUTO pointers are allocated linearly. This greatly simplifies writing test programs by hand as most of the time we want these natural values. Update tests to use AUTO.
* sys: consistently mark all paddings as const[0]Dmitry Vyukov2018-12-101-5/+5
|
* executor: add setuid sandbox for openbsdGreg Steuck2018-12-102-19/+74
| | | | | | | | | | * executor/common_bsd: add setuid sandbox Fixes #833 cc @mptre * Reduced duplications, resolved TODO.
* sys/openbsd: fix socketpair usageMichael Tuexen2018-12-091-1/+1
|
* sys/netbsd: fix socketpair usageMichael Tuexen2018-12-091-1/+1
|
* sys/freebsd: fix socketpair usageMichael Tuexen2018-12-091-1/+1
|
* sys/linux: add AF_TIPC netlink interface and packet formatsDmitry Vyukov2018-12-092-5/+215
|
* sys/linux: add AF_TIPC descriptionsDmitry Vyukov2018-12-092-5/+130
|
* sys/linux: socketpair returns sockets not just fd'sDmitry Vyukov2018-12-091-5/+5
|
* executor: fix handling of big-endian bitfieldsDmitry Vyukov2018-12-085-43/+53
| | | | | Currently we apply big-endian-ness and bitfield-ness in the wrong order in copyin. This leads to totally bogus result. Fix this.
* 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