aboutsummaryrefslogtreecommitdiffstats
path: root/executor/syscalls.h
Commit message (Collapse)AuthorAgeFilesLines
* pkg/csource: use 0 for missing syscall argsDmitry Vyukov2018-12-271-0/+12
| | | | | | | | | | | | | | 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.
* sys/linux: add network drop monitor supportDmitry Vyukov2018-12-241-0/+15
|
* sys/linux: add udmabuf descriptionsDmitry Vyukov2018-12-241-0/+15
|
* sys/linux: add basic AF_CAIF descriptionsDmitry Vyukov2018-12-241-0/+25
|
* sys/linux: add basic X25 descriptionsDmitry Vyukov2018-12-241-0/+115
|
* sys/linux: extend AX25/ROSE/NETROM descriptionsDmitry Vyukov2018-12-241-60/+195
|
* sys/linux: add fs-verity ioctlsVictor Hsieh2018-12-181-0/+10
| | | | | | | | 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-151-0/+2
| | | | | | | Always serialize strings in readable format (non-hex). Serialize binary data in readable format in more cases. Fixes #792
* prog: support AUTO args in programsDmitry Vyukov2018-12-101-0/+1
| | | | | | | | | | | | | | | 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/linux: add AF_TIPC netlink interface and packet formatsDmitry Vyukov2018-12-091-0/+210
|
* sys/linux: add AF_TIPC descriptionsDmitry Vyukov2018-12-091-0/+125
|
* sys/freebsd: Improve socket related tests for FreeBSD.Michael Tuexen2018-12-081-3/+2
|
* sys/openbsd: correct semctl syscall numberAnton Lindqvist2018-12-071-10/+10
|
* sys/freebsd: improve TCP testsMichael Tüxen2018-12-051-0/+4
| | | | | | | | | | * 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-041-0/+4
| | | | | 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-041-114/+0
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * 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-031-0/+6
|
* executor: add support for tap interfaces on FreeBSDMichael Tüxen2018-12-011-0/+3
|
* sys/fuchsia: fix task syscalls.Marco Vanotti2018-11-291-2/+0
| | | | | | | | | | | | | | | | | | | | | | | | | | | 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
* sys/fuchsia: update fidl mappings.Marco Vanotti2018-11-211-0/+38
| | | | | | | 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).
* sys/linux: refine description for PR_SET_MMDmitry Vyukov2018-11-171-5/+25
|
* sys/linux: modernize arch_prctl descriptionsDmitry Vyukov2018-11-171-2/+16
|
* sys/linux: modernize prctl descriptionsDmitry Vyukov2018-11-171-45/+235
| | | | Use one syscall per command, refine arguments, etc.
* sys/linux: refine tcp repair descriptionsDmitry Vyukov2018-11-171-0/+30
|
* executor: OpenBSD network package injectionGreg Steuck2018-11-171-0/+3
| | | | | | | | | | | | | | | | | | | | | | | | 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.
* sys/linux: add vimc/vivid/vim2m/vicodec/swradio/radio/vbi/cec devicesDmitry Vyukov2018-11-101-0/+55
| | | | | | 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-101-0/+15
|
* sys: initial trusty supportDmitry Vyukov2018-11-071-0/+34
| | | | | | | | | 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.
* sys/linux: add perf, kvm, btrfs consts for trace2syzshankarapailoor2018-10-301-0/+5
|
* sys/openbsd: added minherit, extended/simplified mmapGreg Steuck2018-10-291-0/+1
| | | | | | | | | | | | * 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: open /dev/media* filesDmitry Vyukov2018-10-281-5/+5
| | | | Also remove the second syscall for opening of /dev/fd*.
* sys/linux: slightly refine perf descriptionsDmitry Vyukov2018-10-281-0/+5
| | | | | CPU argument can be -1. It makes sense to mmap perf fd.
* sys/syz-extract: support missing arch headersDmitry Vyukov2018-10-281-0/+50
| | | | | | | | 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-281-0/+80
| | | | | | | | | | 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/linux: prohibit FAN_OPEN_PERM and FAN_ACCESS_PERMDmitry Vyukov2018-10-151-0/+1
| | | | | | | FAN_OPEN_PERM and FAN_ACCESS_PERM require the program to reply to open requests. If that does not happen, the program will hang in an unkillable state forever. See the following bug for details: https://groups.google.com/d/msg/syzkaller-bugs/pD-vbqJu6U0/kGH30p3lBgAJ
* Update fidlgen to keep current with upstream.Julia Hansbrough2018-10-101-8/+62
| | | | | The Syzkaller IR upstream has been updated, so we can properly update consts/fidl descriptions now.
* sys/linux: add ima/evm/capability xattrsDmitry Vyukov2018-09-251-0/+45
|
* sys/linux: add erofs descriptionsDmitry Vyukov2018-09-251-0/+5
|
* sys/linux: add lsm attrs and xattrsDmitry Vyukov2018-09-231-0/+100
| | | | Add descriptions for /proc/self/attr/* and known lsm file xattrs.
* sys/fuchsia: add description for fuchsia.net, .net-stack, .ldsvc servicesDokyung Song2018-09-141-10/+98
|
* sys/linux: prohibit EXT4_IOC_SHUTDOWNDmitry Vyukov2018-09-131-5/+0
| | | | EXT4_IOC_SHUTDOWN EXT4_IOC_SHUTDOWN on root fs effectively brings the machine down in weird ways.
* sys/fuchsia: generate descriptions for garnet servicesDokyung Song2018-09-121-34/+114
|
* sys/linux: add btf descriptionsDmitry Vyukov2018-09-111-0/+20
| | | | | Add some new bpf descriptions, most notably btf. Not perfect, but something.
* sys/fuchsia: regerenate filesDmitry Vyukov2018-09-111-14/+0
| | | | Regerenate files after the previous commit.
* sys/fuchsia: prune unused structs in syscall description generated by fidlgenDokyung Song2018-09-111-0/+96
| | | | | | | | After generating syscall description for fidl files using fidlgen, prune all unused structs using the exact same mechanism used by the compiler's check for unused structs. This allows the FIDL compiler to support modular compilation; it does not need to have global knowledge of whether each struct is used or not.
* sys/linux: extend xattr descriptionsDmitry Vyukov2018-09-021-0/+90
| | | | Update #533
* sys/linux: add syz_execute_funcDmitry Vyukov2018-08-301-0/+16
| | | | | | The function executes random code. Update #310
* sys/linux: add nbd descriptionsDmitry Vyukov2018-08-301-0/+85
| | | | Update #533
* sys/fuchsia: describe method response types & handles; add support for unionDokyung Song2018-08-291-34/+34
| | | | | | | | * create a response handle structure for each FIDL method * generate zx_channel_write for requests having no response * generate zx_channel_read for events (no request but just response) * translate FIDL union types to syzkaller union types (see fuchsia_io_ObjectInfoHandles)
* sys/linux: add ext4 ioctls and overlayfsDmitry Vyukov2018-08-291-5/+110
| | | | Update #533