aboutsummaryrefslogtreecommitdiffstats
path: root/executor
Commit message (Collapse)AuthorAgeFilesLines
* sys/linux: refine few framebuffer/kbd ioctlsDmitry Vyukov2019-12-072-35/+60
|
* executor: don't use static_assertDmitry Vyukov2019-12-061-2/+2
| | | | | Not all gcc's everywhere support C++11 by default. We have some old on Travis.
* executor: fix remote coverage setupDmitry Vyukov2019-12-061-15/+39
| | | | | | | | | Layout of kcov_remote_arg is ABI-dependent, as the result when 32-bit userspace talks to 64-bit kernel it does not work out of the box. We need both statically different structs for kernels of different bitnesses, but also dynamic dispatch because a 32-bit userspace can talk to both 64-bit and 32-bit kernels.
* sys/netbsd: fix the build issues with posix_spawnSiddharth Muralee2019-12-051-1/+1
|
* sys/netbsd: add the newer vfork syscallR3x2019-12-052-1/+2
|
* sys/netbsd: Added posix_spawn and fork syscallsR3x2019-12-053-1/+4
|
* sys/linux: more tuning of tty devicesDmitry Vyukov2019-12-032-10/+25
| | | | | | | | | Enable /dev/tty{1-6}. These seem to be special. Few first connected to framebuffers. But the rest seem to be different from e.g. tty20 anyway. Also /dev/tty is different from the rest. /dev/ttyS3 and /dev/ttyprintk are different. Properly pair BSD pty terminals.
* sys/linux: add /dev/fb1Dmitry Vyukov2019-12-032-5/+10
| | | | qemu -vga cirrus results in /dev/fb0 and /dev/fb1.
* sys/linux: add binderfs descriptionsDmitry Vyukov2019-12-022-5/+10
|
* sys/linux: add /dev/fb descriptionsDmitry Vyukov2019-12-022-5/+125
| | | | Framebuffer descriptions + open more tty dev nodes.
* sys/linux: regenerate constsDmitry Vyukov2019-12-021-1/+1
| | | | | Regenerate consts now that make extract is fixed. Interestingly some arm consts have changed (arm/i386 abi difference?).
* sys/linux: more device refinementsDmitry Vyukov2019-12-012-5/+45
| | | | | Add some mode /dev/nodes* Add anoter midi device.
* sys/linux: add /dev/ptp descriptionsDmitry Vyukov2019-12-012-5/+85
|
* sys/linux: refine some device typesDmitry Vyukov2019-12-012-10/+25
| | | | | | /dev/pmem0 is a block device. /dev/adsp1 is the same as /dev/dsp1. dmmidi,admmidi,amidi is the same as /dev/snd/midi.
* sys/linux: add /dev/snd/pcm* descriptionsDmitry Vyukov2019-12-012-5/+185
|
* 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>