aboutsummaryrefslogtreecommitdiffstats
path: root/sys/linux/init.go
Commit message (Collapse)AuthorAgeFilesLines
* sys/linux: add syz_init_net_socket syscallDmitry Vyukov2018-03-051-0/+14
| | | | | | | | | | | The new pseudo syscall allows opening sockets that can only be created in init net namespace (BLUETOOTH, NFC, LLC). Use it to open these sockets. Unfortunately this only works with sandbox none at the moment. The problem is that setns of a network namespace requires CAP_SYS_ADMIN in the target namespace, and we've lost all privs in the init namespace during creation of a user namespace.
* prog: return concrete arg types from Make functionsDmitry Vyukov2018-02-241-5/+5
| | | | This removes a bunch of type assertions and makes code type safer.
* sys/linux: prevent programs from doing arbitrary writes with ARCH_SET_FSDmitry Vyukov2018-02-231-0/+12
|
* sys/linux: fix mmap call argsDmitry Vyukov2018-02-201-1/+1
| | | | Also add a test for this.
* prog: rework address allocationDmitry Vyukov2018-02-191-42/+5
| | | | | | | | | | | | 1. mmap all memory always, without explicit mmap calls in the program. This makes lots of things much easier and removes lots of code. Makes mmap not a special syscall and allows to fuzz without mmap enabled. 2. Change address assignment algorithm. Current algorithm allocates unmapped addresses too frequently and allows collisions between arguments of a single syscall. The new algorithm analyzes actual allocations in the program and places new arguments at unused locations.
* sys/linux: add bridge netfilter supportDmitry Vyukov2018-02-171-0/+6
|
* sys/linux: improve netfilter descriptionsDmitry Vyukov2018-02-091-0/+1
| | | | | | | | | | | | | | | | Put the underflow entry at the end. Entries must end on an unconditional, non-goto entry, otherwise fallthrough from the last entry is invalid. Add arp tables support. Split unspec matches/targets to unspec and inet. Reset ipv6 and arp tables in executor. Fix number of counters in tables. Plus a bunch of assorted fixes for matches/targets.
* sys/linux: extend netfilter descriptionsDmitry Vyukov2018-01-271-2/+6
|
* sys/linux: don't touch mknod$loop during sanitizationDmitry Vyukov2018-01-161-0/+3
| | | | | | | mknod$loop contains proc type as dev number. Current sanitization code truncates 64-bit -1 to 32-bits which later causes validation failure. Don't do that, it's unnecessary for proc type.
* sys/linux: add AF_NETLINK/NETLINK_CRYPTO descriptionsDmitry Vyukov2018-01-091-0/+1
|
* sys/linux: netlink xfrm supportDmitry Vyukov2017-12-311-4/+6
|
* sys/linux: improve hash generation for KEYCTL_DH_COMPUTEDmitry Vyukov2017-11-271-3/+4
| | | | | | | KEYCTL_DH_COMPUTE used the old fixed list of algorithm names. Use the new code for algorithm generation. + it needs only SHASH algs, but we passed in all alg names. Pass only SHASH algs.
* sys/linux: resolve TODO re argument truncationDmitry Vyukov2017-11-271-4/+2
|
* sys/linux: improve AF_ALG alg name generationDmitry Vyukov2017-11-241-3/+5
| | | | | | | | | There is effectively infinite number of possible crypto algorithm names due to templates. Plus there is tricky relation between algorithms and algorithm type names. This change adds custom mutator for sockaddr_alg struct to improve variance in generated algorithms.
* all: initial support for fuchsiaDmitry Vyukov2017-09-201-120/+41
| | | | | | Nothing works, but builds. Update #191
* syz-manager, syz-fuzzer, executor: ensure that binaries are consistentDmitry Vyukov2017-09-151-1/+2
| | | | | | | Check that manager/fuzzer/executor are build on the same git revision, use the same syscall descriptions and the same target arch. Update #336
* 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-151-47/+136
| | | | | Currently we compile in only GOOS/GOARCH target. Compile in all targets so that they can be selected at runtime.
* sys/linux: rename package from sys to linuxDmitry Vyukov2017-09-151-1/+1
|
* sys: move linux descriptions to sys/linuxDmitry Vyukov2017-09-151-0/+272