aboutsummaryrefslogtreecommitdiffstats
path: root/sys/linux
Commit message (Collapse)AuthorAgeFilesLines
* executor: move arm syscall fixup to syz-extractDmitry Vyukov2017-11-2237-2282/+2233
|
* sys/linux: remove get_kernel_syms, add quotactl syscallDmitry Vyukov2017-11-2011-3613/+3644
| | | | | | get_kernel_syms does not seem to be present upstream. Describe an old quotactl syscall. Also fix umount/umount2 names in kallsyms.
* sys/linux: add definition for LOOP_SET_BLOCK_SIZEEric Biggers2017-11-0711-4672/+4708
| | | | The v4.14 kernel will support a new loop ioctl, LOOP_SET_BLOCK_SIZE.
* sys/linux: fix wrong ioctl numbers in loop device definitionsEric Biggers2017-11-0711-17/+37
| | | | | | | Fix a couple apparent copy-and-paste errors: - ioctl$LOOP_CHANGE_FD should use LOOP_CHANGE_FD - ioctl$LOOP_CTL_REMOVE should use LOOP_CTL_REMOVE
* sys/linux: add definition for keyctl_restrict_keyring()Eric Biggers2017-11-0311-3233/+3274
| | | | | Add a definition for keyctl_restrict_keyring(), which was added in the v4.12 kernel.
* sys/linux: add definition for keyctl_dh_compute()Eric Biggers2017-11-0311-3288/+3405
| | | | | | Add a definition for keyctl_dh_compute(), which was added in the v4.7 kernel, then in the v4.12 kernel extended to take in an optional 'keyctl_kdf_params' argument. (Requires CONFIG_KEY_DH_OPERATIONS=y.)
* sys/linux: use resource subtypes for "user" and "keyring" keysEric Biggers2017-11-036-7427/+7516
| | | | | | | | | | | Many functions in the keys API take in an ID parameter that is expected to refer to a keyring, not to any key. Therefore, define a resource subtype 'keyring' which can be created by add_key("keyring", ...) or by using one of the special keyring IDs. Also define a resource subtype 'user_key', since we'll be adding a definition for KEYCTL_DH_COMPUTE which takes in a struct containing "user" key IDs.
* sys/linux: define all the key typesEric Biggers2017-11-036-21/+21
| | | | | | | Add to key.txt all key types that currently might be present in the kernel. It was missing a few important ones such as "asymmetric", which has a significant attack surface since the payloads are run through an ASN.1 decoder.
* sys/linux: add MSG_ZEROCOPYWillem de Bruijn2017-10-1711-157/+177
|
* sys/linux: fix fcntl signatureDmitry Vyukov2017-10-1611-11/+21
|
* executor: support fragmentation in syz_emit_ethernetDmitry Vyukov2017-10-026-6/+44
| | | | | | A recent linux commit "tun: enable napi_gro_frags() for TUN/TAP driver" added support for fragmentation when emitting packets via tun. Support this feature in syz_emit_ethernet.
* sys/linux: include additional header to ion.txtBilly Lau2017-09-293-0/+3
| | | | This helps with resolving missing AT_FDCWD const.
* Makefile, sys/syz-extract: fix androidDmitry Vyukov2017-09-272-0/+2
|
* sys/syz-extract: support fuchsiaDmitry Vyukov2017-09-251-46/+0
|
* all: initial support for fuchsiaDmitry Vyukov2017-09-206-130/+51
| | | | | | Nothing works, but builds. Update #191
* sys/linux: improve user_desc descriptionDmitry Vyukov2017-09-204-22/+46
|
* pkg/compiler: don't genererate missing syscallsDmitry Vyukov2017-09-155-9271/+6903
| | | | | | | | We used to generate them only because manager had no idea what arch it is testing. So syscalls numbers had to match between all arches. This is not needed anymore. Also don't generate unreferenced structs/resources.
* syz-manager, syz-fuzzer, executor: ensure that binaries are consistentDmitry Vyukov2017-09-156-6/+17
| | | | | | | Check that manager/fuzzer/executor are build on the same git revision, use the same syscall descriptions and the same target arch. Update #336
* pkg/csource: support archs other than x86_64Dmitry Vyukov2017-09-155-2/+7
|
* sys/syz-extract: generate multiple arches at onceDmitry Vyukov2017-09-151-16/+5
|
* sys/syz-extract: use consolidated target infoDmitry Vyukov2017-09-151-25/+6
| | | | | Move knowledge about targets from extract.sh to syz-extract, and make it use target into from sys.
* prog: remove special knowledge about "mmap" syscallDmitry Vyukov2017-09-151-0/+1
| | | | Abstract "mmap" away as it can be called differently on another OS.
* sys: compile all supported targets into the packageDmitry Vyukov2017-09-156-14891/+14995
| | | | | Currently we compile in only GOOS/GOARCH target. Compile in all targets so that they can be selected at runtime.
* sys/syz-extract: parallelize over filesDmitry Vyukov2017-09-151-7/+4
|
* sys: move extract.sh to sys/linuxDmitry Vyukov2017-09-151-0/+79
|
* sys/linux: rename package from sys to linuxDmitry Vyukov2017-09-156-6/+6
|
* sys: move linux descriptions to sys/linuxDmitry Vyukov2017-09-15246-0/+111542