aboutsummaryrefslogtreecommitdiffstats
path: root/executor
Commit message (Collapse)AuthorAgeFilesLines
...
* sys/linux: add /dev/dsp descriptionsDmitry Vyukov2019-12-012-10/+195
|
* sys/linux: update constsDmitry Vyukov2019-12-011-1/+1
| | | | Regenerate const files for all arches.
* sys/linux: fix /dev/watch_queue nameDmitry Vyukov2019-11-301-5/+5
| | | | | | | | | It's /dev/watch_queue not /dev/fd_watch_queue. Don't know if it was renamed, or alwys wrong, but does not matter much, now it's /dev/watch_queue. Also attach v4l ioctls to /dev/swradio,radio,vbi,cec. It seems that _some_ of them are applicable to these devices as well.
* sys/linux: add open of /dev/dri/renderD128Dmitry Vyukov2019-11-292-5/+10
| | | | It's created by qemu but is not matched by the existing /dev/dri/renderD# pattern.
* sys/linux: fix NFC_SOCKPROTO_RAW socket callDmitry Vyukov2019-11-291-5/+5
| | | | It requires SOCK_SEQPACKET not SOCK_STREAM.
* sys/linux: use openat for /dev/cdromDmitry Vyukov2019-11-292-10/+15
| | | | | No need to use syz_open_dev here, openat will do. Also add /dev/cdrom1 b/c qemu -machine q35 creates cdrom1 instead of cdrom.
* sys/linux: use known tags for 9p virtio/xenDmitry Vyukov2019-11-291-5/+5
| | | | | Name virtio/xen sources "syz" so that it's possible to expose it from host and actually use.
* sys/linux: update BPF constantsPaul Chaignon2019-11-291-5/+5
| | | | Signed-off-by: Paul Chaignon <paul.chaignon@orange.com>
* pkg/csource: detect common mistakes in the common executor headerDmitry Vyukov2019-11-281-2/+4
|
* executor: Add debug message in case devlink namespace move failsJiri Pirko2019-11-281-2/+6
| | | | Signed-off-by: Jiri Pirko <jiri@mellanox.com>
* executor: Fix value of DEVLINK_ATTR_NETNS_FDJiri Pirko2019-11-281-1/+1
| | | | | | | During kernel -net and -next-next trees merge, the value got moved. Fix it. Signed-off-by: Jiri Pirko <jiri@mellanox.com>
* sys/linux/socket.txt: add more description for socket ioctlsShiyu Sun2019-11-282-5/+115
|
* sys/linux: more update to current linux-nextShiyu Sun2019-11-281-2/+2
|
* sys/linux: describe PTRACE_PEEKSIGINFOAndrei Vagin2019-11-272-5/+10
| | | | Signed-off-by: Andrei Vagin <avagin@gmail.com>
* sys/linux: add new arguments to struct clone_args for clone3()Christian Brauner2019-11-261-5/+5
| | | | | | | | | | | | | | | | | | | | | | | Linux v5.5 extends struct clone_args for clone3() by two additional parameters: @set_tid: Pointer to an array of type *pid_t. The size of the array is defined using @set_tid_size. This array is used to select PIDs/TIDs for newly created processes. The first element in this defines the PID in the most nested PID namespace. Each additional element in the array defines the PID in the parent PID namespace of the original PID namespace. If the array has less entries than the number of currently nested PID namespaces only the PIDs in the corresponding namespaces are set. @set_tid_size: This defines the size of the array referenced in @set_tid. This cannot be larger than the kernel's limit of nested PID namespaces. Cc: Adrian Reber <areber@redhat.com> Signed-off-by: Christian Brauner <christian.brauner@ubuntu.com>
* sys/linux/fscrypt.txt: add FSCRYPT_POLICY_FLAG_IV_INO_LBLK_64Eric Biggers2019-11-261-5/+5
| | | | | | This flag is new in 5.5. Also add a link to the fscrypt API documentation.
* Call initialize_devlink_ports only when a device has been createdAndrei Vagin2019-11-261-3/+4
| | | | | | | | | | | | | | | | | | | | gVisor doesn't support netdevsim and NETLINK_GENERIC and without this fix, sys-executor always fails: E openat(AT_FDCWD, /sys/bus/netdevsim/new_device, ...) X openat(AT_FDCWD, /sys/bus/netdevsim/new_device, ...) = 0x0 errno=2 E socket(AF_NETLINK, SOCK_RAW|0x0, NETLINK_GENERIC) X socket(AF_NETLINK, SOCK_RAW|0x0, NETLINK_GENERIC) = 0x0 errno=93 E write(0x2 host:[3], "socket(AF_NETLINK) failed\n", 0x1a) X write(0x2 host:[3], ..., 0x1a) = 0x1a (2.767µs) E write(0x2 host:[3], " (errno 93)\n", 0xc) X write(0x2 host:[3], ..., 0xc) = 0xc (2.729µs) E exit_group(0x43) X exit_group(0x43) = 0x0 (900ns) Cc: Jiri Pirko <jiri@mellanox.com> Fixes: f350e2dc1f59 ("executor: rename devlink port netdevices to defined names") Signed-off-by: Andrei Vagin <avagin@google.com>
* sys/linux: update to current linux-nextDmitry Vyukov2019-11-251-5/+5
| | | | | | | | Regenerate consts on linux-next next-20191125. DEVLINK_ATTR_NETNS_* consts were chifted by 1. __BPF_FUNC_MAX_ID increased as usual. CRYPTO_ALG_TYPE_BLKCIPHER, CRYPTO_ALG_TYPE_ABLKCIPHER were removed, replace them with CRYPTO_ALG_TYPE_SKCIPHER.
* sys/linux: run "make generate" for smackDenis Efremov2019-11-222-20/+170
| | | | Signed-off-by: Denis Efremov <efremov@linux.com>
* executor: extend USB debug messagesAndrey Konovalov2019-11-192-44/+436
| | | | | When USB_DEBUG is enabled, syzkaller crashes on unknown USB requests. This helps to find missing descriptions for particular USB classes.
* executor: add missing includesDenis Efremov2019-11-191-0/+3
| | | | | | | stdbool.h is required by initialize_devlink_ports(): true define. fcntl.h is required by initialize_devlink_pci(): O_RDONLY define. Signed-off-by: Denis Efremov <efremov@linux.com>
* executor: refactor sandbox flagsDmitry Vyukov2019-11-162-34/+22
| | | | In preparation for future changes.
* executor: rename some macrosDmitry Vyukov2019-11-163-82/+82
| | | | | Rename some macros in preparation for subsequent changes which will align names across the code base.
* pkg/csoruce: test that executor does not mis-spell any of the SYZ_* macrosDmitry Vyukov2019-11-162-18/+14
|
* executor: rename some flagsDmitry Vyukov2019-11-163-52/+52
| | | | | Rename some flags in preparation for subsequent changes which will align names across the code base.
* executor: remove pointless macro checksDmitry Vyukov2019-11-161-5/+2
| | | | | common_bsd.h is used for 3 OSes, so checking if it's any of these 3 OSes is pointless. Remove these checks.
* executor: consider NLMSG_DONE type in netlink_send_ext()Jiri Pirko2019-11-151-0/+4
| | | | | | | | | In case the dump is empty, NLMSG_DONE type message is received from kernel right away. Count with this and return 0. Set the reply_len to 0. Reported-by: Dmitry Vyukov <dvyukov@google.com> Fixes: f350e2dc1f59 ("executor: rename devlink port netdevices to defined names") Signed-off-by: Jiri Pirko <jiri@mellanox.com>
* executor, pkg/host: update usb raw-gadget interfaceAndrey Konovalov2019-11-151-18/+18
| | | | The patches are being upstreamed and the interface has changed.
* sys/fuchsia: remove deprecated exception APIsDavid Pursell2019-11-143-43/+56
| | | | | | The port-based exception APIs have been deprecated on Fuchsia and will be removed shortly. Delete them from the syscall definitions and modify the Fuchsia executor to use the new channel-based APIs instead.
* sys/fuchsia: fix Fuchsia extract/generateDavid Pursell2019-11-142-24/+28
| | | | | Updates some paths and add zx_eventpair type definition to fix `make extract` and `make generate`.
* sys/linux/socket.txt: add devlink pci related netdevJiri Pirko2019-11-141-5/+5
| | | | | | Add netdev name related to pci netdev and fix comment for netdevsim0. Signed-off-by: Jiri Pirko <jiri@mellanox.com>
* executor: rename devlink port netdevices to defined namesJiri Pirko2019-11-141-2/+85
| | | | | | | Devlink port netdevices stay in the form of eth%d. Rename then to defined names so they could be used for system calls. Signed-off-by: Jiri Pirko <jiri@mellanox.com>
* executor: pass struct nlmsg to netlink_* helpersJiri Pirko2019-11-141-107/+119
| | | | | | | | Don't rely on global "nlmsg" struct and rather pass the structure to netlink_* helpers. That allows to possibly work with multiple netlink messages (sending while receiving for example) at the same time. Signed-off-by: Jiri Pirko <jiri@mellanox.com>
* executor: extend netlink_device_change() to allow name changesJiri Pirko2019-11-141-10/+13
| | | | | | | Extend existing helper netlink_device_change() in order to allow to change netdevice names. Signed-off-by: Jiri Pirko <jiri@mellanox.com>
* executor: identify netdev by ifindex in netlink_device_change()Jiri Pirko2019-11-141-1/+1
| | | | | | | IFLA_NAME is going to be used to set the name of the netdevice, so change the handle to be ifindex. Signed-off-by: Jiri Pirko <jiri@mellanox.com>
* executor: push out devlink generic netlink id getter into a separate functionJiri Pirko2019-11-141-7/+22
| | | | Signed-off-by: Jiri Pirko <jiri@mellanox.com>
* sys/linux: fix up some int64 syscall argsDmitry Vyukov2019-11-071-5/+5
| | | | | See the discussion on #1493. These args are actually intptr's.
* executor: update the list of raw usb eventsAndrey Konovalov2019-11-051-2/+0
| | | | The number of reported event types changed.
* executor, pkg/host, dashboard/config: rename usb-fuzzer to usb raw-gadgetAndrey Konovalov2019-11-041-88/+87
| | | | The interface is being upstreamed and the name has changed.
* sys/linux: improve CAN descriptionsDmitry Vyukov2019-11-041-5/+5
|
* executor: fix setup of vxcanDmitry Vyukov2019-11-033-11/+7
| | | | Adding vxcan1 also adds vxcan0. Setup and use both.
* executor: move fixed pci devlink handle into network namespaceJiri Pirko2019-11-032-4/+104
| | | | | | | | In case there is a fixed pci devlink handle "pci/pci/0000:00:10.0" on the system (initial network namespace), it is moved to a working network namespace. Signed-off-by: Jiri Pirko <jiri@mellanox.com>
* sys/linux: extend devlink for fixed pci handleJiri Pirko2019-11-031-5/+5
| | | | | | Extend devlink to also work with fixed pci handle "pci/0000:00:10.0". Signed-off-by: Jiri Pirko <jiri@mellanox.com>
* sys/linux: add forgotten SECCOMP_FILTER_FLAG_NEW_LISTENER bitsJiri Pirko2019-11-032-2/+12
| | | | Signed-off-by: Jiri Pirko <jiri@mellanox.com>
* sys/linux: add missing arm/386 CAN constsDmitry Vyukov2019-11-022-2/+40
|
* sys/linux: extend CAN descriptionsDmitry Vyukov2019-11-022-5/+97
|
* sys/linux: use template base to simplify pppox descriptionPaul Chaignon2019-11-021-5/+5
| | | | | Co-authored-by: Dmitry Vyukov <dvyukov@google.com> Signed-off-by: Paul Chaignon <paul.chaignon@orange.com>
* pkg/compiler: define fileoff templatePaul Chaignon2019-11-011-14/+14
| | | | Signed-off-by: Paul Chaignon <paul.chaignon@orange.com>
* executor: update kcov remote coverage interfaceAndrey Konovalov2019-10-281-6/+12
| | | | The kcov extension is being upstreamed and the interfaces has been changed.
* sys/linux: add SECCOMP_FILTER_FLAG_NEW_LISTENER supportDmitry Vyukov2019-10-282-10/+35
|