diff options
| author | Dmitry Vyukov <dvyukov@google.com> | 2018-12-29 18:56:03 +0100 |
|---|---|---|
| committer | Dmitry Vyukov <dvyukov@google.com> | 2018-12-29 19:22:35 +0100 |
| commit | 79059de1772b74a9068e3b6a907a692e3414a369 (patch) | |
| tree | 0bc4e99568f0b44674d97e885cde24fce1c895a3 /sys/linux | |
| parent | 6b761be0590c6fef2f7d752054bf3cd04ee0bc73 (diff) | |
sys/linux: misc assorted improvements
Add new bpf consts/commands.
Refine bluetooth descriptions.
Remove removed crypto consts.
Diffstat (limited to 'sys/linux')
| -rw-r--r-- | sys/linux/bpf.txt | 5 | ||||
| -rw-r--r-- | sys/linux/bpf_386.const | 12 | ||||
| -rw-r--r-- | sys/linux/bpf_amd64.const | 12 | ||||
| -rw-r--r-- | sys/linux/bpf_arm.const | 12 | ||||
| -rw-r--r-- | sys/linux/bpf_arm64.const | 12 | ||||
| -rw-r--r-- | sys/linux/bpf_ppc64le.const | 12 | ||||
| -rw-r--r-- | sys/linux/gen/386.go | 53 | ||||
| -rw-r--r-- | sys/linux/gen/amd64.go | 53 | ||||
| -rw-r--r-- | sys/linux/gen/arm.go | 53 | ||||
| -rw-r--r-- | sys/linux/gen/arm64.go | 53 | ||||
| -rw-r--r-- | sys/linux/gen/ppc64le.go | 53 | ||||
| -rw-r--r-- | sys/linux/socket_alg.txt | 2 | ||||
| -rw-r--r-- | sys/linux/socket_alg_386.const | 2 | ||||
| -rw-r--r-- | sys/linux/socket_alg_amd64.const | 2 | ||||
| -rw-r--r-- | sys/linux/socket_alg_arm.const | 2 | ||||
| -rw-r--r-- | sys/linux/socket_alg_arm64.const | 2 | ||||
| -rw-r--r-- | sys/linux/socket_alg_ppc64le.const | 2 | ||||
| -rw-r--r-- | sys/linux/socket_bluetooth.txt | 22 | ||||
| -rw-r--r-- | sys/linux/socket_bluetooth_386.const | 4 | ||||
| -rw-r--r-- | sys/linux/socket_bluetooth_amd64.const | 4 | ||||
| -rw-r--r-- | sys/linux/socket_bluetooth_arm.const | 4 | ||||
| -rw-r--r-- | sys/linux/socket_bluetooth_arm64.const | 4 | ||||
| -rw-r--r-- | sys/linux/socket_bluetooth_ppc64le.const | 4 | ||||
| -rw-r--r-- | sys/linux/sys.txt | 3 |
24 files changed, 282 insertions, 105 deletions
diff --git a/sys/linux/bpf.txt b/sys/linux/bpf.txt index 0d91c2f7a..21dd512c7 100644 --- a/sys/linux/bpf.txt +++ b/sys/linux/bpf.txt @@ -41,6 +41,7 @@ bpf$BPF_RAW_TRACEPOINT_OPEN(cmd const[BPF_RAW_TRACEPOINT_OPEN], arg ptr[in, bpf_ bpf$BPF_BTF_LOAD(cmd const[BPF_BTF_LOAD], arg ptr[in, bpf_btf_load], size len[arg]) fd_btf bpf$BPF_BTF_GET_FD_BY_ID(cmd const[BPF_BTF_GET_FD_BY_ID], arg ptr[in, bpf_btf_id], size len[arg]) fd_btf bpf$BPF_TASK_FD_QUERY(cmd const[BPF_TASK_FD_QUERY], arg ptr[inout, bpf_task_fd_query], size len[arg]) +bpf$BPF_MAP_LOOKUP_AND_DELETE_ELEM(cmd const[BPF_MAP_LOOKUP_AND_DELETE_ELEM], arg ptr[in, bpf_map_lookup_arg], size len[arg]) bpf_map_create_arg { type flags[bpf_map_type, int32] @@ -419,9 +420,9 @@ bpf_task_fd_query { probe_addr const[0, int64] } -bpf_map_type = BPF_MAP_TYPE_HASH, BPF_MAP_TYPE_ARRAY, BPF_MAP_TYPE_PROG_ARRAY, BPF_MAP_TYPE_PERF_EVENT_ARRAY, BPF_MAP_TYPE_STACK_TRACE, BPF_MAP_TYPE_CGROUP_ARRAY, BPF_MAP_TYPE_PERCPU_HASH, BPF_MAP_TYPE_PERCPU_ARRAY, BPF_MAP_TYPE_LRU_HASH, BPF_MAP_TYPE_LRU_PERCPU_HASH, BPF_MAP_TYPE_LPM_TRIE, BPF_MAP_TYPE_ARRAY_OF_MAPS, BPF_MAP_TYPE_HASH_OF_MAPS, BPF_MAP_TYPE_DEVMAP, BPF_MAP_TYPE_SOCKMAP, BPF_MAP_TYPE_CPUMAP +bpf_map_type = BPF_MAP_TYPE_HASH, BPF_MAP_TYPE_ARRAY, BPF_MAP_TYPE_PROG_ARRAY, BPF_MAP_TYPE_PERF_EVENT_ARRAY, BPF_MAP_TYPE_STACK_TRACE, BPF_MAP_TYPE_CGROUP_ARRAY, BPF_MAP_TYPE_PERCPU_HASH, BPF_MAP_TYPE_PERCPU_ARRAY, BPF_MAP_TYPE_LRU_HASH, BPF_MAP_TYPE_LRU_PERCPU_HASH, BPF_MAP_TYPE_LPM_TRIE, BPF_MAP_TYPE_ARRAY_OF_MAPS, BPF_MAP_TYPE_HASH_OF_MAPS, BPF_MAP_TYPE_DEVMAP, BPF_MAP_TYPE_SOCKMAP, BPF_MAP_TYPE_CPUMAP, BPF_MAP_TYPE_XSKMAP, BPF_MAP_TYPE_SOCKHASH, BPF_MAP_TYPE_CGROUP_STORAGE, BPF_MAP_TYPE_REUSEPORT_SOCKARRAY, BPF_MAP_TYPE_PERCPU_CGROUP_STORAGE, BPF_MAP_TYPE_QUEUE, BPF_MAP_TYPE_STACK bpf_map_flags = BPF_ANY, BPF_NOEXIST, BPF_EXIST -bpf_prog_type = BPF_PROG_TYPE_SOCKET_FILTER, BPF_PROG_TYPE_KPROBE, BPF_PROG_TYPE_SCHED_CLS, BPF_PROG_TYPE_SCHED_ACT, BPF_PROG_TYPE_TRACEPOINT, BPF_PROG_TYPE_XDP, BPF_PROG_TYPE_PERF_EVENT, BPF_PROG_TYPE_CGROUP_SKB, BPF_PROG_TYPE_CGROUP_SOCK, BPF_PROG_TYPE_LWT_IN, BPF_PROG_TYPE_LWT_OUT, BPF_PROG_TYPE_LWT_XMIT, BPF_PROG_TYPE_SOCK_OPS, BPF_PROG_TYPE_SK_SKB, BPF_PROG_TYPE_CGROUP_DEVICE, BPF_PROG_TYPE_SK_MSG, BPF_PROG_TYPE_RAW_TRACEPOINT, BPF_PROG_TYPE_CGROUP_SOCK_ADDR +bpf_prog_type = BPF_PROG_TYPE_SOCKET_FILTER, BPF_PROG_TYPE_KPROBE, BPF_PROG_TYPE_SCHED_CLS, BPF_PROG_TYPE_SCHED_ACT, BPF_PROG_TYPE_TRACEPOINT, BPF_PROG_TYPE_XDP, BPF_PROG_TYPE_PERF_EVENT, BPF_PROG_TYPE_CGROUP_SKB, BPF_PROG_TYPE_CGROUP_SOCK, BPF_PROG_TYPE_LWT_IN, BPF_PROG_TYPE_LWT_OUT, BPF_PROG_TYPE_LWT_XMIT, BPF_PROG_TYPE_SOCK_OPS, BPF_PROG_TYPE_SK_SKB, BPF_PROG_TYPE_CGROUP_DEVICE, BPF_PROG_TYPE_SK_MSG, BPF_PROG_TYPE_RAW_TRACEPOINT, BPF_PROG_TYPE_CGROUP_SOCK_ADDR, BPF_PROG_TYPE_LWT_SEG6LOCAL, BPF_PROG_TYPE_LIRC_MODE2, BPF_PROG_TYPE_SK_REUSEPORT, BPF_PROG_TYPE_FLOW_DISSECTOR map_flags = BPF_F_NO_PREALLOC, BPF_F_NO_COMMON_LRU, BPF_F_NUMA_NODE, BPF_F_RDONLY, BPF_F_WRONLY, BPF_F_STACK_BUILD_ID bpf_attach_type = BPF_CGROUP_INET_INGRESS, BPF_CGROUP_INET_EGRESS, BPF_CGROUP_INET_SOCK_CREATE, BPF_CGROUP_SOCK_OPS, BPF_SK_SKB_STREAM_PARSER, BPF_SK_SKB_STREAM_VERDICT, BPF_CGROUP_DEVICE, BPF_SK_MSG_VERDICT, BPF_CGROUP_INET4_BIND, BPF_CGROUP_INET6_BIND, BPF_CGROUP_INET4_CONNECT, BPF_CGROUP_INET6_CONNECT, BPF_CGROUP_INET4_POST_BIND, BPF_CGROUP_INET6_POST_BIND bpf_prog_load_flags = BPF_F_STRICT_ALIGNMENT diff --git a/sys/linux/bpf_386.const b/sys/linux/bpf_386.const index 1886205e6..87177c744 100644 --- a/sys/linux/bpf_386.const +++ b/sys/linux/bpf_386.const @@ -60,10 +60,12 @@ BPF_MAP_DELETE_ELEM = 3 BPF_MAP_GET_FD_BY_ID = 14 BPF_MAP_GET_NEXT_ID = 12 BPF_MAP_GET_NEXT_KEY = 4 +BPF_MAP_LOOKUP_AND_DELETE_ELEM = 21 BPF_MAP_LOOKUP_ELEM = 1 BPF_MAP_TYPE_ARRAY = 2 BPF_MAP_TYPE_ARRAY_OF_MAPS = 12 BPF_MAP_TYPE_CGROUP_ARRAY = 8 +BPF_MAP_TYPE_CGROUP_STORAGE = 19 BPF_MAP_TYPE_CPUMAP = 16 BPF_MAP_TYPE_DEVMAP = 14 BPF_MAP_TYPE_HASH = 1 @@ -72,11 +74,17 @@ BPF_MAP_TYPE_LPM_TRIE = 11 BPF_MAP_TYPE_LRU_HASH = 9 BPF_MAP_TYPE_LRU_PERCPU_HASH = 10 BPF_MAP_TYPE_PERCPU_ARRAY = 6 +BPF_MAP_TYPE_PERCPU_CGROUP_STORAGE = 21 BPF_MAP_TYPE_PERCPU_HASH = 5 BPF_MAP_TYPE_PERF_EVENT_ARRAY = 4 BPF_MAP_TYPE_PROG_ARRAY = 3 +BPF_MAP_TYPE_QUEUE = 22 +BPF_MAP_TYPE_REUSEPORT_SOCKARRAY = 20 +BPF_MAP_TYPE_SOCKHASH = 18 BPF_MAP_TYPE_SOCKMAP = 15 +BPF_MAP_TYPE_STACK = 23 BPF_MAP_TYPE_STACK_TRACE = 7 +BPF_MAP_TYPE_XSKMAP = 17 BPF_MAP_UPDATE_ELEM = 2 BPF_MEM0 = 3 BPF_MOD0 = 9 @@ -100,15 +108,19 @@ BPF_PROG_TYPE_CGROUP_DEVICE = 15 BPF_PROG_TYPE_CGROUP_SKB = 8 BPF_PROG_TYPE_CGROUP_SOCK = 9 BPF_PROG_TYPE_CGROUP_SOCK_ADDR = 18 +BPF_PROG_TYPE_FLOW_DISSECTOR = 22 BPF_PROG_TYPE_KPROBE = 2 +BPF_PROG_TYPE_LIRC_MODE2 = 20 BPF_PROG_TYPE_LWT_IN = 10 BPF_PROG_TYPE_LWT_OUT = 11 +BPF_PROG_TYPE_LWT_SEG6LOCAL = 19 BPF_PROG_TYPE_LWT_XMIT = 12 BPF_PROG_TYPE_PERF_EVENT = 7 BPF_PROG_TYPE_RAW_TRACEPOINT = 17 BPF_PROG_TYPE_SCHED_ACT = 4 BPF_PROG_TYPE_SCHED_CLS = 3 BPF_PROG_TYPE_SK_MSG = 16 +BPF_PROG_TYPE_SK_REUSEPORT = 21 BPF_PROG_TYPE_SK_SKB = 14 BPF_PROG_TYPE_SOCKET_FILTER = 1 BPF_PROG_TYPE_SOCK_OPS = 13 diff --git a/sys/linux/bpf_amd64.const b/sys/linux/bpf_amd64.const index e9f89ee75..5ac5525f9 100644 --- a/sys/linux/bpf_amd64.const +++ b/sys/linux/bpf_amd64.const @@ -60,10 +60,12 @@ BPF_MAP_DELETE_ELEM = 3 BPF_MAP_GET_FD_BY_ID = 14 BPF_MAP_GET_NEXT_ID = 12 BPF_MAP_GET_NEXT_KEY = 4 +BPF_MAP_LOOKUP_AND_DELETE_ELEM = 21 BPF_MAP_LOOKUP_ELEM = 1 BPF_MAP_TYPE_ARRAY = 2 BPF_MAP_TYPE_ARRAY_OF_MAPS = 12 BPF_MAP_TYPE_CGROUP_ARRAY = 8 +BPF_MAP_TYPE_CGROUP_STORAGE = 19 BPF_MAP_TYPE_CPUMAP = 16 BPF_MAP_TYPE_DEVMAP = 14 BPF_MAP_TYPE_HASH = 1 @@ -72,11 +74,17 @@ BPF_MAP_TYPE_LPM_TRIE = 11 BPF_MAP_TYPE_LRU_HASH = 9 BPF_MAP_TYPE_LRU_PERCPU_HASH = 10 BPF_MAP_TYPE_PERCPU_ARRAY = 6 +BPF_MAP_TYPE_PERCPU_CGROUP_STORAGE = 21 BPF_MAP_TYPE_PERCPU_HASH = 5 BPF_MAP_TYPE_PERF_EVENT_ARRAY = 4 BPF_MAP_TYPE_PROG_ARRAY = 3 +BPF_MAP_TYPE_QUEUE = 22 +BPF_MAP_TYPE_REUSEPORT_SOCKARRAY = 20 +BPF_MAP_TYPE_SOCKHASH = 18 BPF_MAP_TYPE_SOCKMAP = 15 +BPF_MAP_TYPE_STACK = 23 BPF_MAP_TYPE_STACK_TRACE = 7 +BPF_MAP_TYPE_XSKMAP = 17 BPF_MAP_UPDATE_ELEM = 2 BPF_MEM0 = 3 BPF_MOD0 = 9 @@ -100,15 +108,19 @@ BPF_PROG_TYPE_CGROUP_DEVICE = 15 BPF_PROG_TYPE_CGROUP_SKB = 8 BPF_PROG_TYPE_CGROUP_SOCK = 9 BPF_PROG_TYPE_CGROUP_SOCK_ADDR = 18 +BPF_PROG_TYPE_FLOW_DISSECTOR = 22 BPF_PROG_TYPE_KPROBE = 2 +BPF_PROG_TYPE_LIRC_MODE2 = 20 BPF_PROG_TYPE_LWT_IN = 10 BPF_PROG_TYPE_LWT_OUT = 11 +BPF_PROG_TYPE_LWT_SEG6LOCAL = 19 BPF_PROG_TYPE_LWT_XMIT = 12 BPF_PROG_TYPE_PERF_EVENT = 7 BPF_PROG_TYPE_RAW_TRACEPOINT = 17 BPF_PROG_TYPE_SCHED_ACT = 4 BPF_PROG_TYPE_SCHED_CLS = 3 BPF_PROG_TYPE_SK_MSG = 16 +BPF_PROG_TYPE_SK_REUSEPORT = 21 BPF_PROG_TYPE_SK_SKB = 14 BPF_PROG_TYPE_SOCKET_FILTER = 1 BPF_PROG_TYPE_SOCK_OPS = 13 diff --git a/sys/linux/bpf_arm.const b/sys/linux/bpf_arm.const index 1bd590ea6..20b477f21 100644 --- a/sys/linux/bpf_arm.const +++ b/sys/linux/bpf_arm.const @@ -60,10 +60,12 @@ BPF_MAP_DELETE_ELEM = 3 BPF_MAP_GET_FD_BY_ID = 14 BPF_MAP_GET_NEXT_ID = 12 BPF_MAP_GET_NEXT_KEY = 4 +BPF_MAP_LOOKUP_AND_DELETE_ELEM = 21 BPF_MAP_LOOKUP_ELEM = 1 BPF_MAP_TYPE_ARRAY = 2 BPF_MAP_TYPE_ARRAY_OF_MAPS = 12 BPF_MAP_TYPE_CGROUP_ARRAY = 8 +BPF_MAP_TYPE_CGROUP_STORAGE = 19 BPF_MAP_TYPE_CPUMAP = 16 BPF_MAP_TYPE_DEVMAP = 14 BPF_MAP_TYPE_HASH = 1 @@ -72,11 +74,17 @@ BPF_MAP_TYPE_LPM_TRIE = 11 BPF_MAP_TYPE_LRU_HASH = 9 BPF_MAP_TYPE_LRU_PERCPU_HASH = 10 BPF_MAP_TYPE_PERCPU_ARRAY = 6 +BPF_MAP_TYPE_PERCPU_CGROUP_STORAGE = 21 BPF_MAP_TYPE_PERCPU_HASH = 5 BPF_MAP_TYPE_PERF_EVENT_ARRAY = 4 BPF_MAP_TYPE_PROG_ARRAY = 3 +BPF_MAP_TYPE_QUEUE = 22 +BPF_MAP_TYPE_REUSEPORT_SOCKARRAY = 20 +BPF_MAP_TYPE_SOCKHASH = 18 BPF_MAP_TYPE_SOCKMAP = 15 +BPF_MAP_TYPE_STACK = 23 BPF_MAP_TYPE_STACK_TRACE = 7 +BPF_MAP_TYPE_XSKMAP = 17 BPF_MAP_UPDATE_ELEM = 2 BPF_MEM0 = 3 BPF_MOD0 = 9 @@ -100,15 +108,19 @@ BPF_PROG_TYPE_CGROUP_DEVICE = 15 BPF_PROG_TYPE_CGROUP_SKB = 8 BPF_PROG_TYPE_CGROUP_SOCK = 9 BPF_PROG_TYPE_CGROUP_SOCK_ADDR = 18 +BPF_PROG_TYPE_FLOW_DISSECTOR = 22 BPF_PROG_TYPE_KPROBE = 2 +BPF_PROG_TYPE_LIRC_MODE2 = 20 BPF_PROG_TYPE_LWT_IN = 10 BPF_PROG_TYPE_LWT_OUT = 11 +BPF_PROG_TYPE_LWT_SEG6LOCAL = 19 BPF_PROG_TYPE_LWT_XMIT = 12 BPF_PROG_TYPE_PERF_EVENT = 7 BPF_PROG_TYPE_RAW_TRACEPOINT = 17 BPF_PROG_TYPE_SCHED_ACT = 4 BPF_PROG_TYPE_SCHED_CLS = 3 BPF_PROG_TYPE_SK_MSG = 16 +BPF_PROG_TYPE_SK_REUSEPORT = 21 BPF_PROG_TYPE_SK_SKB = 14 BPF_PROG_TYPE_SOCKET_FILTER = 1 BPF_PROG_TYPE_SOCK_OPS = 13 diff --git a/sys/linux/bpf_arm64.const b/sys/linux/bpf_arm64.const index f4f6b44a4..b1f48f265 100644 --- a/sys/linux/bpf_arm64.const +++ b/sys/linux/bpf_arm64.const @@ -60,10 +60,12 @@ BPF_MAP_DELETE_ELEM = 3 BPF_MAP_GET_FD_BY_ID = 14 BPF_MAP_GET_NEXT_ID = 12 BPF_MAP_GET_NEXT_KEY = 4 +BPF_MAP_LOOKUP_AND_DELETE_ELEM = 21 BPF_MAP_LOOKUP_ELEM = 1 BPF_MAP_TYPE_ARRAY = 2 BPF_MAP_TYPE_ARRAY_OF_MAPS = 12 BPF_MAP_TYPE_CGROUP_ARRAY = 8 +BPF_MAP_TYPE_CGROUP_STORAGE = 19 BPF_MAP_TYPE_CPUMAP = 16 BPF_MAP_TYPE_DEVMAP = 14 BPF_MAP_TYPE_HASH = 1 @@ -72,11 +74,17 @@ BPF_MAP_TYPE_LPM_TRIE = 11 BPF_MAP_TYPE_LRU_HASH = 9 BPF_MAP_TYPE_LRU_PERCPU_HASH = 10 BPF_MAP_TYPE_PERCPU_ARRAY = 6 +BPF_MAP_TYPE_PERCPU_CGROUP_STORAGE = 21 BPF_MAP_TYPE_PERCPU_HASH = 5 BPF_MAP_TYPE_PERF_EVENT_ARRAY = 4 BPF_MAP_TYPE_PROG_ARRAY = 3 +BPF_MAP_TYPE_QUEUE = 22 +BPF_MAP_TYPE_REUSEPORT_SOCKARRAY = 20 +BPF_MAP_TYPE_SOCKHASH = 18 BPF_MAP_TYPE_SOCKMAP = 15 +BPF_MAP_TYPE_STACK = 23 BPF_MAP_TYPE_STACK_TRACE = 7 +BPF_MAP_TYPE_XSKMAP = 17 BPF_MAP_UPDATE_ELEM = 2 BPF_MEM0 = 3 BPF_MOD0 = 9 @@ -100,15 +108,19 @@ BPF_PROG_TYPE_CGROUP_DEVICE = 15 BPF_PROG_TYPE_CGROUP_SKB = 8 BPF_PROG_TYPE_CGROUP_SOCK = 9 BPF_PROG_TYPE_CGROUP_SOCK_ADDR = 18 +BPF_PROG_TYPE_FLOW_DISSECTOR = 22 BPF_PROG_TYPE_KPROBE = 2 +BPF_PROG_TYPE_LIRC_MODE2 = 20 BPF_PROG_TYPE_LWT_IN = 10 BPF_PROG_TYPE_LWT_OUT = 11 +BPF_PROG_TYPE_LWT_SEG6LOCAL = 19 BPF_PROG_TYPE_LWT_XMIT = 12 BPF_PROG_TYPE_PERF_EVENT = 7 BPF_PROG_TYPE_RAW_TRACEPOINT = 17 BPF_PROG_TYPE_SCHED_ACT = 4 BPF_PROG_TYPE_SCHED_CLS = 3 BPF_PROG_TYPE_SK_MSG = 16 +BPF_PROG_TYPE_SK_REUSEPORT = 21 BPF_PROG_TYPE_SK_SKB = 14 BPF_PROG_TYPE_SOCKET_FILTER = 1 BPF_PROG_TYPE_SOCK_OPS = 13 diff --git a/sys/linux/bpf_ppc64le.const b/sys/linux/bpf_ppc64le.const index fa000331f..4aada76d2 100644 --- a/sys/linux/bpf_ppc64le.const +++ b/sys/linux/bpf_ppc64le.const @@ -60,10 +60,12 @@ BPF_MAP_DELETE_ELEM = 3 BPF_MAP_GET_FD_BY_ID = 14 BPF_MAP_GET_NEXT_ID = 12 BPF_MAP_GET_NEXT_KEY = 4 +BPF_MAP_LOOKUP_AND_DELETE_ELEM = 21 BPF_MAP_LOOKUP_ELEM = 1 BPF_MAP_TYPE_ARRAY = 2 BPF_MAP_TYPE_ARRAY_OF_MAPS = 12 BPF_MAP_TYPE_CGROUP_ARRAY = 8 +BPF_MAP_TYPE_CGROUP_STORAGE = 19 BPF_MAP_TYPE_CPUMAP = 16 BPF_MAP_TYPE_DEVMAP = 14 BPF_MAP_TYPE_HASH = 1 @@ -72,11 +74,17 @@ BPF_MAP_TYPE_LPM_TRIE = 11 BPF_MAP_TYPE_LRU_HASH = 9 BPF_MAP_TYPE_LRU_PERCPU_HASH = 10 BPF_MAP_TYPE_PERCPU_ARRAY = 6 +BPF_MAP_TYPE_PERCPU_CGROUP_STORAGE = 21 BPF_MAP_TYPE_PERCPU_HASH = 5 BPF_MAP_TYPE_PERF_EVENT_ARRAY = 4 BPF_MAP_TYPE_PROG_ARRAY = 3 +BPF_MAP_TYPE_QUEUE = 22 +BPF_MAP_TYPE_REUSEPORT_SOCKARRAY = 20 +BPF_MAP_TYPE_SOCKHASH = 18 BPF_MAP_TYPE_SOCKMAP = 15 +BPF_MAP_TYPE_STACK = 23 BPF_MAP_TYPE_STACK_TRACE = 7 +BPF_MAP_TYPE_XSKMAP = 17 BPF_MAP_UPDATE_ELEM = 2 BPF_MEM0 = 3 BPF_MOD0 = 9 @@ -100,15 +108,19 @@ BPF_PROG_TYPE_CGROUP_DEVICE = 15 BPF_PROG_TYPE_CGROUP_SKB = 8 BPF_PROG_TYPE_CGROUP_SOCK = 9 BPF_PROG_TYPE_CGROUP_SOCK_ADDR = 18 +BPF_PROG_TYPE_FLOW_DISSECTOR = 22 BPF_PROG_TYPE_KPROBE = 2 +BPF_PROG_TYPE_LIRC_MODE2 = 20 BPF_PROG_TYPE_LWT_IN = 10 BPF_PROG_TYPE_LWT_OUT = 11 +BPF_PROG_TYPE_LWT_SEG6LOCAL = 19 BPF_PROG_TYPE_LWT_XMIT = 12 BPF_PROG_TYPE_PERF_EVENT = 7 BPF_PROG_TYPE_RAW_TRACEPOINT = 17 BPF_PROG_TYPE_SCHED_ACT = 4 BPF_PROG_TYPE_SCHED_CLS = 3 BPF_PROG_TYPE_SK_MSG = 16 +BPF_PROG_TYPE_SK_REUSEPORT = 21 BPF_PROG_TYPE_SK_SKB = 14 BPF_PROG_TYPE_SOCKET_FILTER = 1 BPF_PROG_TYPE_SOCK_OPS = 13 diff --git a/sys/linux/gen/386.go b/sys/linux/gen/386.go index f84a2a55f..e33a60658 100644 --- a/sys/linux/gen/386.go +++ b/sys/linux/gen/386.go @@ -1063,7 +1063,7 @@ var structDescs_386 = []*KeyedStruct{ &StructType{Key: StructKey{Name: "bpf_framed_program"}, FldName: "framed"}, }}}, {Key: StructKey{Name: "bpf_map_create_arg"}, Desc: &StructDesc{TypeCommon: TypeCommon{TypeName: "bpf_map_create_arg", TypeSize: 44}, Fields: []Type{ - &FlagsType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "bpf_map_type", FldName: "type", TypeSize: 4}}, Vals: []uint64{1, 2, 3, 4, 7, 8, 5, 6, 9, 10, 11, 12, 13, 14, 15, 16}}, + &FlagsType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "bpf_map_type", FldName: "type", TypeSize: 4}}, Vals: []uint64{1, 2, 3, 4, 7, 8, 5, 6, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23}}, &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int32", FldName: "ksize", TypeSize: 4}}}, &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int32", FldName: "vsize", TypeSize: 4}}}, &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int32", FldName: "max", TypeSize: 4}}}, @@ -1129,7 +1129,7 @@ var structDescs_386 = []*KeyedStruct{ &StructType{Key: StructKey{Name: "fs_opt[\"mode\", fmt[oct, int32]]"}, FldName: "mode"}, }}}, {Key: StructKey{Name: "bpf_prog"}, Desc: &StructDesc{TypeCommon: TypeCommon{TypeName: "bpf_prog", TypeSize: 72}, Fields: []Type{ - &FlagsType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "bpf_prog_type", FldName: "type", TypeSize: 4}}, Vals: []uint64{1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18}}, + &FlagsType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "bpf_prog_type", FldName: "type", TypeSize: 4}}, Vals: []uint64{1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22}}, &LenType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "bytesize8", FldName: "ninsn", TypeSize: 4}}, BitSize: 64, Buf: "insns"}, &PtrType{TypeCommon: TypeCommon{TypeName: "ptr64", FldName: "insns", TypeSize: 8}, Type: &UnionType{Key: StructKey{Name: "bpf_instructions"}}}, &PtrType{TypeCommon: TypeCommon{TypeName: "ptr64", FldName: "license", TypeSize: 8}, Type: &BufferType{TypeCommon: TypeCommon{TypeName: "string", IsVarlen: true}, Kind: 2, SubKind: "bpf_licenses", Values: []string{"GPL\x00", "syzkaller\x00"}}}, @@ -5830,20 +5830,20 @@ var structDescs_386 = []*KeyedStruct{ &StructType{Key: StructKey{Name: "fs_opt[\"session\", fmt[hex, int32]]"}, FldName: "session"}, &StructType{Key: StructKey{Name: "fs_opt[\"nls\", stringnoz[codepages_names]]"}, FldName: "nls"}, }}}, - {Key: StructKey{Name: "hidp_connadd_req"}, Desc: &StructDesc{TypeCommon: TypeCommon{TypeName: "hidp_connadd_req", IsVarlen: true}, Fields: []Type{ + {Key: StructKey{Name: "hidp_connadd_req"}, Desc: &StructDesc{TypeCommon: TypeCommon{TypeName: "hidp_connadd_req", TypeSize: 160}, Fields: []Type{ &ResourceType{TypeCommon: TypeCommon{TypeName: "sock", FldName: "ctrlsk", TypeSize: 4}}, &ResourceType{TypeCommon: TypeCommon{TypeName: "sock", FldName: "intrsk", TypeSize: 4}}, &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int16", FldName: "parser", TypeSize: 2}}}, - &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int16", FldName: "rdsize", TypeSize: 2}}}, - &PtrType{TypeCommon: TypeCommon{TypeName: "buffer", FldName: "rddata", TypeSize: 4}, Type: &BufferType{TypeCommon: TypeCommon{IsVarlen: true}}}, + &LenType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "len", FldName: "rdsize", TypeSize: 2}}, Buf: "rddata"}, + &PtrType{TypeCommon: TypeCommon{TypeName: "ptr", FldName: "rddata", TypeSize: 4}, Type: &BufferType{TypeCommon: TypeCommon{TypeName: "array", IsVarlen: true}}}, &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int8", FldName: "country", TypeSize: 1}}}, &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int8", FldName: "subclas", TypeSize: 1}}}, &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int16", FldName: "vendor", TypeSize: 2}}}, &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int16", FldName: "product", TypeSize: 2}}}, &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int16", FldName: "version", TypeSize: 2}}}, - &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int32", FldName: "flags", TypeSize: 4}}}, + &FlagsType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "hidp_connadd_flags", FldName: "flags", TypeSize: 4}}, Vals: []uint64{1, 2}, BitMask: true}, &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int32", FldName: "idleto", TypeSize: 4}}}, - &BufferType{TypeCommon: TypeCommon{TypeName: "array", FldName: "name", IsVarlen: true}}, + &BufferType{TypeCommon: TypeCommon{TypeName: "string", FldName: "name", TypeSize: 128}, Kind: 2, SubKind: "hidp_connadd_names", Values: []string{"syz0\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00", "syz1\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00"}}, }}}, {Key: StructKey{Name: "hidp_conndel_req"}, Desc: &StructDesc{TypeCommon: TypeCommon{TypeName: "hidp_conndel_req", TypeSize: 12}, Fields: []Type{ &StructType{Key: StructKey{Name: "bdaddr"}, FldName: "addr"}, @@ -19033,15 +19033,15 @@ var structDescs_386 = []*KeyedStruct{ {Key: StructKey{Name: "sockaddr_alg"}, Desc: &StructDesc{TypeCommon: TypeCommon{TypeName: "sockaddr_alg", TypeSize: 88}, Fields: []Type{ &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "family", TypeSize: 2}}, Val: 38}, &BufferType{TypeCommon: TypeCommon{TypeName: "string", FldName: "type", TypeSize: 14}, Kind: 2, Values: []string{"filled later\x00\x00"}}, - &FlagsType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "af_alg_type", FldName: "feat", TypeSize: 4}}, Vals: []uint64{15, 1, 2, 3, 4, 5, 6, 14, 14, 14, 15, 12, 13, 15, 16, 32, 64, 128, 256, 512, 1024, 2048, 4096, 8192}}, - &FlagsType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "af_alg_type", FldName: "mask", TypeSize: 4}}, Vals: []uint64{15, 1, 2, 3, 4, 5, 6, 14, 14, 14, 15, 12, 13, 15, 16, 32, 64, 128, 256, 512, 1024, 2048, 4096, 8192}}, + &FlagsType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "af_alg_type", FldName: "feat", TypeSize: 4}}, Vals: []uint64{15, 1, 2, 3, 4, 5, 14, 14, 14, 15, 12, 13, 15, 16, 32, 64, 128, 256, 1024, 2048, 4096, 8192}}, + &FlagsType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "af_alg_type", FldName: "mask", TypeSize: 4}}, Vals: []uint64{15, 1, 2, 3, 4, 5, 14, 14, 14, 15, 12, 13, 15, 16, 32, 64, 128, 256, 1024, 2048, 4096, 8192}}, &BufferType{TypeCommon: TypeCommon{TypeName: "string", FldName: "name", TypeSize: 64}, Kind: 2, Values: []string{"filled later\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00"}}, }}}, {Key: StructKey{Name: "sockaddr_alg", Dir: 1}, Desc: &StructDesc{TypeCommon: TypeCommon{TypeName: "sockaddr_alg", TypeSize: 88, ArgDir: 1}, Fields: []Type{ &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "family", TypeSize: 2, ArgDir: 1}}, Val: 38}, &BufferType{TypeCommon: TypeCommon{TypeName: "string", FldName: "type", TypeSize: 14, ArgDir: 1}, Kind: 2, Values: []string{"filled later\x00\x00"}}, - &FlagsType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "af_alg_type", FldName: "feat", TypeSize: 4, ArgDir: 1}}, Vals: []uint64{15, 1, 2, 3, 4, 5, 6, 14, 14, 14, 15, 12, 13, 15, 16, 32, 64, 128, 256, 512, 1024, 2048, 4096, 8192}}, - &FlagsType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "af_alg_type", FldName: "mask", TypeSize: 4, ArgDir: 1}}, Vals: []uint64{15, 1, 2, 3, 4, 5, 6, 14, 14, 14, 15, 12, 13, 15, 16, 32, 64, 128, 256, 512, 1024, 2048, 4096, 8192}}, + &FlagsType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "af_alg_type", FldName: "feat", TypeSize: 4, ArgDir: 1}}, Vals: []uint64{15, 1, 2, 3, 4, 5, 14, 14, 14, 15, 12, 13, 15, 16, 32, 64, 128, 256, 1024, 2048, 4096, 8192}}, + &FlagsType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "af_alg_type", FldName: "mask", TypeSize: 4, ArgDir: 1}}, Vals: []uint64{15, 1, 2, 3, 4, 5, 14, 14, 14, 15, 12, 13, 15, 16, 32, 64, 128, 256, 1024, 2048, 4096, 8192}}, &BufferType{TypeCommon: TypeCommon{TypeName: "string", FldName: "name", TypeSize: 64, ArgDir: 1}, Kind: 2, Values: []string{"filled later\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00"}}, }}}, {Key: StructKey{Name: "sockaddr_ax25"}, Desc: &StructDesc{TypeCommon: TypeCommon{TypeName: "sockaddr_ax25", TypeSize: 16}, Fields: []Type{ @@ -25502,6 +25502,11 @@ var syscalls_386 = []*Syscall{ &PtrType{TypeCommon: TypeCommon{TypeName: "ptr", FldName: "arg", TypeSize: 4}, Type: &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int32", TypeSize: 4}}}}, &LenType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "len", FldName: "size", TypeSize: 4}}, Buf: "arg"}, }}, + {NR: 357, Name: "bpf$BPF_MAP_LOOKUP_AND_DELETE_ELEM", CallName: "bpf", Args: []Type{ + &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "cmd", TypeSize: 4}}, Val: 21}, + &PtrType{TypeCommon: TypeCommon{TypeName: "ptr", FldName: "arg", TypeSize: 4}, Type: &StructType{Key: StructKey{Name: "bpf_map_lookup_arg"}}}, + &LenType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "len", FldName: "size", TypeSize: 4}}, Buf: "arg"}, + }}, {NR: 357, Name: "bpf$BPF_PROG_ATTACH", CallName: "bpf", Args: []Type{ &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "cmd", TypeSize: 4}}, Val: 8}, &PtrType{TypeCommon: TypeCommon{TypeName: "ptr", FldName: "arg", TypeSize: 4}, Type: &StructType{Key: StructKey{Name: "bpf_attach_arg"}}}, @@ -26600,7 +26605,7 @@ var syscalls_386 = []*Syscall{ &ResourceType{TypeCommon: TypeCommon{TypeName: "sock_bt", FldName: "fd", TypeSize: 4}}, &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "level", TypeSize: 4}}, Val: 274}, &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "opt", TypeSize: 4}}, Val: 7}, - &PtrType{TypeCommon: TypeCommon{TypeName: "ptr", FldName: "arg", TypeSize: 4}, Type: &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int32", TypeSize: 4}}}}, + &PtrType{TypeCommon: TypeCommon{TypeName: "ptr", FldName: "arg", TypeSize: 4}, Type: &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int32", TypeSize: 4}}, Kind: 2, RangeEnd: 1}}, &PtrType{TypeCommon: TypeCommon{TypeName: "ptr", FldName: "arglen", TypeSize: 4}, Type: &LenType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "len", TypeSize: 4}}, Buf: "arg"}}, }}, {NR: 365, Name: "getsockopt$bt_BT_FLUSHABLE", CallName: "getsockopt", Args: []Type{ @@ -35223,7 +35228,7 @@ var syscalls_386 = []*Syscall{ &ResourceType{TypeCommon: TypeCommon{TypeName: "sock_bt", FldName: "fd", TypeSize: 4}}, &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "level", TypeSize: 4}}, Val: 274}, &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "opt", TypeSize: 4}}, Val: 7}, - &PtrType{TypeCommon: TypeCommon{TypeName: "ptr", FldName: "arg", TypeSize: 4}, Type: &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int32", TypeSize: 4}}}}, + &PtrType{TypeCommon: TypeCommon{TypeName: "ptr", FldName: "arg", TypeSize: 4}, Type: &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int32", TypeSize: 4}}, Kind: 2, RangeEnd: 1}}, &LenType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "len", FldName: "arglen", TypeSize: 4}}, Buf: "arg"}, }}, {NR: 366, Name: "setsockopt$bt_BT_FLUSHABLE", CallName: "setsockopt", Args: []Type{ @@ -35265,7 +35270,7 @@ var syscalls_386 = []*Syscall{ &ResourceType{TypeCommon: TypeCommon{TypeName: "sock_bt", FldName: "fd", TypeSize: 4}}, &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "level", TypeSize: 4}}, Val: 274}, &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "opt", TypeSize: 4}}, Val: 11}, - &PtrType{TypeCommon: TypeCommon{TypeName: "ptr", FldName: "arg", TypeSize: 4}, Type: &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int16", TypeSize: 2}}}}, + &PtrType{TypeCommon: TypeCommon{TypeName: "ptr", FldName: "arg", TypeSize: 4}, Type: &FlagsType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "bt_voice_settings", TypeSize: 2}}, Vals: []uint64{3, 96}, BitMask: true}}, &LenType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "len", FldName: "arglen", TypeSize: 4}}, Buf: "arg"}, }}, {NR: 366, Name: "setsockopt$bt_hci_HCI_DATA_DIR", CallName: "setsockopt", Args: []Type{ @@ -38707,10 +38712,12 @@ var consts_386 = []ConstValue{ {Name: "BPF_MAP_GET_FD_BY_ID", Value: 14}, {Name: "BPF_MAP_GET_NEXT_ID", Value: 12}, {Name: "BPF_MAP_GET_NEXT_KEY", Value: 4}, + {Name: "BPF_MAP_LOOKUP_AND_DELETE_ELEM", Value: 21}, {Name: "BPF_MAP_LOOKUP_ELEM", Value: 1}, {Name: "BPF_MAP_TYPE_ARRAY", Value: 2}, {Name: "BPF_MAP_TYPE_ARRAY_OF_MAPS", Value: 12}, {Name: "BPF_MAP_TYPE_CGROUP_ARRAY", Value: 8}, + {Name: "BPF_MAP_TYPE_CGROUP_STORAGE", Value: 19}, {Name: "BPF_MAP_TYPE_CPUMAP", Value: 16}, {Name: "BPF_MAP_TYPE_DEVMAP", Value: 14}, {Name: "BPF_MAP_TYPE_HASH", Value: 1}, @@ -38719,11 +38726,17 @@ var consts_386 = []ConstValue{ {Name: "BPF_MAP_TYPE_LRU_HASH", Value: 9}, {Name: "BPF_MAP_TYPE_LRU_PERCPU_HASH", Value: 10}, {Name: "BPF_MAP_TYPE_PERCPU_ARRAY", Value: 6}, + {Name: "BPF_MAP_TYPE_PERCPU_CGROUP_STORAGE", Value: 21}, {Name: "BPF_MAP_TYPE_PERCPU_HASH", Value: 5}, {Name: "BPF_MAP_TYPE_PERF_EVENT_ARRAY", Value: 4}, {Name: "BPF_MAP_TYPE_PROG_ARRAY", Value: 3}, + {Name: "BPF_MAP_TYPE_QUEUE", Value: 22}, + {Name: "BPF_MAP_TYPE_REUSEPORT_SOCKARRAY", Value: 20}, + {Name: "BPF_MAP_TYPE_SOCKHASH", Value: 18}, {Name: "BPF_MAP_TYPE_SOCKMAP", Value: 15}, + {Name: "BPF_MAP_TYPE_STACK", Value: 23}, {Name: "BPF_MAP_TYPE_STACK_TRACE", Value: 7}, + {Name: "BPF_MAP_TYPE_XSKMAP", Value: 17}, {Name: "BPF_MAP_UPDATE_ELEM", Value: 2}, {Name: "BPF_MEM0", Value: 3}, {Name: "BPF_MOD0", Value: 9}, @@ -38747,15 +38760,19 @@ var consts_386 = []ConstValue{ {Name: "BPF_PROG_TYPE_CGROUP_SKB", Value: 8}, {Name: "BPF_PROG_TYPE_CGROUP_SOCK", Value: 9}, {Name: "BPF_PROG_TYPE_CGROUP_SOCK_ADDR", Value: 18}, + {Name: "BPF_PROG_TYPE_FLOW_DISSECTOR", Value: 22}, {Name: "BPF_PROG_TYPE_KPROBE", Value: 2}, + {Name: "BPF_PROG_TYPE_LIRC_MODE2", Value: 20}, {Name: "BPF_PROG_TYPE_LWT_IN", Value: 10}, {Name: "BPF_PROG_TYPE_LWT_OUT", Value: 11}, + {Name: "BPF_PROG_TYPE_LWT_SEG6LOCAL", Value: 19}, {Name: "BPF_PROG_TYPE_LWT_XMIT", Value: 12}, {Name: "BPF_PROG_TYPE_PERF_EVENT", Value: 7}, {Name: "BPF_PROG_TYPE_RAW_TRACEPOINT", Value: 17}, {Name: "BPF_PROG_TYPE_SCHED_ACT", Value: 4}, {Name: "BPF_PROG_TYPE_SCHED_CLS", Value: 3}, {Name: "BPF_PROG_TYPE_SK_MSG", Value: 16}, + {Name: "BPF_PROG_TYPE_SK_REUSEPORT", Value: 21}, {Name: "BPF_PROG_TYPE_SK_SKB", Value: 14}, {Name: "BPF_PROG_TYPE_SOCKET_FILTER", Value: 1}, {Name: "BPF_PROG_TYPE_SOCK_OPS", Value: 13}, @@ -38821,6 +38838,8 @@ var consts_386 = []ConstValue{ {Name: "BT_SECURITY", Value: 4}, {Name: "BT_SNDMTU", Value: 12}, {Name: "BT_VOICE", Value: 11}, + {Name: "BT_VOICE_CVSD_16BIT", Value: 96}, + {Name: "BT_VOICE_TRANSPARENT", Value: 3}, {Name: "CAIFPROTO_AT"}, {Name: "CAIFPROTO_DEBUG", Value: 5}, {Name: "CAIFSO_LINK_SELECT", Value: 127}, @@ -38940,7 +38959,6 @@ var consts_386 = []ConstValue{ {Name: "CRYPTO_ALG_ASYNC", Value: 128}, {Name: "CRYPTO_ALG_DEAD", Value: 32}, {Name: "CRYPTO_ALG_DYING", Value: 64}, - {Name: "CRYPTO_ALG_GENIV", Value: 512}, {Name: "CRYPTO_ALG_INSTANCE", Value: 2048}, {Name: "CRYPTO_ALG_INTERNAL", Value: 8192}, {Name: "CRYPTO_ALG_KERN_DRIVER_ONLY", Value: 4096}, @@ -38955,7 +38973,6 @@ var consts_386 = []ConstValue{ {Name: "CRYPTO_ALG_TYPE_CIPHER", Value: 1}, {Name: "CRYPTO_ALG_TYPE_COMPRESS", Value: 2}, {Name: "CRYPTO_ALG_TYPE_DIGEST", Value: 14}, - {Name: "CRYPTO_ALG_TYPE_GIVCIPHER", Value: 6}, {Name: "CRYPTO_ALG_TYPE_HASH", Value: 14}, {Name: "CRYPTO_ALG_TYPE_MASK", Value: 15}, {Name: "CRYPTO_ALG_TYPE_PCOMPRESS", Value: 15}, @@ -39767,6 +39784,8 @@ var consts_386 = []ConstValue{ {Name: "HIDPCONNDEL", Value: 1074022601}, {Name: "HIDPGETCONNINFO", Value: 2147764435}, {Name: "HIDPGETCONNLIST", Value: 2147764434}, + {Name: "HIDP_BOOT_PROTOCOL_MODE_BIT", Value: 2}, + {Name: "HIDP_VIRTUAL_CABLE_UNPLUG_BIT", Value: 1}, {Name: "HW_BREAKPOINT_EMPTY"}, {Name: "HW_BREAKPOINT_R", Value: 1}, {Name: "HW_BREAKPOINT_W", Value: 2}, @@ -45300,4 +45319,4 @@ var consts_386 = []ConstValue{ {Name: "bpf_insn_load_imm_dw", Value: 24}, } -const revision_386 = "3201c43fff24108571ec46dd2fdd43939e9ac47f" +const revision_386 = "20218ec69f7c1ec131465ea493d18d6001874ea0" diff --git a/sys/linux/gen/amd64.go b/sys/linux/gen/amd64.go index a232d590d..64bb5a3ae 100644 --- a/sys/linux/gen/amd64.go +++ b/sys/linux/gen/amd64.go @@ -1072,7 +1072,7 @@ var structDescs_amd64 = []*KeyedStruct{ &StructType{Key: StructKey{Name: "bpf_framed_program"}, FldName: "framed"}, }}}, {Key: StructKey{Name: "bpf_map_create_arg"}, Desc: &StructDesc{TypeCommon: TypeCommon{TypeName: "bpf_map_create_arg", TypeSize: 44}, Fields: []Type{ - &FlagsType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "bpf_map_type", FldName: "type", TypeSize: 4}}, Vals: []uint64{1, 2, 3, 4, 7, 8, 5, 6, 9, 10, 11, 12, 13, 14, 15, 16}}, + &FlagsType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "bpf_map_type", FldName: "type", TypeSize: 4}}, Vals: []uint64{1, 2, 3, 4, 7, 8, 5, 6, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23}}, &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int32", FldName: "ksize", TypeSize: 4}}}, &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int32", FldName: "vsize", TypeSize: 4}}}, &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int32", FldName: "max", TypeSize: 4}}}, @@ -1138,7 +1138,7 @@ var structDescs_amd64 = []*KeyedStruct{ &StructType{Key: StructKey{Name: "fs_opt[\"mode\", fmt[oct, int32]]"}, FldName: "mode"}, }}}, {Key: StructKey{Name: "bpf_prog"}, Desc: &StructDesc{TypeCommon: TypeCommon{TypeName: "bpf_prog", TypeSize: 72}, Fields: []Type{ - &FlagsType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "bpf_prog_type", FldName: "type", TypeSize: 4}}, Vals: []uint64{1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18}}, + &FlagsType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "bpf_prog_type", FldName: "type", TypeSize: 4}}, Vals: []uint64{1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22}}, &LenType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "bytesize8", FldName: "ninsn", TypeSize: 4}}, BitSize: 64, Buf: "insns"}, &PtrType{TypeCommon: TypeCommon{TypeName: "ptr64", FldName: "insns", TypeSize: 8}, Type: &UnionType{Key: StructKey{Name: "bpf_instructions"}}}, &PtrType{TypeCommon: TypeCommon{TypeName: "ptr64", FldName: "license", TypeSize: 8}, Type: &BufferType{TypeCommon: TypeCommon{TypeName: "string", IsVarlen: true}, Kind: 2, SubKind: "bpf_licenses", Values: []string{"GPL\x00", "syzkaller\x00"}}}, @@ -5933,21 +5933,21 @@ var structDescs_amd64 = []*KeyedStruct{ &StructType{Key: StructKey{Name: "fs_opt[\"session\", fmt[hex, int32]]"}, FldName: "session"}, &StructType{Key: StructKey{Name: "fs_opt[\"nls\", stringnoz[codepages_names]]"}, FldName: "nls"}, }}}, - {Key: StructKey{Name: "hidp_connadd_req"}, Desc: &StructDesc{TypeCommon: TypeCommon{TypeName: "hidp_connadd_req", IsVarlen: true}, Fields: []Type{ + {Key: StructKey{Name: "hidp_connadd_req"}, Desc: &StructDesc{TypeCommon: TypeCommon{TypeName: "hidp_connadd_req", TypeSize: 168}, Fields: []Type{ &ResourceType{TypeCommon: TypeCommon{TypeName: "sock", FldName: "ctrlsk", TypeSize: 4}}, &ResourceType{TypeCommon: TypeCommon{TypeName: "sock", FldName: "intrsk", TypeSize: 4}}, &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int16", FldName: "parser", TypeSize: 2}}}, - &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int16", FldName: "rdsize", TypeSize: 2}}}, + &LenType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "len", FldName: "rdsize", TypeSize: 2}}, Buf: "rddata"}, &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "pad", TypeSize: 4}}, IsPad: true}, - &PtrType{TypeCommon: TypeCommon{TypeName: "buffer", FldName: "rddata", TypeSize: 8}, Type: &BufferType{TypeCommon: TypeCommon{IsVarlen: true}}}, + &PtrType{TypeCommon: TypeCommon{TypeName: "ptr", FldName: "rddata", TypeSize: 8}, Type: &BufferType{TypeCommon: TypeCommon{TypeName: "array", IsVarlen: true}}}, &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int8", FldName: "country", TypeSize: 1}}}, &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int8", FldName: "subclas", TypeSize: 1}}}, &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int16", FldName: "vendor", TypeSize: 2}}}, &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int16", FldName: "product", TypeSize: 2}}}, &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int16", FldName: "version", TypeSize: 2}}}, - &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int32", FldName: "flags", TypeSize: 4}}}, + &FlagsType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "hidp_connadd_flags", FldName: "flags", TypeSize: 4}}, Vals: []uint64{1, 2}, BitMask: true}, &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int32", FldName: "idleto", TypeSize: 4}}}, - &BufferType{TypeCommon: TypeCommon{TypeName: "array", FldName: "name", IsVarlen: true}}, + &BufferType{TypeCommon: TypeCommon{TypeName: "string", FldName: "name", TypeSize: 128}, Kind: 2, SubKind: "hidp_connadd_names", Values: []string{"syz0\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00", "syz1\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00"}}, }}}, {Key: StructKey{Name: "hidp_conndel_req"}, Desc: &StructDesc{TypeCommon: TypeCommon{TypeName: "hidp_conndel_req", TypeSize: 12}, Fields: []Type{ &StructType{Key: StructKey{Name: "bdaddr"}, FldName: "addr"}, @@ -19402,15 +19402,15 @@ var structDescs_amd64 = []*KeyedStruct{ {Key: StructKey{Name: "sockaddr_alg"}, Desc: &StructDesc{TypeCommon: TypeCommon{TypeName: "sockaddr_alg", TypeSize: 88}, Fields: []Type{ &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "family", TypeSize: 2}}, Val: 38}, &BufferType{TypeCommon: TypeCommon{TypeName: "string", FldName: "type", TypeSize: 14}, Kind: 2, Values: []string{"filled later\x00\x00"}}, - &FlagsType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "af_alg_type", FldName: "feat", TypeSize: 4}}, Vals: []uint64{15, 1, 2, 3, 4, 5, 6, 14, 14, 14, 15, 12, 13, 15, 16, 32, 64, 128, 256, 512, 1024, 2048, 4096, 8192}}, - &FlagsType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "af_alg_type", FldName: "mask", TypeSize: 4}}, Vals: []uint64{15, 1, 2, 3, 4, 5, 6, 14, 14, 14, 15, 12, 13, 15, 16, 32, 64, 128, 256, 512, 1024, 2048, 4096, 8192}}, + &FlagsType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "af_alg_type", FldName: "feat", TypeSize: 4}}, Vals: []uint64{15, 1, 2, 3, 4, 5, 14, 14, 14, 15, 12, 13, 15, 16, 32, 64, 128, 256, 1024, 2048, 4096, 8192}}, + &FlagsType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "af_alg_type", FldName: "mask", TypeSize: 4}}, Vals: []uint64{15, 1, 2, 3, 4, 5, 14, 14, 14, 15, 12, 13, 15, 16, 32, 64, 128, 256, 1024, 2048, 4096, 8192}}, &BufferType{TypeCommon: TypeCommon{TypeName: "string", FldName: "name", TypeSize: 64}, Kind: 2, Values: []string{"filled later\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00"}}, }}}, {Key: StructKey{Name: "sockaddr_alg", Dir: 1}, Desc: &StructDesc{TypeCommon: TypeCommon{TypeName: "sockaddr_alg", TypeSize: 88, ArgDir: 1}, Fields: []Type{ &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "family", TypeSize: 2, ArgDir: 1}}, Val: 38}, &BufferType{TypeCommon: TypeCommon{TypeName: "string", FldName: "type", TypeSize: 14, ArgDir: 1}, Kind: 2, Values: []string{"filled later\x00\x00"}}, - &FlagsType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "af_alg_type", FldName: "feat", TypeSize: 4, ArgDir: 1}}, Vals: []uint64{15, 1, 2, 3, 4, 5, 6, 14, 14, 14, 15, 12, 13, 15, 16, 32, 64, 128, 256, 512, 1024, 2048, 4096, 8192}}, - &FlagsType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "af_alg_type", FldName: "mask", TypeSize: 4, ArgDir: 1}}, Vals: []uint64{15, 1, 2, 3, 4, 5, 6, 14, 14, 14, 15, 12, 13, 15, 16, 32, 64, 128, 256, 512, 1024, 2048, 4096, 8192}}, + &FlagsType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "af_alg_type", FldName: "feat", TypeSize: 4, ArgDir: 1}}, Vals: []uint64{15, 1, 2, 3, 4, 5, 14, 14, 14, 15, 12, 13, 15, 16, 32, 64, 128, 256, 1024, 2048, 4096, 8192}}, + &FlagsType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "af_alg_type", FldName: "mask", TypeSize: 4, ArgDir: 1}}, Vals: []uint64{15, 1, 2, 3, 4, 5, 14, 14, 14, 15, 12, 13, 15, 16, 32, 64, 128, 256, 1024, 2048, 4096, 8192}}, &BufferType{TypeCommon: TypeCommon{TypeName: "string", FldName: "name", TypeSize: 64, ArgDir: 1}, Kind: 2, Values: []string{"filled later\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00"}}, }}}, {Key: StructKey{Name: "sockaddr_ax25"}, Desc: &StructDesc{TypeCommon: TypeCommon{TypeName: "sockaddr_ax25", TypeSize: 16}, Fields: []Type{ @@ -26048,6 +26048,11 @@ var syscalls_amd64 = []*Syscall{ &PtrType{TypeCommon: TypeCommon{TypeName: "ptr", FldName: "arg", TypeSize: 8}, Type: &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int32", TypeSize: 4}}}}, &LenType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "len", FldName: "size", TypeSize: 8}}, Buf: "arg"}, }}, + {NR: 321, Name: "bpf$BPF_MAP_LOOKUP_AND_DELETE_ELEM", CallName: "bpf", Args: []Type{ + &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "cmd", TypeSize: 8}}, Val: 21}, + &PtrType{TypeCommon: TypeCommon{TypeName: "ptr", FldName: "arg", TypeSize: 8}, Type: &StructType{Key: StructKey{Name: "bpf_map_lookup_arg"}}}, + &LenType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "len", FldName: "size", TypeSize: 8}}, Buf: "arg"}, + }}, {NR: 321, Name: "bpf$BPF_PROG_ATTACH", CallName: "bpf", Args: []Type{ &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "cmd", TypeSize: 8}}, Val: 8}, &PtrType{TypeCommon: TypeCommon{TypeName: "ptr", FldName: "arg", TypeSize: 8}, Type: &StructType{Key: StructKey{Name: "bpf_attach_arg"}}}, @@ -27146,7 +27151,7 @@ var syscalls_amd64 = []*Syscall{ &ResourceType{TypeCommon: TypeCommon{TypeName: "sock_bt", FldName: "fd", TypeSize: 4}}, &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "level", TypeSize: 8}}, Val: 274}, &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "opt", TypeSize: 8}}, Val: 7}, - &PtrType{TypeCommon: TypeCommon{TypeName: "ptr", FldName: "arg", TypeSize: 8}, Type: &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int32", TypeSize: 4}}}}, + &PtrType{TypeCommon: TypeCommon{TypeName: "ptr", FldName: "arg", TypeSize: 8}, Type: &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int32", TypeSize: 4}}, Kind: 2, RangeEnd: 1}}, &PtrType{TypeCommon: TypeCommon{TypeName: "ptr", FldName: "arglen", TypeSize: 8}, Type: &LenType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "len", TypeSize: 8}}, Buf: "arg"}}, }}, {NR: 55, Name: "getsockopt$bt_BT_FLUSHABLE", CallName: "getsockopt", Args: []Type{ @@ -35931,7 +35936,7 @@ var syscalls_amd64 = []*Syscall{ &ResourceType{TypeCommon: TypeCommon{TypeName: "sock_bt", FldName: "fd", TypeSize: 4}}, &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "level", TypeSize: 8}}, Val: 274}, &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "opt", TypeSize: 8}}, Val: 7}, - &PtrType{TypeCommon: TypeCommon{TypeName: "ptr", FldName: "arg", TypeSize: 8}, Type: &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int32", TypeSize: 4}}}}, + &PtrType{TypeCommon: TypeCommon{TypeName: "ptr", FldName: "arg", TypeSize: 8}, Type: &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int32", TypeSize: 4}}, Kind: 2, RangeEnd: 1}}, &LenType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "len", FldName: "arglen", TypeSize: 8}}, Buf: "arg"}, }}, {NR: 54, Name: "setsockopt$bt_BT_FLUSHABLE", CallName: "setsockopt", Args: []Type{ @@ -35973,7 +35978,7 @@ var syscalls_amd64 = []*Syscall{ &ResourceType{TypeCommon: TypeCommon{TypeName: "sock_bt", FldName: "fd", TypeSize: 4}}, &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "level", TypeSize: 8}}, Val: 274}, &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "opt", TypeSize: 8}}, Val: 11}, - &PtrType{TypeCommon: TypeCommon{TypeName: "ptr", FldName: "arg", TypeSize: 8}, Type: &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int16", TypeSize: 2}}}}, + &PtrType{TypeCommon: TypeCommon{TypeName: "ptr", FldName: "arg", TypeSize: 8}, Type: &FlagsType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "bt_voice_settings", TypeSize: 2}}, Vals: []uint64{3, 96}, BitMask: true}}, &LenType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "len", FldName: "arglen", TypeSize: 8}}, Buf: "arg"}, }}, {NR: 54, Name: "setsockopt$bt_hci_HCI_DATA_DIR", CallName: "setsockopt", Args: []Type{ @@ -39472,10 +39477,12 @@ var consts_amd64 = []ConstValue{ {Name: "BPF_MAP_GET_FD_BY_ID", Value: 14}, {Name: "BPF_MAP_GET_NEXT_ID", Value: 12}, {Name: "BPF_MAP_GET_NEXT_KEY", Value: 4}, + {Name: "BPF_MAP_LOOKUP_AND_DELETE_ELEM", Value: 21}, {Name: "BPF_MAP_LOOKUP_ELEM", Value: 1}, {Name: "BPF_MAP_TYPE_ARRAY", Value: 2}, {Name: "BPF_MAP_TYPE_ARRAY_OF_MAPS", Value: 12}, {Name: "BPF_MAP_TYPE_CGROUP_ARRAY", Value: 8}, + {Name: "BPF_MAP_TYPE_CGROUP_STORAGE", Value: 19}, {Name: "BPF_MAP_TYPE_CPUMAP", Value: 16}, {Name: "BPF_MAP_TYPE_DEVMAP", Value: 14}, {Name: "BPF_MAP_TYPE_HASH", Value: 1}, @@ -39484,11 +39491,17 @@ var consts_amd64 = []ConstValue{ {Name: "BPF_MAP_TYPE_LRU_HASH", Value: 9}, {Name: "BPF_MAP_TYPE_LRU_PERCPU_HASH", Value: 10}, {Name: "BPF_MAP_TYPE_PERCPU_ARRAY", Value: 6}, + {Name: "BPF_MAP_TYPE_PERCPU_CGROUP_STORAGE", Value: 21}, {Name: "BPF_MAP_TYPE_PERCPU_HASH", Value: 5}, {Name: "BPF_MAP_TYPE_PERF_EVENT_ARRAY", Value: 4}, {Name: "BPF_MAP_TYPE_PROG_ARRAY", Value: 3}, + {Name: "BPF_MAP_TYPE_QUEUE", Value: 22}, + {Name: "BPF_MAP_TYPE_REUSEPORT_SOCKARRAY", Value: 20}, + {Name: "BPF_MAP_TYPE_SOCKHASH", Value: 18}, {Name: "BPF_MAP_TYPE_SOCKMAP", Value: 15}, + {Name: "BPF_MAP_TYPE_STACK", Value: 23}, {Name: "BPF_MAP_TYPE_STACK_TRACE", Value: 7}, + {Name: "BPF_MAP_TYPE_XSKMAP", Value: 17}, {Name: "BPF_MAP_UPDATE_ELEM", Value: 2}, {Name: "BPF_MEM0", Value: 3}, {Name: "BPF_MOD0", Value: 9}, @@ -39512,15 +39525,19 @@ var consts_amd64 = []ConstValue{ {Name: "BPF_PROG_TYPE_CGROUP_SKB", Value: 8}, {Name: "BPF_PROG_TYPE_CGROUP_SOCK", Value: 9}, {Name: "BPF_PROG_TYPE_CGROUP_SOCK_ADDR", Value: 18}, + {Name: "BPF_PROG_TYPE_FLOW_DISSECTOR", Value: 22}, {Name: "BPF_PROG_TYPE_KPROBE", Value: 2}, + {Name: "BPF_PROG_TYPE_LIRC_MODE2", Value: 20}, {Name: "BPF_PROG_TYPE_LWT_IN", Value: 10}, {Name: "BPF_PROG_TYPE_LWT_OUT", Value: 11}, + {Name: "BPF_PROG_TYPE_LWT_SEG6LOCAL", Value: 19}, {Name: "BPF_PROG_TYPE_LWT_XMIT", Value: 12}, {Name: "BPF_PROG_TYPE_PERF_EVENT", Value: 7}, {Name: "BPF_PROG_TYPE_RAW_TRACEPOINT", Value: 17}, {Name: "BPF_PROG_TYPE_SCHED_ACT", Value: 4}, {Name: "BPF_PROG_TYPE_SCHED_CLS", Value: 3}, {Name: "BPF_PROG_TYPE_SK_MSG", Value: 16}, + {Name: "BPF_PROG_TYPE_SK_REUSEPORT", Value: 21}, {Name: "BPF_PROG_TYPE_SK_SKB", Value: 14}, {Name: "BPF_PROG_TYPE_SOCKET_FILTER", Value: 1}, {Name: "BPF_PROG_TYPE_SOCK_OPS", Value: 13}, @@ -39586,6 +39603,8 @@ var consts_amd64 = []ConstValue{ {Name: "BT_SECURITY", Value: 4}, {Name: "BT_SNDMTU", Value: 12}, {Name: "BT_VOICE", Value: 11}, + {Name: "BT_VOICE_CVSD_16BIT", Value: 96}, + {Name: "BT_VOICE_TRANSPARENT", Value: 3}, {Name: "CAIFPROTO_AT"}, {Name: "CAIFPROTO_DEBUG", Value: 5}, {Name: "CAIFSO_LINK_SELECT", Value: 127}, @@ -39705,7 +39724,6 @@ var consts_amd64 = []ConstValue{ {Name: "CRYPTO_ALG_ASYNC", Value: 128}, {Name: "CRYPTO_ALG_DEAD", Value: 32}, {Name: "CRYPTO_ALG_DYING", Value: 64}, - {Name: "CRYPTO_ALG_GENIV", Value: 512}, {Name: "CRYPTO_ALG_INSTANCE", Value: 2048}, {Name: "CRYPTO_ALG_INTERNAL", Value: 8192}, {Name: "CRYPTO_ALG_KERN_DRIVER_ONLY", Value: 4096}, @@ -39720,7 +39738,6 @@ var consts_amd64 = []ConstValue{ {Name: "CRYPTO_ALG_TYPE_CIPHER", Value: 1}, {Name: "CRYPTO_ALG_TYPE_COMPRESS", Value: 2}, {Name: "CRYPTO_ALG_TYPE_DIGEST", Value: 14}, - {Name: "CRYPTO_ALG_TYPE_GIVCIPHER", Value: 6}, {Name: "CRYPTO_ALG_TYPE_HASH", Value: 14}, {Name: "CRYPTO_ALG_TYPE_MASK", Value: 15}, {Name: "CRYPTO_ALG_TYPE_PCOMPRESS", Value: 15}, @@ -40532,6 +40549,8 @@ var consts_amd64 = []ConstValue{ {Name: "HIDPCONNDEL", Value: 1074022601}, {Name: "HIDPGETCONNINFO", Value: 2147764435}, {Name: "HIDPGETCONNLIST", Value: 2147764434}, + {Name: "HIDP_BOOT_PROTOCOL_MODE_BIT", Value: 2}, + {Name: "HIDP_VIRTUAL_CABLE_UNPLUG_BIT", Value: 1}, {Name: "HW_BREAKPOINT_EMPTY"}, {Name: "HW_BREAKPOINT_R", Value: 1}, {Name: "HW_BREAKPOINT_W", Value: 2}, @@ -46090,4 +46109,4 @@ var consts_amd64 = []ConstValue{ {Name: "bpf_insn_load_imm_dw", Value: 24}, } -const revision_amd64 = "7cb6121e9c85234cdef34a3bf2deee82af7f5c59" +const revision_amd64 = "d9021a754335369176d195ac6cb4ed3a55494516" diff --git a/sys/linux/gen/arm.go b/sys/linux/gen/arm.go index 6a6516411..49c960a85 100644 --- a/sys/linux/gen/arm.go +++ b/sys/linux/gen/arm.go @@ -1068,7 +1068,7 @@ var structDescs_arm = []*KeyedStruct{ &StructType{Key: StructKey{Name: "bpf_framed_program"}, FldName: "framed"}, }}}, {Key: StructKey{Name: "bpf_map_create_arg"}, Desc: &StructDesc{TypeCommon: TypeCommon{TypeName: "bpf_map_create_arg", TypeSize: 44}, Fields: []Type{ - &FlagsType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "bpf_map_type", FldName: "type", TypeSize: 4}}, Vals: []uint64{1, 2, 3, 4, 7, 8, 5, 6, 9, 10, 11, 12, 13, 14, 15, 16}}, + &FlagsType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "bpf_map_type", FldName: "type", TypeSize: 4}}, Vals: []uint64{1, 2, 3, 4, 7, 8, 5, 6, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23}}, &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int32", FldName: "ksize", TypeSize: 4}}}, &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int32", FldName: "vsize", TypeSize: 4}}}, &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int32", FldName: "max", TypeSize: 4}}}, @@ -1134,7 +1134,7 @@ var structDescs_arm = []*KeyedStruct{ &StructType{Key: StructKey{Name: "fs_opt[\"mode\", fmt[oct, int32]]"}, FldName: "mode"}, }}}, {Key: StructKey{Name: "bpf_prog"}, Desc: &StructDesc{TypeCommon: TypeCommon{TypeName: "bpf_prog", TypeSize: 72}, Fields: []Type{ - &FlagsType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "bpf_prog_type", FldName: "type", TypeSize: 4}}, Vals: []uint64{1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18}}, + &FlagsType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "bpf_prog_type", FldName: "type", TypeSize: 4}}, Vals: []uint64{1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22}}, &LenType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "bytesize8", FldName: "ninsn", TypeSize: 4}}, BitSize: 64, Buf: "insns"}, &PtrType{TypeCommon: TypeCommon{TypeName: "ptr64", FldName: "insns", TypeSize: 8}, Type: &UnionType{Key: StructKey{Name: "bpf_instructions"}}}, &PtrType{TypeCommon: TypeCommon{TypeName: "ptr64", FldName: "license", TypeSize: 8}, Type: &BufferType{TypeCommon: TypeCommon{TypeName: "string", IsVarlen: true}, Kind: 2, SubKind: "bpf_licenses", Values: []string{"GPL\x00", "syzkaller\x00"}}}, @@ -5835,20 +5835,20 @@ var structDescs_arm = []*KeyedStruct{ &StructType{Key: StructKey{Name: "fs_opt[\"session\", fmt[hex, int32]]"}, FldName: "session"}, &StructType{Key: StructKey{Name: "fs_opt[\"nls\", stringnoz[codepages_names]]"}, FldName: "nls"}, }}}, - {Key: StructKey{Name: "hidp_connadd_req"}, Desc: &StructDesc{TypeCommon: TypeCommon{TypeName: "hidp_connadd_req", IsVarlen: true}, Fields: []Type{ + {Key: StructKey{Name: "hidp_connadd_req"}, Desc: &StructDesc{TypeCommon: TypeCommon{TypeName: "hidp_connadd_req", TypeSize: 160}, Fields: []Type{ &ResourceType{TypeCommon: TypeCommon{TypeName: "sock", FldName: "ctrlsk", TypeSize: 4}}, &ResourceType{TypeCommon: TypeCommon{TypeName: "sock", FldName: "intrsk", TypeSize: 4}}, &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int16", FldName: "parser", TypeSize: 2}}}, - &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int16", FldName: "rdsize", TypeSize: 2}}}, - &PtrType{TypeCommon: TypeCommon{TypeName: "buffer", FldName: "rddata", TypeSize: 4}, Type: &BufferType{TypeCommon: TypeCommon{IsVarlen: true}}}, + &LenType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "len", FldName: "rdsize", TypeSize: 2}}, Buf: "rddata"}, + &PtrType{TypeCommon: TypeCommon{TypeName: "ptr", FldName: "rddata", TypeSize: 4}, Type: &BufferType{TypeCommon: TypeCommon{TypeName: "array", IsVarlen: true}}}, &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int8", FldName: "country", TypeSize: 1}}}, &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int8", FldName: "subclas", TypeSize: 1}}}, &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int16", FldName: "vendor", TypeSize: 2}}}, &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int16", FldName: "product", TypeSize: 2}}}, &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int16", FldName: "version", TypeSize: 2}}}, - &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int32", FldName: "flags", TypeSize: 4}}}, + &FlagsType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "hidp_connadd_flags", FldName: "flags", TypeSize: 4}}, Vals: []uint64{1, 2}, BitMask: true}, &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int32", FldName: "idleto", TypeSize: 4}}}, - &BufferType{TypeCommon: TypeCommon{TypeName: "array", FldName: "name", IsVarlen: true}}, + &BufferType{TypeCommon: TypeCommon{TypeName: "string", FldName: "name", TypeSize: 128}, Kind: 2, SubKind: "hidp_connadd_names", Values: []string{"syz0\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00", "syz1\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00"}}, }}}, {Key: StructKey{Name: "hidp_conndel_req"}, Desc: &StructDesc{TypeCommon: TypeCommon{TypeName: "hidp_conndel_req", TypeSize: 12}, Fields: []Type{ &StructType{Key: StructKey{Name: "bdaddr"}, FldName: "addr"}, @@ -18914,15 +18914,15 @@ var structDescs_arm = []*KeyedStruct{ {Key: StructKey{Name: "sockaddr_alg"}, Desc: &StructDesc{TypeCommon: TypeCommon{TypeName: "sockaddr_alg", TypeSize: 88}, Fields: []Type{ &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "family", TypeSize: 2}}, Val: 38}, &BufferType{TypeCommon: TypeCommon{TypeName: "string", FldName: "type", TypeSize: 14}, Kind: 2, Values: []string{"filled later\x00\x00"}}, - &FlagsType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "af_alg_type", FldName: "feat", TypeSize: 4}}, Vals: []uint64{15, 1, 2, 3, 4, 5, 6, 14, 14, 14, 15, 12, 13, 15, 16, 32, 64, 128, 256, 512, 1024, 2048, 4096, 8192}}, - &FlagsType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "af_alg_type", FldName: "mask", TypeSize: 4}}, Vals: []uint64{15, 1, 2, 3, 4, 5, 6, 14, 14, 14, 15, 12, 13, 15, 16, 32, 64, 128, 256, 512, 1024, 2048, 4096, 8192}}, + &FlagsType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "af_alg_type", FldName: "feat", TypeSize: 4}}, Vals: []uint64{15, 1, 2, 3, 4, 5, 14, 14, 14, 15, 12, 13, 15, 16, 32, 64, 128, 256, 1024, 2048, 4096, 8192}}, + &FlagsType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "af_alg_type", FldName: "mask", TypeSize: 4}}, Vals: []uint64{15, 1, 2, 3, 4, 5, 14, 14, 14, 15, 12, 13, 15, 16, 32, 64, 128, 256, 1024, 2048, 4096, 8192}}, &BufferType{TypeCommon: TypeCommon{TypeName: "string", FldName: "name", TypeSize: 64}, Kind: 2, Values: []string{"filled later\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00"}}, }}}, {Key: StructKey{Name: "sockaddr_alg", Dir: 1}, Desc: &StructDesc{TypeCommon: TypeCommon{TypeName: "sockaddr_alg", TypeSize: 88, ArgDir: 1}, Fields: []Type{ &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "family", TypeSize: 2, ArgDir: 1}}, Val: 38}, &BufferType{TypeCommon: TypeCommon{TypeName: "string", FldName: "type", TypeSize: 14, ArgDir: 1}, Kind: 2, Values: []string{"filled later\x00\x00"}}, - &FlagsType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "af_alg_type", FldName: "feat", TypeSize: 4, ArgDir: 1}}, Vals: []uint64{15, 1, 2, 3, 4, 5, 6, 14, 14, 14, 15, 12, 13, 15, 16, 32, 64, 128, 256, 512, 1024, 2048, 4096, 8192}}, - &FlagsType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "af_alg_type", FldName: "mask", TypeSize: 4, ArgDir: 1}}, Vals: []uint64{15, 1, 2, 3, 4, 5, 6, 14, 14, 14, 15, 12, 13, 15, 16, 32, 64, 128, 256, 512, 1024, 2048, 4096, 8192}}, + &FlagsType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "af_alg_type", FldName: "feat", TypeSize: 4, ArgDir: 1}}, Vals: []uint64{15, 1, 2, 3, 4, 5, 14, 14, 14, 15, 12, 13, 15, 16, 32, 64, 128, 256, 1024, 2048, 4096, 8192}}, + &FlagsType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "af_alg_type", FldName: "mask", TypeSize: 4, ArgDir: 1}}, Vals: []uint64{15, 1, 2, 3, 4, 5, 14, 14, 14, 15, 12, 13, 15, 16, 32, 64, 128, 256, 1024, 2048, 4096, 8192}}, &BufferType{TypeCommon: TypeCommon{TypeName: "string", FldName: "name", TypeSize: 64, ArgDir: 1}, Kind: 2, Values: []string{"filled later\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00"}}, }}}, {Key: StructKey{Name: "sockaddr_ax25"}, Desc: &StructDesc{TypeCommon: TypeCommon{TypeName: "sockaddr_ax25", TypeSize: 16}, Fields: []Type{ @@ -25383,6 +25383,11 @@ var syscalls_arm = []*Syscall{ &PtrType{TypeCommon: TypeCommon{TypeName: "ptr", FldName: "arg", TypeSize: 4}, Type: &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int32", TypeSize: 4}}}}, &LenType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "len", FldName: "size", TypeSize: 4}}, Buf: "arg"}, }}, + {NR: 386, Name: "bpf$BPF_MAP_LOOKUP_AND_DELETE_ELEM", CallName: "bpf", Args: []Type{ + &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "cmd", TypeSize: 4}}, Val: 21}, + &PtrType{TypeCommon: TypeCommon{TypeName: "ptr", FldName: "arg", TypeSize: 4}, Type: &StructType{Key: StructKey{Name: "bpf_map_lookup_arg"}}}, + &LenType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "len", FldName: "size", TypeSize: 4}}, Buf: "arg"}, + }}, {NR: 386, Name: "bpf$BPF_PROG_ATTACH", CallName: "bpf", Args: []Type{ &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "cmd", TypeSize: 4}}, Val: 8}, &PtrType{TypeCommon: TypeCommon{TypeName: "ptr", FldName: "arg", TypeSize: 4}, Type: &StructType{Key: StructKey{Name: "bpf_attach_arg"}}}, @@ -26468,7 +26473,7 @@ var syscalls_arm = []*Syscall{ &ResourceType{TypeCommon: TypeCommon{TypeName: "sock_bt", FldName: "fd", TypeSize: 4}}, &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "level", TypeSize: 4}}, Val: 274}, &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "opt", TypeSize: 4}}, Val: 7}, - &PtrType{TypeCommon: TypeCommon{TypeName: "ptr", FldName: "arg", TypeSize: 4}, Type: &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int32", TypeSize: 4}}}}, + &PtrType{TypeCommon: TypeCommon{TypeName: "ptr", FldName: "arg", TypeSize: 4}, Type: &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int32", TypeSize: 4}}, Kind: 2, RangeEnd: 1}}, &PtrType{TypeCommon: TypeCommon{TypeName: "ptr", FldName: "arglen", TypeSize: 4}, Type: &LenType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "len", TypeSize: 4}}, Buf: "arg"}}, }}, {NR: 295, Name: "getsockopt$bt_BT_FLUSHABLE", CallName: "getsockopt", Args: []Type{ @@ -35080,7 +35085,7 @@ var syscalls_arm = []*Syscall{ &ResourceType{TypeCommon: TypeCommon{TypeName: "sock_bt", FldName: "fd", TypeSize: 4}}, &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "level", TypeSize: 4}}, Val: 274}, &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "opt", TypeSize: 4}}, Val: 7}, - &PtrType{TypeCommon: TypeCommon{TypeName: "ptr", FldName: "arg", TypeSize: 4}, Type: &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int32", TypeSize: 4}}}}, + &PtrType{TypeCommon: TypeCommon{TypeName: "ptr", FldName: "arg", TypeSize: 4}, Type: &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int32", TypeSize: 4}}, Kind: 2, RangeEnd: 1}}, &LenType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "len", FldName: "arglen", TypeSize: 4}}, Buf: "arg"}, }}, {NR: 294, Name: "setsockopt$bt_BT_FLUSHABLE", CallName: "setsockopt", Args: []Type{ @@ -35122,7 +35127,7 @@ var syscalls_arm = []*Syscall{ &ResourceType{TypeCommon: TypeCommon{TypeName: "sock_bt", FldName: "fd", TypeSize: 4}}, &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "level", TypeSize: 4}}, Val: 274}, &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "opt", TypeSize: 4}}, Val: 11}, - &PtrType{TypeCommon: TypeCommon{TypeName: "ptr", FldName: "arg", TypeSize: 4}, Type: &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int16", TypeSize: 2}}}}, + &PtrType{TypeCommon: TypeCommon{TypeName: "ptr", FldName: "arg", TypeSize: 4}, Type: &FlagsType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "bt_voice_settings", TypeSize: 2}}, Vals: []uint64{3, 96}, BitMask: true}}, &LenType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "len", FldName: "arglen", TypeSize: 4}}, Buf: "arg"}, }}, {NR: 294, Name: "setsockopt$bt_hci_HCI_DATA_DIR", CallName: "setsockopt", Args: []Type{ @@ -38599,10 +38604,12 @@ var consts_arm = []ConstValue{ {Name: "BPF_MAP_GET_FD_BY_ID", Value: 14}, {Name: "BPF_MAP_GET_NEXT_ID", Value: 12}, {Name: "BPF_MAP_GET_NEXT_KEY", Value: 4}, + {Name: "BPF_MAP_LOOKUP_AND_DELETE_ELEM", Value: 21}, {Name: "BPF_MAP_LOOKUP_ELEM", Value: 1}, {Name: "BPF_MAP_TYPE_ARRAY", Value: 2}, {Name: "BPF_MAP_TYPE_ARRAY_OF_MAPS", Value: 12}, {Name: "BPF_MAP_TYPE_CGROUP_ARRAY", Value: 8}, + {Name: "BPF_MAP_TYPE_CGROUP_STORAGE", Value: 19}, {Name: "BPF_MAP_TYPE_CPUMAP", Value: 16}, {Name: "BPF_MAP_TYPE_DEVMAP", Value: 14}, {Name: "BPF_MAP_TYPE_HASH", Value: 1}, @@ -38611,11 +38618,17 @@ var consts_arm = []ConstValue{ {Name: "BPF_MAP_TYPE_LRU_HASH", Value: 9}, {Name: "BPF_MAP_TYPE_LRU_PERCPU_HASH", Value: 10}, {Name: "BPF_MAP_TYPE_PERCPU_ARRAY", Value: 6}, + {Name: "BPF_MAP_TYPE_PERCPU_CGROUP_STORAGE", Value: 21}, {Name: "BPF_MAP_TYPE_PERCPU_HASH", Value: 5}, {Name: "BPF_MAP_TYPE_PERF_EVENT_ARRAY", Value: 4}, {Name: "BPF_MAP_TYPE_PROG_ARRAY", Value: 3}, + {Name: "BPF_MAP_TYPE_QUEUE", Value: 22}, + {Name: "BPF_MAP_TYPE_REUSEPORT_SOCKARRAY", Value: 20}, + {Name: "BPF_MAP_TYPE_SOCKHASH", Value: 18}, {Name: "BPF_MAP_TYPE_SOCKMAP", Value: 15}, + {Name: "BPF_MAP_TYPE_STACK", Value: 23}, {Name: "BPF_MAP_TYPE_STACK_TRACE", Value: 7}, + {Name: "BPF_MAP_TYPE_XSKMAP", Value: 17}, {Name: "BPF_MAP_UPDATE_ELEM", Value: 2}, {Name: "BPF_MEM0", Value: 3}, {Name: "BPF_MOD0", Value: 9}, @@ -38639,15 +38652,19 @@ var consts_arm = []ConstValue{ {Name: "BPF_PROG_TYPE_CGROUP_SKB", Value: 8}, {Name: "BPF_PROG_TYPE_CGROUP_SOCK", Value: 9}, {Name: "BPF_PROG_TYPE_CGROUP_SOCK_ADDR", Value: 18}, + {Name: "BPF_PROG_TYPE_FLOW_DISSECTOR", Value: 22}, {Name: "BPF_PROG_TYPE_KPROBE", Value: 2}, + {Name: "BPF_PROG_TYPE_LIRC_MODE2", Value: 20}, {Name: "BPF_PROG_TYPE_LWT_IN", Value: 10}, {Name: "BPF_PROG_TYPE_LWT_OUT", Value: 11}, + {Name: "BPF_PROG_TYPE_LWT_SEG6LOCAL", Value: 19}, {Name: "BPF_PROG_TYPE_LWT_XMIT", Value: 12}, {Name: "BPF_PROG_TYPE_PERF_EVENT", Value: 7}, {Name: "BPF_PROG_TYPE_RAW_TRACEPOINT", Value: 17}, {Name: "BPF_PROG_TYPE_SCHED_ACT", Value: 4}, {Name: "BPF_PROG_TYPE_SCHED_CLS", Value: 3}, {Name: "BPF_PROG_TYPE_SK_MSG", Value: 16}, + {Name: "BPF_PROG_TYPE_SK_REUSEPORT", Value: 21}, {Name: "BPF_PROG_TYPE_SK_SKB", Value: 14}, {Name: "BPF_PROG_TYPE_SOCKET_FILTER", Value: 1}, {Name: "BPF_PROG_TYPE_SOCK_OPS", Value: 13}, @@ -38713,6 +38730,8 @@ var consts_arm = []ConstValue{ {Name: "BT_SECURITY", Value: 4}, {Name: "BT_SNDMTU", Value: 12}, {Name: "BT_VOICE", Value: 11}, + {Name: "BT_VOICE_CVSD_16BIT", Value: 96}, + {Name: "BT_VOICE_TRANSPARENT", Value: 3}, {Name: "CAIFPROTO_AT"}, {Name: "CAIFPROTO_DEBUG", Value: 5}, {Name: "CAIFSO_LINK_SELECT", Value: 127}, @@ -38832,7 +38851,6 @@ var consts_arm = []ConstValue{ {Name: "CRYPTO_ALG_ASYNC", Value: 128}, {Name: "CRYPTO_ALG_DEAD", Value: 32}, {Name: "CRYPTO_ALG_DYING", Value: 64}, - {Name: "CRYPTO_ALG_GENIV", Value: 512}, {Name: "CRYPTO_ALG_INSTANCE", Value: 2048}, {Name: "CRYPTO_ALG_INTERNAL", Value: 8192}, {Name: "CRYPTO_ALG_KERN_DRIVER_ONLY", Value: 4096}, @@ -38847,7 +38865,6 @@ var consts_arm = []ConstValue{ {Name: "CRYPTO_ALG_TYPE_CIPHER", Value: 1}, {Name: "CRYPTO_ALG_TYPE_COMPRESS", Value: 2}, {Name: "CRYPTO_ALG_TYPE_DIGEST", Value: 14}, - {Name: "CRYPTO_ALG_TYPE_GIVCIPHER", Value: 6}, {Name: "CRYPTO_ALG_TYPE_HASH", Value: 14}, {Name: "CRYPTO_ALG_TYPE_MASK", Value: 15}, {Name: "CRYPTO_ALG_TYPE_PCOMPRESS", Value: 15}, @@ -39659,6 +39676,8 @@ var consts_arm = []ConstValue{ {Name: "HIDPCONNDEL", Value: 1074022601}, {Name: "HIDPGETCONNINFO", Value: 2147764435}, {Name: "HIDPGETCONNLIST", Value: 2147764434}, + {Name: "HIDP_BOOT_PROTOCOL_MODE_BIT", Value: 2}, + {Name: "HIDP_VIRTUAL_CABLE_UNPLUG_BIT", Value: 1}, {Name: "HW_BREAKPOINT_EMPTY"}, {Name: "HW_BREAKPOINT_R", Value: 1}, {Name: "HW_BREAKPOINT_W", Value: 2}, @@ -45139,4 +45158,4 @@ var consts_arm = []ConstValue{ {Name: "bpf_insn_load_imm_dw", Value: 24}, } -const revision_arm = "e0adf643e3f3a0137f408fbaa37d008e09b170a1" +const revision_arm = "4a132bf49df4a13bfa7399474f52a5f75d04e72b" diff --git a/sys/linux/gen/arm64.go b/sys/linux/gen/arm64.go index f54313caa..cd518d9d1 100644 --- a/sys/linux/gen/arm64.go +++ b/sys/linux/gen/arm64.go @@ -1072,7 +1072,7 @@ var structDescs_arm64 = []*KeyedStruct{ &StructType{Key: StructKey{Name: "bpf_framed_program"}, FldName: "framed"}, }}}, {Key: StructKey{Name: "bpf_map_create_arg"}, Desc: &StructDesc{TypeCommon: TypeCommon{TypeName: "bpf_map_create_arg", TypeSize: 44}, Fields: []Type{ - &FlagsType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "bpf_map_type", FldName: "type", TypeSize: 4}}, Vals: []uint64{1, 2, 3, 4, 7, 8, 5, 6, 9, 10, 11, 12, 13, 14, 15, 16}}, + &FlagsType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "bpf_map_type", FldName: "type", TypeSize: 4}}, Vals: []uint64{1, 2, 3, 4, 7, 8, 5, 6, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23}}, &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int32", FldName: "ksize", TypeSize: 4}}}, &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int32", FldName: "vsize", TypeSize: 4}}}, &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int32", FldName: "max", TypeSize: 4}}}, @@ -1138,7 +1138,7 @@ var structDescs_arm64 = []*KeyedStruct{ &StructType{Key: StructKey{Name: "fs_opt[\"mode\", fmt[oct, int32]]"}, FldName: "mode"}, }}}, {Key: StructKey{Name: "bpf_prog"}, Desc: &StructDesc{TypeCommon: TypeCommon{TypeName: "bpf_prog", TypeSize: 72}, Fields: []Type{ - &FlagsType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "bpf_prog_type", FldName: "type", TypeSize: 4}}, Vals: []uint64{1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18}}, + &FlagsType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "bpf_prog_type", FldName: "type", TypeSize: 4}}, Vals: []uint64{1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22}}, &LenType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "bytesize8", FldName: "ninsn", TypeSize: 4}}, BitSize: 64, Buf: "insns"}, &PtrType{TypeCommon: TypeCommon{TypeName: "ptr64", FldName: "insns", TypeSize: 8}, Type: &UnionType{Key: StructKey{Name: "bpf_instructions"}}}, &PtrType{TypeCommon: TypeCommon{TypeName: "ptr64", FldName: "license", TypeSize: 8}, Type: &BufferType{TypeCommon: TypeCommon{TypeName: "string", IsVarlen: true}, Kind: 2, SubKind: "bpf_licenses", Values: []string{"GPL\x00", "syzkaller\x00"}}}, @@ -5933,21 +5933,21 @@ var structDescs_arm64 = []*KeyedStruct{ &StructType{Key: StructKey{Name: "fs_opt[\"session\", fmt[hex, int32]]"}, FldName: "session"}, &StructType{Key: StructKey{Name: "fs_opt[\"nls\", stringnoz[codepages_names]]"}, FldName: "nls"}, }}}, - {Key: StructKey{Name: "hidp_connadd_req"}, Desc: &StructDesc{TypeCommon: TypeCommon{TypeName: "hidp_connadd_req", IsVarlen: true}, Fields: []Type{ + {Key: StructKey{Name: "hidp_connadd_req"}, Desc: &StructDesc{TypeCommon: TypeCommon{TypeName: "hidp_connadd_req", TypeSize: 168}, Fields: []Type{ &ResourceType{TypeCommon: TypeCommon{TypeName: "sock", FldName: "ctrlsk", TypeSize: 4}}, &ResourceType{TypeCommon: TypeCommon{TypeName: "sock", FldName: "intrsk", TypeSize: 4}}, &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int16", FldName: "parser", TypeSize: 2}}}, - &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int16", FldName: "rdsize", TypeSize: 2}}}, + &LenType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "len", FldName: "rdsize", TypeSize: 2}}, Buf: "rddata"}, &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "pad", TypeSize: 4}}, IsPad: true}, - &PtrType{TypeCommon: TypeCommon{TypeName: "buffer", FldName: "rddata", TypeSize: 8}, Type: &BufferType{TypeCommon: TypeCommon{IsVarlen: true}}}, + &PtrType{TypeCommon: TypeCommon{TypeName: "ptr", FldName: "rddata", TypeSize: 8}, Type: &BufferType{TypeCommon: TypeCommon{TypeName: "array", IsVarlen: true}}}, &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int8", FldName: "country", TypeSize: 1}}}, &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int8", FldName: "subclas", TypeSize: 1}}}, &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int16", FldName: "vendor", TypeSize: 2}}}, &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int16", FldName: "product", TypeSize: 2}}}, &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int16", FldName: "version", TypeSize: 2}}}, - &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int32", FldName: "flags", TypeSize: 4}}}, + &FlagsType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "hidp_connadd_flags", FldName: "flags", TypeSize: 4}}, Vals: []uint64{1, 2}, BitMask: true}, &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int32", FldName: "idleto", TypeSize: 4}}}, - &BufferType{TypeCommon: TypeCommon{TypeName: "array", FldName: "name", IsVarlen: true}}, + &BufferType{TypeCommon: TypeCommon{TypeName: "string", FldName: "name", TypeSize: 128}, Kind: 2, SubKind: "hidp_connadd_names", Values: []string{"syz0\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00", "syz1\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00"}}, }}}, {Key: StructKey{Name: "hidp_conndel_req"}, Desc: &StructDesc{TypeCommon: TypeCommon{TypeName: "hidp_conndel_req", TypeSize: 12}, Fields: []Type{ &StructType{Key: StructKey{Name: "bdaddr"}, FldName: "addr"}, @@ -19219,15 +19219,15 @@ var structDescs_arm64 = []*KeyedStruct{ {Key: StructKey{Name: "sockaddr_alg"}, Desc: &StructDesc{TypeCommon: TypeCommon{TypeName: "sockaddr_alg", TypeSize: 88}, Fields: []Type{ &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "family", TypeSize: 2}}, Val: 38}, &BufferType{TypeCommon: TypeCommon{TypeName: "string", FldName: "type", TypeSize: 14}, Kind: 2, Values: []string{"filled later\x00\x00"}}, - &FlagsType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "af_alg_type", FldName: "feat", TypeSize: 4}}, Vals: []uint64{15, 1, 2, 3, 4, 5, 6, 14, 14, 14, 15, 12, 13, 15, 16, 32, 64, 128, 256, 512, 1024, 2048, 4096, 8192}}, - &FlagsType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "af_alg_type", FldName: "mask", TypeSize: 4}}, Vals: []uint64{15, 1, 2, 3, 4, 5, 6, 14, 14, 14, 15, 12, 13, 15, 16, 32, 64, 128, 256, 512, 1024, 2048, 4096, 8192}}, + &FlagsType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "af_alg_type", FldName: "feat", TypeSize: 4}}, Vals: []uint64{15, 1, 2, 3, 4, 5, 14, 14, 14, 15, 12, 13, 15, 16, 32, 64, 128, 256, 1024, 2048, 4096, 8192}}, + &FlagsType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "af_alg_type", FldName: "mask", TypeSize: 4}}, Vals: []uint64{15, 1, 2, 3, 4, 5, 14, 14, 14, 15, 12, 13, 15, 16, 32, 64, 128, 256, 1024, 2048, 4096, 8192}}, &BufferType{TypeCommon: TypeCommon{TypeName: "string", FldName: "name", TypeSize: 64}, Kind: 2, Values: []string{"filled later\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00"}}, }}}, {Key: StructKey{Name: "sockaddr_alg", Dir: 1}, Desc: &StructDesc{TypeCommon: TypeCommon{TypeName: "sockaddr_alg", TypeSize: 88, ArgDir: 1}, Fields: []Type{ &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "family", TypeSize: 2, ArgDir: 1}}, Val: 38}, &BufferType{TypeCommon: TypeCommon{TypeName: "string", FldName: "type", TypeSize: 14, ArgDir: 1}, Kind: 2, Values: []string{"filled later\x00\x00"}}, - &FlagsType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "af_alg_type", FldName: "feat", TypeSize: 4, ArgDir: 1}}, Vals: []uint64{15, 1, 2, 3, 4, 5, 6, 14, 14, 14, 15, 12, 13, 15, 16, 32, 64, 128, 256, 512, 1024, 2048, 4096, 8192}}, - &FlagsType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "af_alg_type", FldName: "mask", TypeSize: 4, ArgDir: 1}}, Vals: []uint64{15, 1, 2, 3, 4, 5, 6, 14, 14, 14, 15, 12, 13, 15, 16, 32, 64, 128, 256, 512, 1024, 2048, 4096, 8192}}, + &FlagsType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "af_alg_type", FldName: "feat", TypeSize: 4, ArgDir: 1}}, Vals: []uint64{15, 1, 2, 3, 4, 5, 14, 14, 14, 15, 12, 13, 15, 16, 32, 64, 128, 256, 1024, 2048, 4096, 8192}}, + &FlagsType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "af_alg_type", FldName: "mask", TypeSize: 4, ArgDir: 1}}, Vals: []uint64{15, 1, 2, 3, 4, 5, 14, 14, 14, 15, 12, 13, 15, 16, 32, 64, 128, 256, 1024, 2048, 4096, 8192}}, &BufferType{TypeCommon: TypeCommon{TypeName: "string", FldName: "name", TypeSize: 64, ArgDir: 1}, Kind: 2, Values: []string{"filled later\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00"}}, }}}, {Key: StructKey{Name: "sockaddr_ax25"}, Desc: &StructDesc{TypeCommon: TypeCommon{TypeName: "sockaddr_ax25", TypeSize: 16}, Fields: []Type{ @@ -25806,6 +25806,11 @@ var syscalls_arm64 = []*Syscall{ &PtrType{TypeCommon: TypeCommon{TypeName: "ptr", FldName: "arg", TypeSize: 8}, Type: &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int32", TypeSize: 4}}}}, &LenType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "len", FldName: "size", TypeSize: 8}}, Buf: "arg"}, }}, + {NR: 280, Name: "bpf$BPF_MAP_LOOKUP_AND_DELETE_ELEM", CallName: "bpf", Args: []Type{ + &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "cmd", TypeSize: 8}}, Val: 21}, + &PtrType{TypeCommon: TypeCommon{TypeName: "ptr", FldName: "arg", TypeSize: 8}, Type: &StructType{Key: StructKey{Name: "bpf_map_lookup_arg"}}}, + &LenType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "len", FldName: "size", TypeSize: 8}}, Buf: "arg"}, + }}, {NR: 280, Name: "bpf$BPF_PROG_ATTACH", CallName: "bpf", Args: []Type{ &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "cmd", TypeSize: 8}}, Val: 8}, &PtrType{TypeCommon: TypeCommon{TypeName: "ptr", FldName: "arg", TypeSize: 8}, Type: &StructType{Key: StructKey{Name: "bpf_attach_arg"}}}, @@ -26859,7 +26864,7 @@ var syscalls_arm64 = []*Syscall{ &ResourceType{TypeCommon: TypeCommon{TypeName: "sock_bt", FldName: "fd", TypeSize: 4}}, &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "level", TypeSize: 8}}, Val: 274}, &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "opt", TypeSize: 8}}, Val: 7}, - &PtrType{TypeCommon: TypeCommon{TypeName: "ptr", FldName: "arg", TypeSize: 8}, Type: &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int32", TypeSize: 4}}}}, + &PtrType{TypeCommon: TypeCommon{TypeName: "ptr", FldName: "arg", TypeSize: 8}, Type: &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int32", TypeSize: 4}}, Kind: 2, RangeEnd: 1}}, &PtrType{TypeCommon: TypeCommon{TypeName: "ptr", FldName: "arglen", TypeSize: 8}, Type: &LenType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "len", TypeSize: 8}}, Buf: "arg"}}, }}, {NR: 209, Name: "getsockopt$bt_BT_FLUSHABLE", CallName: "getsockopt", Args: []Type{ @@ -35432,7 +35437,7 @@ var syscalls_arm64 = []*Syscall{ &ResourceType{TypeCommon: TypeCommon{TypeName: "sock_bt", FldName: "fd", TypeSize: 4}}, &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "level", TypeSize: 8}}, Val: 274}, &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "opt", TypeSize: 8}}, Val: 7}, - &PtrType{TypeCommon: TypeCommon{TypeName: "ptr", FldName: "arg", TypeSize: 8}, Type: &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int32", TypeSize: 4}}}}, + &PtrType{TypeCommon: TypeCommon{TypeName: "ptr", FldName: "arg", TypeSize: 8}, Type: &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int32", TypeSize: 4}}, Kind: 2, RangeEnd: 1}}, &LenType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "len", FldName: "arglen", TypeSize: 8}}, Buf: "arg"}, }}, {NR: 208, Name: "setsockopt$bt_BT_FLUSHABLE", CallName: "setsockopt", Args: []Type{ @@ -35474,7 +35479,7 @@ var syscalls_arm64 = []*Syscall{ &ResourceType{TypeCommon: TypeCommon{TypeName: "sock_bt", FldName: "fd", TypeSize: 4}}, &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "level", TypeSize: 8}}, Val: 274}, &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "opt", TypeSize: 8}}, Val: 11}, - &PtrType{TypeCommon: TypeCommon{TypeName: "ptr", FldName: "arg", TypeSize: 8}, Type: &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int16", TypeSize: 2}}}}, + &PtrType{TypeCommon: TypeCommon{TypeName: "ptr", FldName: "arg", TypeSize: 8}, Type: &FlagsType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "bt_voice_settings", TypeSize: 2}}, Vals: []uint64{3, 96}, BitMask: true}}, &LenType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "len", FldName: "arglen", TypeSize: 8}}, Buf: "arg"}, }}, {NR: 208, Name: "setsockopt$bt_hci_HCI_DATA_DIR", CallName: "setsockopt", Args: []Type{ @@ -38918,10 +38923,12 @@ var consts_arm64 = []ConstValue{ {Name: "BPF_MAP_GET_FD_BY_ID", Value: 14}, {Name: "BPF_MAP_GET_NEXT_ID", Value: 12}, {Name: "BPF_MAP_GET_NEXT_KEY", Value: 4}, + {Name: "BPF_MAP_LOOKUP_AND_DELETE_ELEM", Value: 21}, {Name: "BPF_MAP_LOOKUP_ELEM", Value: 1}, {Name: "BPF_MAP_TYPE_ARRAY", Value: 2}, {Name: "BPF_MAP_TYPE_ARRAY_OF_MAPS", Value: 12}, {Name: "BPF_MAP_TYPE_CGROUP_ARRAY", Value: 8}, + {Name: "BPF_MAP_TYPE_CGROUP_STORAGE", Value: 19}, {Name: "BPF_MAP_TYPE_CPUMAP", Value: 16}, {Name: "BPF_MAP_TYPE_DEVMAP", Value: 14}, {Name: "BPF_MAP_TYPE_HASH", Value: 1}, @@ -38930,11 +38937,17 @@ var consts_arm64 = []ConstValue{ {Name: "BPF_MAP_TYPE_LRU_HASH", Value: 9}, {Name: "BPF_MAP_TYPE_LRU_PERCPU_HASH", Value: 10}, {Name: "BPF_MAP_TYPE_PERCPU_ARRAY", Value: 6}, + {Name: "BPF_MAP_TYPE_PERCPU_CGROUP_STORAGE", Value: 21}, {Name: "BPF_MAP_TYPE_PERCPU_HASH", Value: 5}, {Name: "BPF_MAP_TYPE_PERF_EVENT_ARRAY", Value: 4}, {Name: "BPF_MAP_TYPE_PROG_ARRAY", Value: 3}, + {Name: "BPF_MAP_TYPE_QUEUE", Value: 22}, + {Name: "BPF_MAP_TYPE_REUSEPORT_SOCKARRAY", Value: 20}, + {Name: "BPF_MAP_TYPE_SOCKHASH", Value: 18}, {Name: "BPF_MAP_TYPE_SOCKMAP", Value: 15}, + {Name: "BPF_MAP_TYPE_STACK", Value: 23}, {Name: "BPF_MAP_TYPE_STACK_TRACE", Value: 7}, + {Name: "BPF_MAP_TYPE_XSKMAP", Value: 17}, {Name: "BPF_MAP_UPDATE_ELEM", Value: 2}, {Name: "BPF_MEM0", Value: 3}, {Name: "BPF_MOD0", Value: 9}, @@ -38958,15 +38971,19 @@ var consts_arm64 = []ConstValue{ {Name: "BPF_PROG_TYPE_CGROUP_SKB", Value: 8}, {Name: "BPF_PROG_TYPE_CGROUP_SOCK", Value: 9}, {Name: "BPF_PROG_TYPE_CGROUP_SOCK_ADDR", Value: 18}, + {Name: "BPF_PROG_TYPE_FLOW_DISSECTOR", Value: 22}, {Name: "BPF_PROG_TYPE_KPROBE", Value: 2}, + {Name: "BPF_PROG_TYPE_LIRC_MODE2", Value: 20}, {Name: "BPF_PROG_TYPE_LWT_IN", Value: 10}, {Name: "BPF_PROG_TYPE_LWT_OUT", Value: 11}, + {Name: "BPF_PROG_TYPE_LWT_SEG6LOCAL", Value: 19}, {Name: "BPF_PROG_TYPE_LWT_XMIT", Value: 12}, {Name: "BPF_PROG_TYPE_PERF_EVENT", Value: 7}, {Name: "BPF_PROG_TYPE_RAW_TRACEPOINT", Value: 17}, {Name: "BPF_PROG_TYPE_SCHED_ACT", Value: 4}, {Name: "BPF_PROG_TYPE_SCHED_CLS", Value: 3}, {Name: "BPF_PROG_TYPE_SK_MSG", Value: 16}, + {Name: "BPF_PROG_TYPE_SK_REUSEPORT", Value: 21}, {Name: "BPF_PROG_TYPE_SK_SKB", Value: 14}, {Name: "BPF_PROG_TYPE_SOCKET_FILTER", Value: 1}, {Name: "BPF_PROG_TYPE_SOCK_OPS", Value: 13}, @@ -39032,6 +39049,8 @@ var consts_arm64 = []ConstValue{ {Name: "BT_SECURITY", Value: 4}, {Name: "BT_SNDMTU", Value: 12}, {Name: "BT_VOICE", Value: 11}, + {Name: "BT_VOICE_CVSD_16BIT", Value: 96}, + {Name: "BT_VOICE_TRANSPARENT", Value: 3}, {Name: "CAIFPROTO_AT"}, {Name: "CAIFPROTO_DEBUG", Value: 5}, {Name: "CAIFSO_LINK_SELECT", Value: 127}, @@ -39151,7 +39170,6 @@ var consts_arm64 = []ConstValue{ {Name: "CRYPTO_ALG_ASYNC", Value: 128}, {Name: "CRYPTO_ALG_DEAD", Value: 32}, {Name: "CRYPTO_ALG_DYING", Value: 64}, - {Name: "CRYPTO_ALG_GENIV", Value: 512}, {Name: "CRYPTO_ALG_INSTANCE", Value: 2048}, {Name: "CRYPTO_ALG_INTERNAL", Value: 8192}, {Name: "CRYPTO_ALG_KERN_DRIVER_ONLY", Value: 4096}, @@ -39166,7 +39184,6 @@ var consts_arm64 = []ConstValue{ {Name: "CRYPTO_ALG_TYPE_CIPHER", Value: 1}, {Name: "CRYPTO_ALG_TYPE_COMPRESS", Value: 2}, {Name: "CRYPTO_ALG_TYPE_DIGEST", Value: 14}, - {Name: "CRYPTO_ALG_TYPE_GIVCIPHER", Value: 6}, {Name: "CRYPTO_ALG_TYPE_HASH", Value: 14}, {Name: "CRYPTO_ALG_TYPE_MASK", Value: 15}, {Name: "CRYPTO_ALG_TYPE_PCOMPRESS", Value: 15}, @@ -39978,6 +39995,8 @@ var consts_arm64 = []ConstValue{ {Name: "HIDPCONNDEL", Value: 1074022601}, {Name: "HIDPGETCONNINFO", Value: 2147764435}, {Name: "HIDPGETCONNLIST", Value: 2147764434}, + {Name: "HIDP_BOOT_PROTOCOL_MODE_BIT", Value: 2}, + {Name: "HIDP_VIRTUAL_CABLE_UNPLUG_BIT", Value: 1}, {Name: "HW_BREAKPOINT_EMPTY"}, {Name: "HW_BREAKPOINT_R", Value: 1}, {Name: "HW_BREAKPOINT_W", Value: 2}, @@ -45448,4 +45467,4 @@ var consts_arm64 = []ConstValue{ {Name: "bpf_insn_load_imm_dw", Value: 24}, } -const revision_arm64 = "60fd78f5948cc663817ee9a3ecbe1f069a7b9d6a" +const revision_arm64 = "7d1f3ce03b9f895596390ca5497802016b835d9d" diff --git a/sys/linux/gen/ppc64le.go b/sys/linux/gen/ppc64le.go index 8b3f7d394..dc38ee0ae 100644 --- a/sys/linux/gen/ppc64le.go +++ b/sys/linux/gen/ppc64le.go @@ -1063,7 +1063,7 @@ var structDescs_ppc64le = []*KeyedStruct{ &StructType{Key: StructKey{Name: "bpf_framed_program"}, FldName: "framed"}, }}}, {Key: StructKey{Name: "bpf_map_create_arg"}, Desc: &StructDesc{TypeCommon: TypeCommon{TypeName: "bpf_map_create_arg", TypeSize: 44}, Fields: []Type{ - &FlagsType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "bpf_map_type", FldName: "type", TypeSize: 4}}, Vals: []uint64{1, 2, 3, 4, 7, 8, 5, 6, 9, 10, 11, 12, 13, 14, 15, 16}}, + &FlagsType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "bpf_map_type", FldName: "type", TypeSize: 4}}, Vals: []uint64{1, 2, 3, 4, 7, 8, 5, 6, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23}}, &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int32", FldName: "ksize", TypeSize: 4}}}, &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int32", FldName: "vsize", TypeSize: 4}}}, &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int32", FldName: "max", TypeSize: 4}}}, @@ -1129,7 +1129,7 @@ var structDescs_ppc64le = []*KeyedStruct{ &StructType{Key: StructKey{Name: "fs_opt[\"mode\", fmt[oct, int32]]"}, FldName: "mode"}, }}}, {Key: StructKey{Name: "bpf_prog"}, Desc: &StructDesc{TypeCommon: TypeCommon{TypeName: "bpf_prog", TypeSize: 72}, Fields: []Type{ - &FlagsType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "bpf_prog_type", FldName: "type", TypeSize: 4}}, Vals: []uint64{1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18}}, + &FlagsType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "bpf_prog_type", FldName: "type", TypeSize: 4}}, Vals: []uint64{1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22}}, &LenType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "bytesize8", FldName: "ninsn", TypeSize: 4}}, BitSize: 64, Buf: "insns"}, &PtrType{TypeCommon: TypeCommon{TypeName: "ptr64", FldName: "insns", TypeSize: 8}, Type: &UnionType{Key: StructKey{Name: "bpf_instructions"}}}, &PtrType{TypeCommon: TypeCommon{TypeName: "ptr64", FldName: "license", TypeSize: 8}, Type: &BufferType{TypeCommon: TypeCommon{TypeName: "string", IsVarlen: true}, Kind: 2, SubKind: "bpf_licenses", Values: []string{"GPL\x00", "syzkaller\x00"}}}, @@ -5924,21 +5924,21 @@ var structDescs_ppc64le = []*KeyedStruct{ &StructType{Key: StructKey{Name: "fs_opt[\"session\", fmt[hex, int32]]"}, FldName: "session"}, &StructType{Key: StructKey{Name: "fs_opt[\"nls\", stringnoz[codepages_names]]"}, FldName: "nls"}, }}}, - {Key: StructKey{Name: "hidp_connadd_req"}, Desc: &StructDesc{TypeCommon: TypeCommon{TypeName: "hidp_connadd_req", IsVarlen: true}, Fields: []Type{ + {Key: StructKey{Name: "hidp_connadd_req"}, Desc: &StructDesc{TypeCommon: TypeCommon{TypeName: "hidp_connadd_req", TypeSize: 168}, Fields: []Type{ &ResourceType{TypeCommon: TypeCommon{TypeName: "sock", FldName: "ctrlsk", TypeSize: 4}}, &ResourceType{TypeCommon: TypeCommon{TypeName: "sock", FldName: "intrsk", TypeSize: 4}}, &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int16", FldName: "parser", TypeSize: 2}}}, - &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int16", FldName: "rdsize", TypeSize: 2}}}, + &LenType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "len", FldName: "rdsize", TypeSize: 2}}, Buf: "rddata"}, &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "pad", TypeSize: 4}}, IsPad: true}, - &PtrType{TypeCommon: TypeCommon{TypeName: "buffer", FldName: "rddata", TypeSize: 8}, Type: &BufferType{TypeCommon: TypeCommon{IsVarlen: true}}}, + &PtrType{TypeCommon: TypeCommon{TypeName: "ptr", FldName: "rddata", TypeSize: 8}, Type: &BufferType{TypeCommon: TypeCommon{TypeName: "array", IsVarlen: true}}}, &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int8", FldName: "country", TypeSize: 1}}}, &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int8", FldName: "subclas", TypeSize: 1}}}, &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int16", FldName: "vendor", TypeSize: 2}}}, &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int16", FldName: "product", TypeSize: 2}}}, &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int16", FldName: "version", TypeSize: 2}}}, - &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int32", FldName: "flags", TypeSize: 4}}}, + &FlagsType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "hidp_connadd_flags", FldName: "flags", TypeSize: 4}}, Vals: []uint64{1, 2}, BitMask: true}, &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int32", FldName: "idleto", TypeSize: 4}}}, - &BufferType{TypeCommon: TypeCommon{TypeName: "array", FldName: "name", IsVarlen: true}}, + &BufferType{TypeCommon: TypeCommon{TypeName: "string", FldName: "name", TypeSize: 128}, Kind: 2, SubKind: "hidp_connadd_names", Values: []string{"syz0\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00", "syz1\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00"}}, }}}, {Key: StructKey{Name: "hidp_conndel_req"}, Desc: &StructDesc{TypeCommon: TypeCommon{TypeName: "hidp_conndel_req", TypeSize: 12}, Fields: []Type{ &StructType{Key: StructKey{Name: "bdaddr"}, FldName: "addr"}, @@ -19101,15 +19101,15 @@ var structDescs_ppc64le = []*KeyedStruct{ {Key: StructKey{Name: "sockaddr_alg"}, Desc: &StructDesc{TypeCommon: TypeCommon{TypeName: "sockaddr_alg", TypeSize: 88}, Fields: []Type{ &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "family", TypeSize: 2}}, Val: 38}, &BufferType{TypeCommon: TypeCommon{TypeName: "string", FldName: "type", TypeSize: 14}, Kind: 2, Values: []string{"filled later\x00\x00"}}, - &FlagsType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "af_alg_type", FldName: "feat", TypeSize: 4}}, Vals: []uint64{15, 1, 2, 3, 4, 5, 6, 14, 14, 14, 15, 12, 13, 15, 16, 32, 64, 128, 256, 512, 1024, 2048, 4096, 8192}}, - &FlagsType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "af_alg_type", FldName: "mask", TypeSize: 4}}, Vals: []uint64{15, 1, 2, 3, 4, 5, 6, 14, 14, 14, 15, 12, 13, 15, 16, 32, 64, 128, 256, 512, 1024, 2048, 4096, 8192}}, + &FlagsType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "af_alg_type", FldName: "feat", TypeSize: 4}}, Vals: []uint64{15, 1, 2, 3, 4, 5, 14, 14, 14, 15, 12, 13, 15, 16, 32, 64, 128, 256, 1024, 2048, 4096, 8192}}, + &FlagsType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "af_alg_type", FldName: "mask", TypeSize: 4}}, Vals: []uint64{15, 1, 2, 3, 4, 5, 14, 14, 14, 15, 12, 13, 15, 16, 32, 64, 128, 256, 1024, 2048, 4096, 8192}}, &BufferType{TypeCommon: TypeCommon{TypeName: "string", FldName: "name", TypeSize: 64}, Kind: 2, Values: []string{"filled later\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00"}}, }}}, {Key: StructKey{Name: "sockaddr_alg", Dir: 1}, Desc: &StructDesc{TypeCommon: TypeCommon{TypeName: "sockaddr_alg", TypeSize: 88, ArgDir: 1}, Fields: []Type{ &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "family", TypeSize: 2, ArgDir: 1}}, Val: 38}, &BufferType{TypeCommon: TypeCommon{TypeName: "string", FldName: "type", TypeSize: 14, ArgDir: 1}, Kind: 2, Values: []string{"filled later\x00\x00"}}, - &FlagsType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "af_alg_type", FldName: "feat", TypeSize: 4, ArgDir: 1}}, Vals: []uint64{15, 1, 2, 3, 4, 5, 6, 14, 14, 14, 15, 12, 13, 15, 16, 32, 64, 128, 256, 512, 1024, 2048, 4096, 8192}}, - &FlagsType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "af_alg_type", FldName: "mask", TypeSize: 4, ArgDir: 1}}, Vals: []uint64{15, 1, 2, 3, 4, 5, 6, 14, 14, 14, 15, 12, 13, 15, 16, 32, 64, 128, 256, 512, 1024, 2048, 4096, 8192}}, + &FlagsType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "af_alg_type", FldName: "feat", TypeSize: 4, ArgDir: 1}}, Vals: []uint64{15, 1, 2, 3, 4, 5, 14, 14, 14, 15, 12, 13, 15, 16, 32, 64, 128, 256, 1024, 2048, 4096, 8192}}, + &FlagsType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "af_alg_type", FldName: "mask", TypeSize: 4, ArgDir: 1}}, Vals: []uint64{15, 1, 2, 3, 4, 5, 14, 14, 14, 15, 12, 13, 15, 16, 32, 64, 128, 256, 1024, 2048, 4096, 8192}}, &BufferType{TypeCommon: TypeCommon{TypeName: "string", FldName: "name", TypeSize: 64, ArgDir: 1}, Kind: 2, Values: []string{"filled later\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00"}}, }}}, {Key: StructKey{Name: "sockaddr_ax25"}, Desc: &StructDesc{TypeCommon: TypeCommon{TypeName: "sockaddr_ax25", TypeSize: 16}, Fields: []Type{ @@ -24820,6 +24820,11 @@ var syscalls_ppc64le = []*Syscall{ &PtrType{TypeCommon: TypeCommon{TypeName: "ptr", FldName: "arg", TypeSize: 8}, Type: &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int32", TypeSize: 4}}}}, &LenType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "len", FldName: "size", TypeSize: 8}}, Buf: "arg"}, }}, + {NR: 361, Name: "bpf$BPF_MAP_LOOKUP_AND_DELETE_ELEM", CallName: "bpf", Args: []Type{ + &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "cmd", TypeSize: 8}}, Val: 21}, + &PtrType{TypeCommon: TypeCommon{TypeName: "ptr", FldName: "arg", TypeSize: 8}, Type: &StructType{Key: StructKey{Name: "bpf_map_lookup_arg"}}}, + &LenType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "len", FldName: "size", TypeSize: 8}}, Buf: "arg"}, + }}, {NR: 361, Name: "bpf$BPF_PROG_ATTACH", CallName: "bpf", Args: []Type{ &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "cmd", TypeSize: 8}}, Val: 8}, &PtrType{TypeCommon: TypeCommon{TypeName: "ptr", FldName: "arg", TypeSize: 8}, Type: &StructType{Key: StructKey{Name: "bpf_attach_arg"}}}, @@ -25915,7 +25920,7 @@ var syscalls_ppc64le = []*Syscall{ &ResourceType{TypeCommon: TypeCommon{TypeName: "sock_bt", FldName: "fd", TypeSize: 4}}, &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "level", TypeSize: 8}}, Val: 274}, &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "opt", TypeSize: 8}}, Val: 7}, - &PtrType{TypeCommon: TypeCommon{TypeName: "ptr", FldName: "arg", TypeSize: 8}, Type: &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int32", TypeSize: 4}}}}, + &PtrType{TypeCommon: TypeCommon{TypeName: "ptr", FldName: "arg", TypeSize: 8}, Type: &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int32", TypeSize: 4}}, Kind: 2, RangeEnd: 1}}, &PtrType{TypeCommon: TypeCommon{TypeName: "ptr", FldName: "arglen", TypeSize: 8}, Type: &LenType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "len", TypeSize: 8}}, Buf: "arg"}}, }}, {NR: 340, Name: "getsockopt$bt_BT_FLUSHABLE", CallName: "getsockopt", Args: []Type{ @@ -33844,7 +33849,7 @@ var syscalls_ppc64le = []*Syscall{ &ResourceType{TypeCommon: TypeCommon{TypeName: "sock_bt", FldName: "fd", TypeSize: 4}}, &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "level", TypeSize: 8}}, Val: 274}, &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "opt", TypeSize: 8}}, Val: 7}, - &PtrType{TypeCommon: TypeCommon{TypeName: "ptr", FldName: "arg", TypeSize: 8}, Type: &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int32", TypeSize: 4}}}}, + &PtrType{TypeCommon: TypeCommon{TypeName: "ptr", FldName: "arg", TypeSize: 8}, Type: &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int32", TypeSize: 4}}, Kind: 2, RangeEnd: 1}}, &LenType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "len", FldName: "arglen", TypeSize: 8}}, Buf: "arg"}, }}, {NR: 339, Name: "setsockopt$bt_BT_FLUSHABLE", CallName: "setsockopt", Args: []Type{ @@ -33886,7 +33891,7 @@ var syscalls_ppc64le = []*Syscall{ &ResourceType{TypeCommon: TypeCommon{TypeName: "sock_bt", FldName: "fd", TypeSize: 4}}, &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "level", TypeSize: 8}}, Val: 274}, &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "opt", TypeSize: 8}}, Val: 11}, - &PtrType{TypeCommon: TypeCommon{TypeName: "ptr", FldName: "arg", TypeSize: 8}, Type: &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int16", TypeSize: 2}}}}, + &PtrType{TypeCommon: TypeCommon{TypeName: "ptr", FldName: "arg", TypeSize: 8}, Type: &FlagsType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "bt_voice_settings", TypeSize: 2}}, Vals: []uint64{3, 96}, BitMask: true}}, &LenType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "len", FldName: "arglen", TypeSize: 8}}, Buf: "arg"}, }}, {NR: 339, Name: "setsockopt$bt_hci_HCI_DATA_DIR", CallName: "setsockopt", Args: []Type{ @@ -37313,10 +37318,12 @@ var consts_ppc64le = []ConstValue{ {Name: "BPF_MAP_GET_FD_BY_ID", Value: 14}, {Name: "BPF_MAP_GET_NEXT_ID", Value: 12}, {Name: "BPF_MAP_GET_NEXT_KEY", Value: 4}, + {Name: "BPF_MAP_LOOKUP_AND_DELETE_ELEM", Value: 21}, {Name: "BPF_MAP_LOOKUP_ELEM", Value: 1}, {Name: "BPF_MAP_TYPE_ARRAY", Value: 2}, {Name: "BPF_MAP_TYPE_ARRAY_OF_MAPS", Value: 12}, {Name: "BPF_MAP_TYPE_CGROUP_ARRAY", Value: 8}, + {Name: "BPF_MAP_TYPE_CGROUP_STORAGE", Value: 19}, {Name: "BPF_MAP_TYPE_CPUMAP", Value: 16}, {Name: "BPF_MAP_TYPE_DEVMAP", Value: 14}, {Name: "BPF_MAP_TYPE_HASH", Value: 1}, @@ -37325,11 +37332,17 @@ var consts_ppc64le = []ConstValue{ {Name: "BPF_MAP_TYPE_LRU_HASH", Value: 9}, {Name: "BPF_MAP_TYPE_LRU_PERCPU_HASH", Value: 10}, {Name: "BPF_MAP_TYPE_PERCPU_ARRAY", Value: 6}, + {Name: "BPF_MAP_TYPE_PERCPU_CGROUP_STORAGE", Value: 21}, {Name: "BPF_MAP_TYPE_PERCPU_HASH", Value: 5}, {Name: "BPF_MAP_TYPE_PERF_EVENT_ARRAY", Value: 4}, {Name: "BPF_MAP_TYPE_PROG_ARRAY", Value: 3}, + {Name: "BPF_MAP_TYPE_QUEUE", Value: 22}, + {Name: "BPF_MAP_TYPE_REUSEPORT_SOCKARRAY", Value: 20}, + {Name: "BPF_MAP_TYPE_SOCKHASH", Value: 18}, {Name: "BPF_MAP_TYPE_SOCKMAP", Value: 15}, + {Name: "BPF_MAP_TYPE_STACK", Value: 23}, {Name: "BPF_MAP_TYPE_STACK_TRACE", Value: 7}, + {Name: "BPF_MAP_TYPE_XSKMAP", Value: 17}, {Name: "BPF_MAP_UPDATE_ELEM", Value: 2}, {Name: "BPF_MEM0", Value: 3}, {Name: "BPF_MOD0", Value: 9}, @@ -37353,15 +37366,19 @@ var consts_ppc64le = []ConstValue{ {Name: "BPF_PROG_TYPE_CGROUP_SKB", Value: 8}, {Name: "BPF_PROG_TYPE_CGROUP_SOCK", Value: 9}, {Name: "BPF_PROG_TYPE_CGROUP_SOCK_ADDR", Value: 18}, + {Name: "BPF_PROG_TYPE_FLOW_DISSECTOR", Value: 22}, {Name: "BPF_PROG_TYPE_KPROBE", Value: 2}, + {Name: "BPF_PROG_TYPE_LIRC_MODE2", Value: 20}, {Name: "BPF_PROG_TYPE_LWT_IN", Value: 10}, {Name: "BPF_PROG_TYPE_LWT_OUT", Value: 11}, + {Name: "BPF_PROG_TYPE_LWT_SEG6LOCAL", Value: 19}, {Name: "BPF_PROG_TYPE_LWT_XMIT", Value: 12}, {Name: "BPF_PROG_TYPE_PERF_EVENT", Value: 7}, {Name: "BPF_PROG_TYPE_RAW_TRACEPOINT", Value: 17}, {Name: "BPF_PROG_TYPE_SCHED_ACT", Value: 4}, {Name: "BPF_PROG_TYPE_SCHED_CLS", Value: 3}, {Name: "BPF_PROG_TYPE_SK_MSG", Value: 16}, + {Name: "BPF_PROG_TYPE_SK_REUSEPORT", Value: 21}, {Name: "BPF_PROG_TYPE_SK_SKB", Value: 14}, {Name: "BPF_PROG_TYPE_SOCKET_FILTER", Value: 1}, {Name: "BPF_PROG_TYPE_SOCK_OPS", Value: 13}, @@ -37427,6 +37444,8 @@ var consts_ppc64le = []ConstValue{ {Name: "BT_SECURITY", Value: 4}, {Name: "BT_SNDMTU", Value: 12}, {Name: "BT_VOICE", Value: 11}, + {Name: "BT_VOICE_CVSD_16BIT", Value: 96}, + {Name: "BT_VOICE_TRANSPARENT", Value: 3}, {Name: "CAIFPROTO_AT"}, {Name: "CAIFPROTO_DEBUG", Value: 5}, {Name: "CAIFSO_LINK_SELECT", Value: 127}, @@ -37546,7 +37565,6 @@ var consts_ppc64le = []ConstValue{ {Name: "CRYPTO_ALG_ASYNC", Value: 128}, {Name: "CRYPTO_ALG_DEAD", Value: 32}, {Name: "CRYPTO_ALG_DYING", Value: 64}, - {Name: "CRYPTO_ALG_GENIV", Value: 512}, {Name: "CRYPTO_ALG_INSTANCE", Value: 2048}, {Name: "CRYPTO_ALG_INTERNAL", Value: 8192}, {Name: "CRYPTO_ALG_KERN_DRIVER_ONLY", Value: 4096}, @@ -37561,7 +37579,6 @@ var consts_ppc64le = []ConstValue{ {Name: "CRYPTO_ALG_TYPE_CIPHER", Value: 1}, {Name: "CRYPTO_ALG_TYPE_COMPRESS", Value: 2}, {Name: "CRYPTO_ALG_TYPE_DIGEST", Value: 14}, - {Name: "CRYPTO_ALG_TYPE_GIVCIPHER", Value: 6}, {Name: "CRYPTO_ALG_TYPE_HASH", Value: 14}, {Name: "CRYPTO_ALG_TYPE_MASK", Value: 15}, {Name: "CRYPTO_ALG_TYPE_PCOMPRESS", Value: 15}, @@ -38373,6 +38390,8 @@ var consts_ppc64le = []ConstValue{ {Name: "HIDPCONNDEL", Value: 2147764425}, {Name: "HIDPGETCONNINFO", Value: 1074022611}, {Name: "HIDPGETCONNLIST", Value: 1074022610}, + {Name: "HIDP_BOOT_PROTOCOL_MODE_BIT", Value: 2}, + {Name: "HIDP_VIRTUAL_CABLE_UNPLUG_BIT", Value: 1}, {Name: "HW_BREAKPOINT_EMPTY"}, {Name: "HW_BREAKPOINT_R", Value: 1}, {Name: "HW_BREAKPOINT_W", Value: 2}, @@ -42806,4 +42825,4 @@ var consts_ppc64le = []ConstValue{ {Name: "bpf_insn_load_imm_dw", Value: 24}, } -const revision_ppc64le = "a01d6ae16722c54663a92914026bf8056a3326f9" +const revision_ppc64le = "b8d7803b20f9cb0c1f15dbd5579f4b628a51d66f" diff --git a/sys/linux/socket_alg.txt b/sys/linux/socket_alg.txt index 2c7b82551..0869dee72 100644 --- a/sys/linux/socket_alg.txt +++ b/sys/linux/socket_alg.txt @@ -94,7 +94,7 @@ cmsghdr_alg_assoc { assoc int32 } [align_ptr] -af_alg_type = CRYPTO_ALG_TYPE_MASK, CRYPTO_ALG_TYPE_CIPHER, CRYPTO_ALG_TYPE_COMPRESS, CRYPTO_ALG_TYPE_AEAD, CRYPTO_ALG_TYPE_BLKCIPHER, CRYPTO_ALG_TYPE_ABLKCIPHER, CRYPTO_ALG_TYPE_GIVCIPHER, CRYPTO_ALG_TYPE_DIGEST, CRYPTO_ALG_TYPE_HASH, CRYPTO_ALG_TYPE_SHASH, CRYPTO_ALG_TYPE_AHASH, CRYPTO_ALG_TYPE_RNG, CRYPTO_ALG_TYPE_AKCIPHER, CRYPTO_ALG_TYPE_PCOMPRESS, CRYPTO_ALG_LARVAL, CRYPTO_ALG_DEAD, CRYPTO_ALG_DYING, CRYPTO_ALG_ASYNC, CRYPTO_ALG_NEED_FALLBACK, CRYPTO_ALG_GENIV, CRYPTO_ALG_TESTED, CRYPTO_ALG_INSTANCE, CRYPTO_ALG_KERN_DRIVER_ONLY, CRYPTO_ALG_INTERNAL +af_alg_type = CRYPTO_ALG_TYPE_MASK, CRYPTO_ALG_TYPE_CIPHER, CRYPTO_ALG_TYPE_COMPRESS, CRYPTO_ALG_TYPE_AEAD, CRYPTO_ALG_TYPE_BLKCIPHER, CRYPTO_ALG_TYPE_ABLKCIPHER, CRYPTO_ALG_TYPE_DIGEST, CRYPTO_ALG_TYPE_HASH, CRYPTO_ALG_TYPE_SHASH, CRYPTO_ALG_TYPE_AHASH, CRYPTO_ALG_TYPE_RNG, CRYPTO_ALG_TYPE_AKCIPHER, CRYPTO_ALG_TYPE_PCOMPRESS, CRYPTO_ALG_LARVAL, CRYPTO_ALG_DEAD, CRYPTO_ALG_DYING, CRYPTO_ALG_ASYNC, CRYPTO_ALG_NEED_FALLBACK, CRYPTO_ALG_TESTED, CRYPTO_ALG_INSTANCE, CRYPTO_ALG_KERN_DRIVER_ONLY, CRYPTO_ALG_INTERNAL alg_op_op = ALG_OP_DECRYPT, ALG_OP_ENCRYPT diff --git a/sys/linux/socket_alg_386.const b/sys/linux/socket_alg_386.const index d9557882c..24d052465 100644 --- a/sys/linux/socket_alg_386.const +++ b/sys/linux/socket_alg_386.const @@ -10,7 +10,6 @@ ALG_SET_OP = 3 CRYPTO_ALG_ASYNC = 128 CRYPTO_ALG_DEAD = 32 CRYPTO_ALG_DYING = 64 -CRYPTO_ALG_GENIV = 512 CRYPTO_ALG_INSTANCE = 2048 CRYPTO_ALG_INTERNAL = 8192 CRYPTO_ALG_KERN_DRIVER_ONLY = 4096 @@ -25,7 +24,6 @@ CRYPTO_ALG_TYPE_BLKCIPHER = 4 CRYPTO_ALG_TYPE_CIPHER = 1 CRYPTO_ALG_TYPE_COMPRESS = 2 CRYPTO_ALG_TYPE_DIGEST = 14 -CRYPTO_ALG_TYPE_GIVCIPHER = 6 CRYPTO_ALG_TYPE_HASH = 14 CRYPTO_ALG_TYPE_MASK = 15 CRYPTO_ALG_TYPE_PCOMPRESS = 15 diff --git a/sys/linux/socket_alg_amd64.const b/sys/linux/socket_alg_amd64.const index eb78724f9..80c195158 100644 --- a/sys/linux/socket_alg_amd64.const +++ b/sys/linux/socket_alg_amd64.const @@ -10,7 +10,6 @@ ALG_SET_OP = 3 CRYPTO_ALG_ASYNC = 128 CRYPTO_ALG_DEAD = 32 CRYPTO_ALG_DYING = 64 -CRYPTO_ALG_GENIV = 512 CRYPTO_ALG_INSTANCE = 2048 CRYPTO_ALG_INTERNAL = 8192 CRYPTO_ALG_KERN_DRIVER_ONLY = 4096 @@ -25,7 +24,6 @@ CRYPTO_ALG_TYPE_BLKCIPHER = 4 CRYPTO_ALG_TYPE_CIPHER = 1 CRYPTO_ALG_TYPE_COMPRESS = 2 CRYPTO_ALG_TYPE_DIGEST = 14 -CRYPTO_ALG_TYPE_GIVCIPHER = 6 CRYPTO_ALG_TYPE_HASH = 14 CRYPTO_ALG_TYPE_MASK = 15 CRYPTO_ALG_TYPE_PCOMPRESS = 15 diff --git a/sys/linux/socket_alg_arm.const b/sys/linux/socket_alg_arm.const index a1f66ab65..cb33a7f02 100644 --- a/sys/linux/socket_alg_arm.const +++ b/sys/linux/socket_alg_arm.const @@ -10,7 +10,6 @@ ALG_SET_OP = 3 CRYPTO_ALG_ASYNC = 128 CRYPTO_ALG_DEAD = 32 CRYPTO_ALG_DYING = 64 -CRYPTO_ALG_GENIV = 512 CRYPTO_ALG_INSTANCE = 2048 CRYPTO_ALG_INTERNAL = 8192 CRYPTO_ALG_KERN_DRIVER_ONLY = 4096 @@ -25,7 +24,6 @@ CRYPTO_ALG_TYPE_BLKCIPHER = 4 CRYPTO_ALG_TYPE_CIPHER = 1 CRYPTO_ALG_TYPE_COMPRESS = 2 CRYPTO_ALG_TYPE_DIGEST = 14 -CRYPTO_ALG_TYPE_GIVCIPHER = 6 CRYPTO_ALG_TYPE_HASH = 14 CRYPTO_ALG_TYPE_MASK = 15 CRYPTO_ALG_TYPE_PCOMPRESS = 15 diff --git a/sys/linux/socket_alg_arm64.const b/sys/linux/socket_alg_arm64.const index 17a9a0c2a..063329b29 100644 --- a/sys/linux/socket_alg_arm64.const +++ b/sys/linux/socket_alg_arm64.const @@ -10,7 +10,6 @@ ALG_SET_OP = 3 CRYPTO_ALG_ASYNC = 128 CRYPTO_ALG_DEAD = 32 CRYPTO_ALG_DYING = 64 -CRYPTO_ALG_GENIV = 512 CRYPTO_ALG_INSTANCE = 2048 CRYPTO_ALG_INTERNAL = 8192 CRYPTO_ALG_KERN_DRIVER_ONLY = 4096 @@ -25,7 +24,6 @@ CRYPTO_ALG_TYPE_BLKCIPHER = 4 CRYPTO_ALG_TYPE_CIPHER = 1 CRYPTO_ALG_TYPE_COMPRESS = 2 CRYPTO_ALG_TYPE_DIGEST = 14 -CRYPTO_ALG_TYPE_GIVCIPHER = 6 CRYPTO_ALG_TYPE_HASH = 14 CRYPTO_ALG_TYPE_MASK = 15 CRYPTO_ALG_TYPE_PCOMPRESS = 15 diff --git a/sys/linux/socket_alg_ppc64le.const b/sys/linux/socket_alg_ppc64le.const index 01acdd6f0..38f6cfb68 100644 --- a/sys/linux/socket_alg_ppc64le.const +++ b/sys/linux/socket_alg_ppc64le.const @@ -10,7 +10,6 @@ ALG_SET_OP = 3 CRYPTO_ALG_ASYNC = 128 CRYPTO_ALG_DEAD = 32 CRYPTO_ALG_DYING = 64 -CRYPTO_ALG_GENIV = 512 CRYPTO_ALG_INSTANCE = 2048 CRYPTO_ALG_INTERNAL = 8192 CRYPTO_ALG_KERN_DRIVER_ONLY = 4096 @@ -25,7 +24,6 @@ CRYPTO_ALG_TYPE_BLKCIPHER = 4 CRYPTO_ALG_TYPE_CIPHER = 1 CRYPTO_ALG_TYPE_COMPRESS = 2 CRYPTO_ALG_TYPE_DIGEST = 14 -CRYPTO_ALG_TYPE_GIVCIPHER = 6 CRYPTO_ALG_TYPE_HASH = 14 CRYPTO_ALG_TYPE_MASK = 15 CRYPTO_ALG_TYPE_PCOMPRESS = 15 diff --git a/sys/linux/socket_bluetooth.txt b/sys/linux/socket_bluetooth.txt index e8604d51d..e88d5bdf9 100644 --- a/sys/linux/socket_bluetooth.txt +++ b/sys/linux/socket_bluetooth.txt @@ -85,9 +85,9 @@ ioctl$sock_bt_bnep_BNEPGETSUPPFEAT(fd sock_bt_bnep, cmd const[BNEPGETSUPPFEAT], setsockopt$bt_BT_SECURITY(fd sock_bt, level const[SOL_BLUETOOTH], opt const[BT_SECURITY], arg ptr[in, bt_security], arglen len[arg]) getsockopt$bt_BT_SECURITY(fd sock_bt, level const[SOL_BLUETOOTH], opt const[BT_SECURITY], arg ptr[out, bt_security], arglen len[arg]) -setsockopt$bt_BT_DEFER_SETUP(fd sock_bt, level const[SOL_BLUETOOTH], opt const[BT_DEFER_SETUP], arg ptr[in, int32], arglen len[arg]) -getsockopt$bt_BT_DEFER_SETUP(fd sock_bt, level const[SOL_BLUETOOTH], opt const[BT_DEFER_SETUP], arg ptr[in, int32], arglen ptr[in, len[arg, intptr]]) -setsockopt$bt_BT_VOICE(fd sock_bt, level const[SOL_BLUETOOTH], opt const[BT_VOICE], arg ptr[in, int16], arglen len[arg]) +setsockopt$bt_BT_DEFER_SETUP(fd sock_bt, level const[SOL_BLUETOOTH], opt const[BT_DEFER_SETUP], arg ptr[in, bool32], arglen len[arg]) +getsockopt$bt_BT_DEFER_SETUP(fd sock_bt, level const[SOL_BLUETOOTH], opt const[BT_DEFER_SETUP], arg ptr[in, bool32], arglen ptr[in, len[arg, intptr]]) +setsockopt$bt_BT_VOICE(fd sock_bt, level const[SOL_BLUETOOTH], opt const[BT_VOICE], arg ptr[in, flags[bt_voice_settings, int16]], arglen len[arg]) getsockopt$bt_BT_VOICE(fd sock_bt, level const[SOL_BLUETOOTH], opt const[BT_VOICE], arg ptr[in, int16], arglen ptr[in, len[arg, intptr]]) setsockopt$bt_BT_FLUSHABLE(fd sock_bt, level const[SOL_BLUETOOTH], opt const[BT_FLUSHABLE], arg ptr[in, int32], arglen len[arg]) getsockopt$bt_BT_FLUSHABLE(fd sock_bt, level const[SOL_BLUETOOTH], opt const[BT_FLUSHABLE], arg ptr[in, int32], arglen ptr[in, len[arg, intptr]]) @@ -100,6 +100,8 @@ getsockopt$bt_BT_SNDMTU(fd sock_bt, level const[SOL_BLUETOOTH], opt const[BT_SND setsockopt$bt_BT_RCVMTU(fd sock_bt, level const[SOL_BLUETOOTH], opt const[BT_RCVMTU], arg ptr[in, int16], arglen len[arg]) getsockopt$bt_BT_RCVMTU(fd sock_bt, level const[SOL_BLUETOOTH], opt const[BT_RCVMTU], arg ptr[in, int16], arglen ptr[in, len[arg, intptr]]) +bt_voice_settings = BT_VOICE_TRANSPARENT, BT_VOICE_CVSD_16BIT + sockaddr_hci { fam const[AF_BLUETOOTH, int16] dev ifindex @@ -177,18 +179,24 @@ hidp_connadd_req { ctrlsk sock intrsk sock parser int16 - rdsize int16 - rddata buffer[in] + rdsize len[rddata, int16] + rddata ptr[in, array[int8]] country int8 subclas int8 vendor int16 product int16 version int16 - flags int32 + flags flags[hidp_connadd_flags, int32] idleto int32 - name array[int8] + name string[hidp_connadd_names, 128] } +hidp_connadd_names = "syz0", "syz1" +hidp_connadd_flags = HIDP_VIRTUAL_CABLE_UNPLUG_BIT, HIDP_BOOT_PROTOCOL_MODE_BIT + +define HIDP_VIRTUAL_CABLE_UNPLUG_BIT 1<<HIDP_VIRTUAL_CABLE_UNPLUG +define HIDP_BOOT_PROTOCOL_MODE_BIT 1<<HIDP_BOOT_PROTOCOL_MODE + hidp_conndel_req { addr bdaddr flags int32 diff --git a/sys/linux/socket_bluetooth_386.const b/sys/linux/socket_bluetooth_386.const index 88650a31f..487880eb6 100644 --- a/sys/linux/socket_bluetooth_386.const +++ b/sys/linux/socket_bluetooth_386.const @@ -20,6 +20,8 @@ BT_RCVMTU = 13 BT_SECURITY = 4 BT_SNDMTU = 12 BT_VOICE = 11 +BT_VOICE_CVSD_16BIT = 96 +BT_VOICE_TRANSPARENT = 3 CMTPCONNADD = 1074021320 CMTPCONNDEL = 1074021321 CMTPGETCONNINFO = 2147763155 @@ -56,6 +58,8 @@ HIDPCONNADD = 1074022600 HIDPCONNDEL = 1074022601 HIDPGETCONNINFO = 2147764435 HIDPGETCONNLIST = 2147764434 +HIDP_BOOT_PROTOCOL_MODE_BIT = 2 +HIDP_VIRTUAL_CABLE_UNPLUG_BIT = 1 L2CAP_CONNINFO = 2 L2CAP_LM = 3 L2CAP_LM_AUTH = 2 diff --git a/sys/linux/socket_bluetooth_amd64.const b/sys/linux/socket_bluetooth_amd64.const index 389133ae8..81fe4d666 100644 --- a/sys/linux/socket_bluetooth_amd64.const +++ b/sys/linux/socket_bluetooth_amd64.const @@ -20,6 +20,8 @@ BT_RCVMTU = 13 BT_SECURITY = 4 BT_SNDMTU = 12 BT_VOICE = 11 +BT_VOICE_CVSD_16BIT = 96 +BT_VOICE_TRANSPARENT = 3 CMTPCONNADD = 1074021320 CMTPCONNDEL = 1074021321 CMTPGETCONNINFO = 2147763155 @@ -56,6 +58,8 @@ HIDPCONNADD = 1074022600 HIDPCONNDEL = 1074022601 HIDPGETCONNINFO = 2147764435 HIDPGETCONNLIST = 2147764434 +HIDP_BOOT_PROTOCOL_MODE_BIT = 2 +HIDP_VIRTUAL_CABLE_UNPLUG_BIT = 1 L2CAP_CONNINFO = 2 L2CAP_LM = 3 L2CAP_LM_AUTH = 2 diff --git a/sys/linux/socket_bluetooth_arm.const b/sys/linux/socket_bluetooth_arm.const index 38dd33b17..bbd3c0240 100644 --- a/sys/linux/socket_bluetooth_arm.const +++ b/sys/linux/socket_bluetooth_arm.const @@ -20,6 +20,8 @@ BT_RCVMTU = 13 BT_SECURITY = 4 BT_SNDMTU = 12 BT_VOICE = 11 +BT_VOICE_CVSD_16BIT = 96 +BT_VOICE_TRANSPARENT = 3 CMTPCONNADD = 1074021320 CMTPCONNDEL = 1074021321 CMTPGETCONNINFO = 2147763155 @@ -56,6 +58,8 @@ HIDPCONNADD = 1074022600 HIDPCONNDEL = 1074022601 HIDPGETCONNINFO = 2147764435 HIDPGETCONNLIST = 2147764434 +HIDP_BOOT_PROTOCOL_MODE_BIT = 2 +HIDP_VIRTUAL_CABLE_UNPLUG_BIT = 1 L2CAP_CONNINFO = 2 L2CAP_LM = 3 L2CAP_LM_AUTH = 2 diff --git a/sys/linux/socket_bluetooth_arm64.const b/sys/linux/socket_bluetooth_arm64.const index 0cebdb7d8..6f6d9f661 100644 --- a/sys/linux/socket_bluetooth_arm64.const +++ b/sys/linux/socket_bluetooth_arm64.const @@ -20,6 +20,8 @@ BT_RCVMTU = 13 BT_SECURITY = 4 BT_SNDMTU = 12 BT_VOICE = 11 +BT_VOICE_CVSD_16BIT = 96 +BT_VOICE_TRANSPARENT = 3 CMTPCONNADD = 1074021320 CMTPCONNDEL = 1074021321 CMTPGETCONNINFO = 2147763155 @@ -56,6 +58,8 @@ HIDPCONNADD = 1074022600 HIDPCONNDEL = 1074022601 HIDPGETCONNINFO = 2147764435 HIDPGETCONNLIST = 2147764434 +HIDP_BOOT_PROTOCOL_MODE_BIT = 2 +HIDP_VIRTUAL_CABLE_UNPLUG_BIT = 1 L2CAP_CONNINFO = 2 L2CAP_LM = 3 L2CAP_LM_AUTH = 2 diff --git a/sys/linux/socket_bluetooth_ppc64le.const b/sys/linux/socket_bluetooth_ppc64le.const index a655e4293..79b403465 100644 --- a/sys/linux/socket_bluetooth_ppc64le.const +++ b/sys/linux/socket_bluetooth_ppc64le.const @@ -20,6 +20,8 @@ BT_RCVMTU = 13 BT_SECURITY = 4 BT_SNDMTU = 12 BT_VOICE = 11 +BT_VOICE_CVSD_16BIT = 96 +BT_VOICE_TRANSPARENT = 3 CMTPCONNADD = 2147763144 CMTPCONNDEL = 2147763145 CMTPGETCONNINFO = 1074021331 @@ -56,6 +58,8 @@ HIDPCONNADD = 2147764424 HIDPCONNDEL = 2147764425 HIDPGETCONNINFO = 1074022611 HIDPGETCONNLIST = 1074022610 +HIDP_BOOT_PROTOCOL_MODE_BIT = 2 +HIDP_VIRTUAL_CABLE_UNPLUG_BIT = 1 L2CAP_CONNINFO = 2 L2CAP_LM = 3 L2CAP_LM_AUTH = 2 diff --git a/sys/linux/sys.txt b/sys/linux/sys.txt index 5eb01c073..48f312458 100644 --- a/sys/linux/sys.txt +++ b/sys/linux/sys.txt @@ -434,6 +434,9 @@ rseq_cs_flags = RSEQ_CS_FLAG_NO_RESTART_ON_PREEMPT, RSEQ_CS_FLAG_NO_RESTART_ON_S syz_open_procfs(pid pid, file ptr[in, string[procfs_file]]) fd +# TODO: some of net files are only available in the init namespace (e.g. bluetooth bnep and hci). +# We could find some way to open these files in the init namespace +# esp. taking into account that we create bluetooth sockets in init namespace. procfs_file = "auxv", "cmdline", "environ", "autogroup", "cgroup", "clear_refs", "comm", "coredump_filter", "cpuset", "gid_map", "io", "limits", "loginuid", "maps", "mountinfo", "mounts", "mountstats", "numa_maps", "oom_adj", "oom_score", "oom_score_adj", "pagemap", "personality", "projid_map", "sched", "schedstat", "sessionid", "setgroups", "smaps", "smaps_rollup", "stack", "stat", "statm", "status", "syscall", "timers", "uid_map", "wchan", "map_files", "attr", "attr/current", "attr/exec", "attr/fscreate", "attr/keycreate", "attr/prev", "attr/sockcreate", "ns", "children", "task", "fd", "fd/3", "fd/4", "fdinfo", "fdinfo/3", "fdinfo/4", "net", "net/anycast6", "net/arp", "net/bnep", "net/connector", "net/dev", "net/dev_mcast", "net/dev_snmp6", "net/fib_trie", "net/fib_triestat", "net/hci", "net/icmp", "net/icmp6", "net/if_inet6", "net/igmp", "net/igmp6", "net/ip6_flowlabel", "net/ip6_mr_cache", "net/ip6_mr_vif", "net/ip6_tables_matches", "net/ip6_tables_names", "net/ip6_tables_targets", "net/ip_mr_cache", "net/ip_mr_vif", "net/ip_tables_matches", "net/ip_tables_names", "net/ip_tables_targets", "net/ipv6_route", "net/ipx", "net/l2cap", "net/llc", "net/mcfilter", "net/mcfilter6", "net/netfilter", "net/netlink", "net/netstat", "net/nfsfs", "net/packet", "net/protocols", "net/psched", "net/ptype", "net/raw", "net/raw6", "net/rfcomm", "net/route", "net/rpc", "net/rt6_stats", "net/rt_acct", "net/rt_cache", "net/sco", "net/sctp", "net/snmp", "net/snmp6", "net/sockstat", "net/sockstat6", "net/softnet_stat", "net/stat", "net/tcp", "net/tcp6", "net/udp", "net/udp6", "net/udplite", "net/udplite6", "net/unix", "net/wireless", "net/xfrm_stat", "net/ip_vs", "net/ip_vs_stats", "net/ip_vs_stats_percpu" # Uncomment on your own account. |
