aboutsummaryrefslogtreecommitdiffstats
path: root/executor
Commit message (Collapse)AuthorAgeFilesLines
* executor: always use errors=continue when mounting ext2/3/4Dmitry Vyukov2018-06-112-10/+26
| | | | | | | For ext2/3/4 we have to have errors=continue because the image can contain errors=panic flag and can legally crash kernel. Fixes #599
* sys/linux: add udplite socketsDmitry Vyukov2018-06-081-10/+30
|
* sys/linux: add TCP_ZEROCOPY_RECEIVE and TCP_INQDmitry Vyukov2018-06-081-10/+20
|
* sys/linux: add ip6t_srh1 descriptionDmitry Vyukov2018-06-081-5/+5
|
* sys/linux: add more fs ioctlsDmitry Vyukov2018-06-081-10/+55
|
* sys/linux: minor fixes for aioDmitry Vyukov2018-06-081-8/+11
|
* sys/linux: add remaining qdisc/tclass/tfilter/actions for netlink route schedHangbin Liu2018-06-081-5/+5
| | | | | | Update #533 Signed-off-by: Hangbin Liu <liuhangbin@gmail.com>
* executor: make syscall table and number constantDmitry Vyukov2018-06-0714-47/+44
| | | | | | | | | We see some crashes that suggest corruption of the syscall number: invalid command number 1296 (errno 11) invalid command number 107 (errno 110) Make the table and the number constant to prevent corruption.
* sys/linux: regenerate consts on tipDmitry Vyukov2018-06-071-5/+5
|
* sys/linux: add AF_XDP supportDmitry Vyukov2018-06-071-10/+65
|
* sys/linux: fix up midi descriptionsDmitry Vyukov2018-06-071-10/+40
|
* sys/fuchsia: disable zx_task_killDmitry Vyukov2018-06-061-6/+4
| | | | | | Disable zx_task_kill until we figure out how to prevent executor from killing fuzzer. Update #594
* executor: use linux result convention for fuchsiaDmitry Vyukov2018-06-061-1/+3
| | | | | In several places we assume that -1 is failure and 0 is OK. Use this convention for fuchsia as well.
* executor: fix zx_port_wait useDmitry Vyukov2018-06-061-1/+1
| | | | The call signature has changed in zircon.
* sys/fuchsia: remove ZX_VMO_OP_LOOKUPDmitry Vyukov2018-06-061-6/+4
| | | | It's removed from latest zircon sources.
* sys/linux: id field fix in v4l2_event_subscriptionDenis Efremov2018-06-051-4/+4
| | | | | | | | | | | | | | | | | | The id field in the v4l2_event_subscription structure currently described as: id len[type, int32]. But all the documentation states is: "id - ID of the event source. If there is no ID associated with the event source, then set this to 0. Whether or not an event needs an ID depends on the event type." So, the documentation clearly states that: 1. id - is the source of an event 2. type - is the type of an event 3. for some types of events there is no source and id can be 0 According to this 'id int32' is more accurate description of the field.
* sys/linux: add new mount options for xfs && btrfs in kernel v4.17Denis Efremov2018-06-051-5/+5
| | | | | 1. lazytime && nolazytime for xfs 2. nossd_spread for btrfs
* sys/linux: fix cdrom rules description && clarification on how to runDenis Efremov2018-06-041-5/+5
| | | | | | | 1. Comment with clarification on how to run qemu added. 2. Fixed description of int type. Signed-off-by: Denis Efremov <efremov@linux.com>
* sys/linux: improve /dev/snd/controlC descriptionsDmitry Vyukov2018-06-041-5/+5
|
* sys/linux: video4linux v4l2_jpegcompression APP_len fixDenis Efremov2018-05-291-4/+4
| | | | Signed-off-by: Denis Efremov <efremov@linux.com>
* sys/linux: cdrom generic descriptionDenis Efremov2018-05-291-10/+235
| | | | Signed-off-by: Denis Efremov <efremov@linux.com>
* sys/linux: few minor tweaks for bpfDmitry Vyukov2018-05-181-5/+5
|
* sys/linux: add MAP_FIXED_NOREPLACE constDmitry Vyukov2018-05-181-5/+5
|
* pkg/csource: minimize netdevices and net resetDmitry Vyukov2018-05-171-19/+22
| | | | | | Add separate options to minimize netdevices setup and net namespace reset. Fixes #581
* sys/linux: use optional in tun descriptionsDmitry Vyukov2018-05-171-5/+5
|
* sys/linux: fix duplicate field in structDmitry Vyukov2018-05-171-5/+5
|
* executor: revert protection of kcov regionDmitry Vyukov2018-05-151-7/+3
| | | | | Turns out it's protection of kcov region that causes coverage drop. Revert it and re-enable coverage filtering.
* executor: revert coverage filteringDmitry Vyukov2018-05-141-1/+3
| | | | | This causes very significant drop in corpus size. Needs additional debugging. Revert for now.
* executor: protect most of kcov regionDmitry Vyukov2018-05-141-2/+4
| | | | | We only write to the first page of kcov region. Protect the rest from the fuzzer.
* executor: terminate on corrupted coverageDmitry Vyukov2018-05-141-1/+1
| | | | | | New measures still does not help against fuzzer producing fake corrupted coverage. Try to terminate instantly as we detect bad coverage.
* executor: filter out invalid PCs on linux/x86_64Dmitry Vyukov2018-05-146-3/+62
| | | | | Fuzzer manages to corrupt output region and write random coverage again and again. Do a sanity range check on coverage PCs to filter out invalid ones.
* executor: randomize output region addrDmitry Vyukov2018-05-141-7/+7
| | | | | Fuzzer manages to corrupt output region and write random coverage again and again. Randomize output region addr to make it harder.
* executor: fix strncpy compile errorIoana Ciornei2018-05-131-1/+1
| | | | | | | | | gcc8 is stricter when dealing with strings and strncpy and demands that the size of the actual string to be copied to be explicitly smaller than the size of the destination, just to make sure the NULL terminator is taken into considerantion. This patch fixes the issue. Signed-off-by: Ioana Ciornei <ciorneiioana@gmail.com>
* sys/linux: regenerate video4linux consts on the right treeDmitry Vyukov2018-05-111-106/+5
| | | | | Now generated on: https://source.codeaurora.org/quic/la/kernel/msm-4.9 msm-4.9
* sys/linux: add missing consts for video4linux.txtDmitry Vyukov2018-05-111-10/+525
| | | | | | | | | | | | | For now other arches are regenerated on upstream tree. It does not contain a bunch of consts, so we define them to 1 for now. arm64 consts are left intact. video4linux.txt is added to "android" files in syz-extract, so that future make extract runs don't overwrite arm64 consts. Also fix VIDIOC_G_FBUF argument direction, currently tests crash with: panic: call ioctl$VIDIOC_G_FBUF: pointer arg 'buffer' has output direction [recovered] panic: call ioctl$VIDIOC_G_FBUF: pointer arg 'buffer' has output direction
* sys/linux: add AF_NETLINK/NETLINK_ROUTE SCHED supportHangbin Liu2018-05-081-10/+15
| | | | | | | | | | | | Update #533 As TC(net sched) is a large group, I separate it from socket_netlink_route.txt. Currently I only implement the framework with two qdisc/tclass/filters. I will add the others later. v2: Fix tcm_handle major and minor order. Add tcm_handle_offsets. Signed-off-by: Hangbin Liu <liuhangbin@gmail.com>
* sys: dedup mmap code across OSesDmitry Vyukov2018-05-061-4/+4
| | | | Update #538
* sys: move generate files to separate packagesDmitry Vyukov2018-05-057-13/+13
| | | | | | | | | Move generated files to gen subdir. This allows to: 1. Rebuild init.go without rebuilding generated code. 2. Excluding generated files from gometalinter checking. This makes faster and consume less memory. Update #538
* gometalinter: enable misspellDmitry Vyukov2018-05-031-2/+2
| | | | Update #538
* gometalinter: enable package comment checkingDmitry Vyukov2018-05-037-13/+13
| | | | Update #538
* executor: fix read_cover_size signatureDmitry Vyukov2018-04-304-4/+4
|
* sys/linux: add few more filesystems with imagesDmitry Vyukov2018-04-291-10/+35
|
* sys/linux: describe block device ioctlsDmitry Vyukov2018-04-291-10/+340
| | | | | | Describe block device ioctls. Describe sg device ioctls. Add few more devices.
* sys/linux: a bunch of assorted improvementsDmitry Vyukov2018-04-271-10/+60
|
* sys/linux: extend namespace desciptionsDmitry Vyukov2018-04-271-10/+15
| | | | | Slightly extend namespace descriptions and move them to a separate file.
* executor: support cover on 32-bit kernelsDmitry Vyukov2018-04-273-71/+101
| | | | Detect kernel bitness and properly extract coverage on 32-bit kernels.
* sys/linux/socket_netlink_route: add routing rulesHangbin Liu2018-04-251-5/+5
| | | | | | | | | | | | | | Also fix RTA_MULTIPATH data type. We only need struct rtnexthop, no need to use array type. v1 -> v2: Use uid and sock_port instead of int32/16. Use flags for FRA_PROTOCOL and FRA_IP_PROTO. Add type fib_rule_hdr because even though the structure is same with rtmsg. The table, action and flags values are not same. Signed-off-by: Hangbin Liu <liuhangbin@gmail.com>
* executor: don't fail when ipv6 is not enabledDmitry Vyukov2018-04-201-1/+7
| | | | | | Check in checkpoint_iptables is not enough as reset_iptables will fail even if no tables enabled. Add similar check to reset_iptables.
* executor: increase max image size to 128MBDmitry Vyukov2018-04-191-3/+3
| | | | Images of some filesystems need to be that large (xfs, btrfs, f2fs).
* sys/linux: add f2fs supportDmitry Vyukov2018-04-191-10/+15
|