aboutsummaryrefslogtreecommitdiffstats
path: root/executor/syscalls_linux.h
Commit message (Collapse)AuthorAgeFilesLines
* 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
|
* sys/linux: use optional in tun descriptionsDmitry Vyukov2018-05-171-5/+5
|
* sys/linux: fix duplicate field in structDmitry Vyukov2018-05-171-5/+5
|
* 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: move generate files to separate packagesDmitry Vyukov2018-05-051-5/+5
| | | | | | | | | 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-031-5/+5
| | | | Update #538
* 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.
* 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>
* sys/linux: add f2fs supportDmitry Vyukov2018-04-191-10/+15
|
* sys/linux: add i2c generic descriptionDenis Efremov2018-04-191-10/+60
| | | | Basic description of i2c from SIL2LinuxMP workshop.
* sys/linux/socket_netlink_route: update RTM_GETSTATS PAYLOAD formatHangbin Liu2018-04-191-5/+5
| | | | | | | | Update RTM_GETSTATS PAYLOAD format. Also fix ipv4_getroute and ipmr_getroute PAYLOAD format. Signed-off-by: Hangbin Liu <liuhangbin@gmail.com>
* executor: add two slave interfaces for bridge,bond,teamHangbin Liu2018-04-131-5/+5
| | | | | | | | Bridge device is used for forwarding. Bond/team device is used for load balance and fail over. So it would make more sense to add two slave interfaces for these devices. Signed-off-by: Hangbin Liu <liuhangbin@gmail.com>
* sys/linux/rdma_cm: remove RDMA_PS_SDPHangbin Liu2018-04-131-5/+5
| | | | | | | RDMA_PS_SDP has been removed since commit 1b90d3002e3ee ("RDMA/CMA: remove RDMA_PS_SDP") Signed-off-by: Hangbin Liu <liuhangbin@gmail.com>
* sys/linux: add veth devices to devnamesDmitry Vyukov2018-04-111-5/+5
| | | | Also comment new veth code for future me.
* sys/linux: improve team descriptionsDmitry Vyukov2018-04-061-10/+15
| | | | | | | | | | | | | | | | | | | 1. Create ifindex_team, because TEAM_ATTR_TEAM_IFINDEX must always point to a team device. 2. Remove output only attributes like team_attr_item_port, TEAM_ATTR_LIST_PORT, TEAM_ATTR_OPTION_CHANGED. 3. Restructure team_nl_option_policy: we always want TEAM_ATTR_OPTION_NAME/TYPE/DATA + optionally TEAM_ATTR_OPTION_ARRAY_INDEX and TEAM_ATTR_OPTION_PORT_IFINDEX. 4. Provide specialized team_nl_option_policy_per_port and team_nl_option_policy_array. 5. Make team_attr_option varlen. 6. Remove unnecessary indirection via team_attr_list_option/team_attr_list_port. 7. Fix data type for bpf_hash_func and lb_tx_hash_to_port_mapping.
* sys/linux: add netlink generic team descriptionsHangbin Liu2018-04-061-10/+35
| | | | Signed-off-by: Hangbin Liu <liuhangbin@gmail.com>
* sys/linux: test various binfmt's in execveDmitry Vyukov2018-04-021-10/+47
|
* pkg/compiler: support non-zero terminated filenamesDmitry Vyukov2018-04-021-5/+5
| | | | | | | | | | | | | | | Now file names become: string[filename] with a possibility of using other string features: stringnoz[filename] string[filename, CONST_SIZE] and filename is left as type alias as it is commonly used: type filename string[filename]
* sys/linux: add support for reading partition tablesDmitry Vyukov2018-04-011-10/+15
|
* sys/linux: fix misspelled const nameDmitry Vyukov2018-03-311-5/+5
| | | | Fixes #552
* sys/linux: add support for mounting filesystem imagesDmitry Vyukov2018-03-301-10/+80
|
* sys/linux: regenerate filesDmitry Vyukov2018-03-291-5/+5
| | | | | A previous commit included some non-regenerateed files. Regenerate them now.
* executor: rework cgroups supportDmitry Vyukov2018-03-271-10/+15
| | | | | | | | | | Turns out creating a cgroup per test is too expensive. Moreover, it leads to hanged tasks as cgroup destruction is asynchronous and overloads kernel work queues. Create only a single cgroup per proc, but restrict descriptions to mess with that single group, instead test processes create own nested cgroups for messing.
* sys/linux: add IPVS descriptionsDmitry Vyukov2018-03-261-10/+195
| | | | Update #533
* sys/linux: add cgroup descriptionsDmitry Vyukov2018-03-251-10/+75
|
* sys/linux: add guehdr for udp packetsDmitry Vyukov2018-03-211-5/+5
|
* sys/linux: add netlink fou descriptionsDmitry Vyukov2018-03-211-10/+30
|
* sys/linux: fix nlattr alignmentDmitry Vyukov2018-03-211-5/+5
| | | | It seems that alignment is never present in the nlattr.
* all: fix gometalinter warningsDmitry Vyukov2018-03-081-5/+5
| | | | Fix typos, non-canonical code, remove dead code, etc.
* sys/linux: add descriptions for /dev/infiniband/rdma_cmDmitry Vyukov2018-03-061-10/+44
| | | | Also fix uffd and bluetooth consts while we are here.
* sys/linux: fix perf_event_attr layoutDmitry Vyukov2018-03-061-5/+5
|
* sys/linux: add syz_init_net_socket syscallDmitry Vyukov2018-03-051-48/+44
| | | | | | | | | | | 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.
* sys/linux: make ifreq template, fix some usagesDmitry Vyukov2018-03-051-5/+5
|
* sys/linux: use size attributes on structsDmitry Vyukov2018-03-051-5/+5
| | | | | | | | | | | 1. Add size attribte on sockaddr. 2. Remove sockaddr's that are larger than 16 bytes from sockaddr. 3. Add size attribute on sockaddr_storage which wasn't actually 128 bytes. 4. Add size attribute to ifreq. 5. Fix ifmap field types as uncovered by the size attributes. 6. Fix sockaddr_storage_tcp from struct to union which is should be. 7. Make sockaddr_un_file fixed size as it should be. 8. Fix some explicit paddings that were only correct for 64 bits.
* sys/linux: a bunch of assorted improvements and fixesDmitry Vyukov2018-03-051-33/+13
|
* sys/linux: add remaining aux netfilter descriptionsDmitry Vyukov2018-03-011-10/+98
|
* sys/linux: few assorted additionsDmitry Vyukov2018-02-261-9/+17
|