diff --git a/executor/defs.h b/executor/defs.h index 86dcaa8c..04f79b36 100644 --- a/executor/defs.h +++ b/executor/defs.h @@ -60,7 +60,7 @@ #if GOARCH_386 #define GOARCH "386" -#define SYZ_REVISION "8af34e9d497783789dc623e6008be8c98b782a35" +#define SYZ_REVISION "e1337ff46a546061c6a6061490f38ee242f4b072" #define SYZ_EXECUTOR_USES_FORK_SERVER 1 #define SYZ_EXECUTOR_USES_SHMEM 1 #define SYZ_PAGE_SIZE 4096 @@ -70,7 +70,7 @@ #if GOARCH_amd64 #define GOARCH "amd64" -#define SYZ_REVISION "d2efaf232fd23ce4c5158000b4644d50c9375db0" +#define SYZ_REVISION "76561d0a7b6dee60269bef9fedf506e062a2ec19" #define SYZ_EXECUTOR_USES_FORK_SERVER 1 #define SYZ_EXECUTOR_USES_SHMEM 1 #define SYZ_PAGE_SIZE 4096 @@ -80,7 +80,7 @@ #if GOARCH_arm #define GOARCH "arm" -#define SYZ_REVISION "5dd0744dbc7da7bf396e594b93666959a0dfb8ab" +#define SYZ_REVISION "c4282a5fc9b45f29e7cf834d9201c902a4c33f5a" #define SYZ_EXECUTOR_USES_FORK_SERVER 1 #define SYZ_EXECUTOR_USES_SHMEM 1 #define SYZ_PAGE_SIZE 4096 @@ -90,7 +90,7 @@ #if GOARCH_arm64 #define GOARCH "arm64" -#define SYZ_REVISION "46f6ae162f1fe97659e679e64bb0ee0f86204fa7" +#define SYZ_REVISION "4c5e0d87ff52638dd93a6bbac52c6b6f00954da9" #define SYZ_EXECUTOR_USES_FORK_SERVER 1 #define SYZ_EXECUTOR_USES_SHMEM 1 #define SYZ_PAGE_SIZE 4096 @@ -100,7 +100,7 @@ #if GOARCH_ppc64le #define GOARCH "ppc64le" -#define SYZ_REVISION "346fc9d6dd8da59799817acda9912b876ce04ccc" +#define SYZ_REVISION "ea43c338e14bea33c0928f245f9524d30f8733bf" #define SYZ_EXECUTOR_USES_FORK_SERVER 1 #define SYZ_EXECUTOR_USES_SHMEM 1 #define SYZ_PAGE_SIZE 4096 diff --git a/executor/syscalls.h b/executor/syscalls.h index 3de6942e..4a44cdd5 100644 --- a/executor/syscalls.h +++ b/executor/syscalls.h @@ -3025,6 +3025,16 @@ const call_t syscalls[] = { {"mq_timedsend", 279}, {"mq_unlink", 278}, {"mremap", 163}, + {"msgctl$IPC_INFO", 402}, + {"msgctl$IPC_RMID", 402}, + {"msgctl$IPC_SET", 402}, + {"msgctl$IPC_STAT", 402}, + {"msgctl$MSG_INFO", 402}, + {"msgctl$MSG_STAT", 402}, + {"msgget", 399}, + {"msgget$private", 399}, + {"msgrcv", 401}, + {"msgsnd", 400}, {"msync", 144}, {"munlock", 151}, {"munlockall", 153}, @@ -3286,6 +3296,21 @@ const call_t syscalls[] = { {"sched_yield", 158}, {"seccomp", 354}, {"select", 82}, + {"semctl$GETALL", 394}, + {"semctl$GETNCNT", 394}, + {"semctl$GETPID", 394}, + {"semctl$GETVAL", 394}, + {"semctl$GETZCNT", 394}, + {"semctl$IPC_INFO", 394}, + {"semctl$IPC_RMID", 394}, + {"semctl$IPC_SET", 394}, + {"semctl$IPC_STAT", 394}, + {"semctl$SEM_INFO", 394}, + {"semctl$SEM_STAT", 394}, + {"semctl$SETALL", 394}, + {"semctl$SETVAL", 394}, + {"semget", 393}, + {"semget$private", 393}, {"sendfile", 187}, {"sendfile64", 239}, {"sendmmsg", 345}, @@ -3697,6 +3722,18 @@ const call_t syscalls[] = { {"setxattr$trusted_overlay_origin", 226}, {"setxattr$trusted_overlay_redirect", 226}, {"setxattr$trusted_overlay_upper", 226}, + {"shmat", 397}, + {"shmctl$IPC_INFO", 396}, + {"shmctl$IPC_RMID", 396}, + {"shmctl$IPC_SET", 396}, + {"shmctl$IPC_STAT", 396}, + {"shmctl$SHM_INFO", 396}, + {"shmctl$SHM_LOCK", 396}, + {"shmctl$SHM_STAT", 396}, + {"shmctl$SHM_UNLOCK", 396}, + {"shmdt", 398}, + {"shmget", 395}, + {"shmget$private", 395}, {"shutdown", 373}, {"sigaltstack", 186}, {"signalfd", 321}, @@ -7310,7 +7347,6 @@ const call_t syscalls[] = { {"ioctl$IMGETVERSION", 54}, {"ioctl$IMHOLD_L1", 54}, {"ioctl$IMSETDEVNAME", 54}, - {"ioctl$INOTIFY_IOC_SETNEXTWD", 54}, {"ioctl$IOC_PR_CLEAR", 54}, {"ioctl$IOC_PR_PREEMPT", 54}, {"ioctl$IOC_PR_PREEMPT_ABORT", 54}, @@ -8054,6 +8090,7 @@ const call_t syscalls[] = { {"mbind", 319}, {"membarrier", 389}, {"memfd_create", 385}, + {"migrate_pages", 400}, {"mincore", 219}, {"mkdir", 39}, {"mkdirat", 323}, @@ -12333,7 +12370,6 @@ const call_t syscalls[] = { {"ioctl$IMGETVERSION", 54}, {"ioctl$IMHOLD_L1", 54}, {"ioctl$IMSETDEVNAME", 54}, - {"ioctl$INOTIFY_IOC_SETNEXTWD", 54}, {"ioctl$IOC_PR_CLEAR", 54}, {"ioctl$IOC_PR_PREEMPT", 54}, {"ioctl$IOC_PR_PREEMPT_ABORT", 54}, @@ -13005,6 +13041,16 @@ const call_t syscalls[] = { {"mq_timedsend", 264}, {"mq_unlink", 263}, {"mremap", 163}, + {"msgctl$IPC_INFO", 402}, + {"msgctl$IPC_RMID", 402}, + {"msgctl$IPC_SET", 402}, + {"msgctl$IPC_STAT", 402}, + {"msgctl$MSG_INFO", 402}, + {"msgctl$MSG_STAT", 402}, + {"msgget", 399}, + {"msgget$private", 399}, + {"msgrcv", 401}, + {"msgsnd", 400}, {"msync", 144}, {"munlock", 151}, {"munlockall", 153}, @@ -13266,6 +13312,22 @@ const call_t syscalls[] = { {"sched_yield", 158}, {"seccomp", 358}, {"select", 82}, + {"semctl$GETALL", 394}, + {"semctl$GETNCNT", 394}, + {"semctl$GETPID", 394}, + {"semctl$GETVAL", 394}, + {"semctl$GETZCNT", 394}, + {"semctl$IPC_INFO", 394}, + {"semctl$IPC_RMID", 394}, + {"semctl$IPC_SET", 394}, + {"semctl$IPC_STAT", 394}, + {"semctl$SEM_INFO", 394}, + {"semctl$SEM_STAT", 394}, + {"semctl$SETALL", 394}, + {"semctl$SETVAL", 394}, + {"semget", 393}, + {"semget$private", 393}, + {"semtimedop", 392}, {"sendfile", 186}, {"sendmmsg", 349}, {"sendmmsg$alg", 349}, @@ -13675,6 +13737,18 @@ const call_t syscalls[] = { {"setxattr$trusted_overlay_origin", 209}, {"setxattr$trusted_overlay_redirect", 209}, {"setxattr$trusted_overlay_upper", 209}, + {"shmat", 397}, + {"shmctl$IPC_INFO", 396}, + {"shmctl$IPC_RMID", 396}, + {"shmctl$IPC_SET", 396}, + {"shmctl$IPC_STAT", 396}, + {"shmctl$SHM_INFO", 396}, + {"shmctl$SHM_LOCK", 396}, + {"shmctl$SHM_STAT", 396}, + {"shmctl$SHM_UNLOCK", 396}, + {"shmdt", 398}, + {"shmget", 395}, + {"shmget$private", 395}, {"shutdown", 338}, {"sigaltstack", 185}, {"signalfd", 305}, diff --git a/sys/linux/fanotify.txt b/sys/linux/fanotify.txt new file mode 100644 index 00000000..fa133492 --- /dev/null +++ b/sys/linux/fanotify.txt @@ -0,0 +1,16 @@ +# Copyright 2015 syzkaller project authors. All rights reserved. +# Use of this source code is governed by Apache 2 LICENSE that can be found in the LICENSE file. + +include +include + +resource fd_fanotify[fd] + +fanotify_init(flags flags[fanotify_flags], events flags[fanotify_events]) fd_fanotify +fanotify_mark(fd fd_fanotify, flags flags[fanotify_mark], mask flags[fanotify_mask], fddir fd_dir, path ptr[in, filename]) + +fanotify_flags = FAN_CLASS_PRE_CONTENT, FAN_CLASS_CONTENT, FAN_CLASS_NOTIF, FAN_CLOEXEC, FAN_NONBLOCK, FAN_UNLIMITED_QUEUE, FAN_UNLIMITED_MARKS, FAN_ENABLE_AUDIT +fanotify_events = O_RDONLY, O_WRONLY, O_RDWR, O_LARGEFILE, O_CLOEXEC, O_APPEND, O_DSYNC, O_NOATIME, O_NONBLOCK, O_SYNC +fanotify_mark = FAN_MARK_ADD, FAN_MARK_REMOVE, FAN_MARK_FLUSH, FAN_MARK_DONT_FOLLOW, FAN_MARK_ONLYDIR, FAN_MARK_MOUNT, FAN_MARK_IGNORED_MASK, FAN_MARK_IGNORED_SURV_MODIFY +fanotify_mask = FAN_ACCESS, FAN_MODIFY, FAN_CLOSE_WRITE, FAN_CLOSE_NOWRITE, FAN_OPEN, FAN_OPEN_EXEC, FAN_ONDIR, FAN_EVENT_ON_CHILD +_ = FAN_OPEN_PERM, FAN_ACCESS_PERM, FAN_OPEN_EXEC_PERM diff --git a/sys/linux/fanotify_386.const b/sys/linux/fanotify_386.const new file mode 100644 index 00000000..ec21abf3 --- /dev/null +++ b/sys/linux/fanotify_386.const @@ -0,0 +1,40 @@ +# AUTOGENERATED FILE +FAN_ACCESS = 1 +FAN_ACCESS_PERM = 131072 +FAN_CLASS_CONTENT = 4 +FAN_CLASS_NOTIF = 0 +FAN_CLASS_PRE_CONTENT = 8 +FAN_CLOEXEC = 1 +FAN_CLOSE_NOWRITE = 16 +FAN_CLOSE_WRITE = 8 +FAN_ENABLE_AUDIT = 64 +FAN_EVENT_ON_CHILD = 134217728 +FAN_MARK_ADD = 1 +FAN_MARK_DONT_FOLLOW = 4 +FAN_MARK_FLUSH = 128 +FAN_MARK_IGNORED_MASK = 32 +FAN_MARK_IGNORED_SURV_MODIFY = 64 +FAN_MARK_MOUNT = 16 +FAN_MARK_ONLYDIR = 8 +FAN_MARK_REMOVE = 2 +FAN_MODIFY = 2 +FAN_NONBLOCK = 2 +FAN_ONDIR = 1073741824 +FAN_OPEN = 32 +FAN_OPEN_EXEC = 4096 +FAN_OPEN_EXEC_PERM = 262144 +FAN_OPEN_PERM = 65536 +FAN_UNLIMITED_MARKS = 32 +FAN_UNLIMITED_QUEUE = 16 +O_APPEND = 1024 +O_CLOEXEC = 524288 +O_DSYNC = 4096 +O_LARGEFILE = 32768 +O_NOATIME = 262144 +O_NONBLOCK = 2048 +O_RDONLY = 0 +O_RDWR = 2 +O_SYNC = 1052672 +O_WRONLY = 1 +__NR_fanotify_init = 338 +__NR_fanotify_mark = 339 diff --git a/sys/linux/fanotify_amd64.const b/sys/linux/fanotify_amd64.const new file mode 100644 index 00000000..5441bed4 --- /dev/null +++ b/sys/linux/fanotify_amd64.const @@ -0,0 +1,40 @@ +# AUTOGENERATED FILE +FAN_ACCESS = 1 +FAN_ACCESS_PERM = 131072 +FAN_CLASS_CONTENT = 4 +FAN_CLASS_NOTIF = 0 +FAN_CLASS_PRE_CONTENT = 8 +FAN_CLOEXEC = 1 +FAN_CLOSE_NOWRITE = 16 +FAN_CLOSE_WRITE = 8 +FAN_ENABLE_AUDIT = 64 +FAN_EVENT_ON_CHILD = 134217728 +FAN_MARK_ADD = 1 +FAN_MARK_DONT_FOLLOW = 4 +FAN_MARK_FLUSH = 128 +FAN_MARK_IGNORED_MASK = 32 +FAN_MARK_IGNORED_SURV_MODIFY = 64 +FAN_MARK_MOUNT = 16 +FAN_MARK_ONLYDIR = 8 +FAN_MARK_REMOVE = 2 +FAN_MODIFY = 2 +FAN_NONBLOCK = 2 +FAN_ONDIR = 1073741824 +FAN_OPEN = 32 +FAN_OPEN_EXEC = 4096 +FAN_OPEN_EXEC_PERM = 262144 +FAN_OPEN_PERM = 65536 +FAN_UNLIMITED_MARKS = 32 +FAN_UNLIMITED_QUEUE = 16 +O_APPEND = 1024 +O_CLOEXEC = 524288 +O_DSYNC = 4096 +O_LARGEFILE = 32768 +O_NOATIME = 262144 +O_NONBLOCK = 2048 +O_RDONLY = 0 +O_RDWR = 2 +O_SYNC = 1052672 +O_WRONLY = 1 +__NR_fanotify_init = 300 +__NR_fanotify_mark = 301 diff --git a/sys/linux/fanotify_arm.const b/sys/linux/fanotify_arm.const new file mode 100644 index 00000000..b99aa0ac --- /dev/null +++ b/sys/linux/fanotify_arm.const @@ -0,0 +1,40 @@ +# AUTOGENERATED FILE +FAN_ACCESS = 1 +FAN_ACCESS_PERM = 131072 +FAN_CLASS_CONTENT = 4 +FAN_CLASS_NOTIF = 0 +FAN_CLASS_PRE_CONTENT = 8 +FAN_CLOEXEC = 1 +FAN_CLOSE_NOWRITE = 16 +FAN_CLOSE_WRITE = 8 +FAN_ENABLE_AUDIT = 64 +FAN_EVENT_ON_CHILD = 134217728 +FAN_MARK_ADD = 1 +FAN_MARK_DONT_FOLLOW = 4 +FAN_MARK_FLUSH = 128 +FAN_MARK_IGNORED_MASK = 32 +FAN_MARK_IGNORED_SURV_MODIFY = 64 +FAN_MARK_MOUNT = 16 +FAN_MARK_ONLYDIR = 8 +FAN_MARK_REMOVE = 2 +FAN_MODIFY = 2 +FAN_NONBLOCK = 2 +FAN_ONDIR = 1073741824 +FAN_OPEN = 32 +FAN_OPEN_EXEC = 4096 +FAN_OPEN_EXEC_PERM = 262144 +FAN_OPEN_PERM = 65536 +FAN_UNLIMITED_MARKS = 32 +FAN_UNLIMITED_QUEUE = 16 +O_APPEND = 1024 +O_CLOEXEC = 524288 +O_DSYNC = 4096 +O_LARGEFILE = 131072 +O_NOATIME = 262144 +O_NONBLOCK = 2048 +O_RDONLY = 0 +O_RDWR = 2 +O_SYNC = 1052672 +O_WRONLY = 1 +__NR_fanotify_init = 367 +__NR_fanotify_mark = 368 diff --git a/sys/linux/fanotify_arm64.const b/sys/linux/fanotify_arm64.const new file mode 100644 index 00000000..8ad43c51 --- /dev/null +++ b/sys/linux/fanotify_arm64.const @@ -0,0 +1,40 @@ +# AUTOGENERATED FILE +FAN_ACCESS = 1 +FAN_ACCESS_PERM = 131072 +FAN_CLASS_CONTENT = 4 +FAN_CLASS_NOTIF = 0 +FAN_CLASS_PRE_CONTENT = 8 +FAN_CLOEXEC = 1 +FAN_CLOSE_NOWRITE = 16 +FAN_CLOSE_WRITE = 8 +FAN_ENABLE_AUDIT = 64 +FAN_EVENT_ON_CHILD = 134217728 +FAN_MARK_ADD = 1 +FAN_MARK_DONT_FOLLOW = 4 +FAN_MARK_FLUSH = 128 +FAN_MARK_IGNORED_MASK = 32 +FAN_MARK_IGNORED_SURV_MODIFY = 64 +FAN_MARK_MOUNT = 16 +FAN_MARK_ONLYDIR = 8 +FAN_MARK_REMOVE = 2 +FAN_MODIFY = 2 +FAN_NONBLOCK = 2 +FAN_ONDIR = 1073741824 +FAN_OPEN = 32 +FAN_OPEN_EXEC = 4096 +FAN_OPEN_EXEC_PERM = 262144 +FAN_OPEN_PERM = 65536 +FAN_UNLIMITED_MARKS = 32 +FAN_UNLIMITED_QUEUE = 16 +O_APPEND = 1024 +O_CLOEXEC = 524288 +O_DSYNC = 4096 +O_LARGEFILE = 131072 +O_NOATIME = 262144 +O_NONBLOCK = 2048 +O_RDONLY = 0 +O_RDWR = 2 +O_SYNC = 1052672 +O_WRONLY = 1 +__NR_fanotify_init = 262 +__NR_fanotify_mark = 263 diff --git a/sys/linux/fanotify_ppc64le.const b/sys/linux/fanotify_ppc64le.const new file mode 100644 index 00000000..822cf478 --- /dev/null +++ b/sys/linux/fanotify_ppc64le.const @@ -0,0 +1,40 @@ +# AUTOGENERATED FILE +FAN_ACCESS = 1 +FAN_ACCESS_PERM = 131072 +FAN_CLASS_CONTENT = 4 +FAN_CLASS_NOTIF = 0 +FAN_CLASS_PRE_CONTENT = 8 +FAN_CLOEXEC = 1 +FAN_CLOSE_NOWRITE = 16 +FAN_CLOSE_WRITE = 8 +FAN_ENABLE_AUDIT = 64 +FAN_EVENT_ON_CHILD = 134217728 +FAN_MARK_ADD = 1 +FAN_MARK_DONT_FOLLOW = 4 +FAN_MARK_FLUSH = 128 +FAN_MARK_IGNORED_MASK = 32 +FAN_MARK_IGNORED_SURV_MODIFY = 64 +FAN_MARK_MOUNT = 16 +FAN_MARK_ONLYDIR = 8 +FAN_MARK_REMOVE = 2 +FAN_MODIFY = 2 +FAN_NONBLOCK = 2 +FAN_ONDIR = 1073741824 +FAN_OPEN = 32 +FAN_OPEN_EXEC = 4096 +FAN_OPEN_EXEC_PERM = 262144 +FAN_OPEN_PERM = 65536 +FAN_UNLIMITED_MARKS = 32 +FAN_UNLIMITED_QUEUE = 16 +O_APPEND = 1024 +O_CLOEXEC = 524288 +O_DSYNC = 4096 +O_LARGEFILE = 65536 +O_NOATIME = 262144 +O_NONBLOCK = 2048 +O_RDONLY = 0 +O_RDWR = 2 +O_SYNC = 1052672 +O_WRONLY = 1 +__NR_fanotify_init = 323 +__NR_fanotify_mark = 324 diff --git a/sys/linux/gen/386.go b/sys/linux/gen/386.go index 2b50f329..3bf854dc 100644 --- a/sys/linux/gen/386.go +++ b/sys/linux/gen/386.go @@ -118,6 +118,10 @@ var resources_386 = []*ResourceDesc{ {Name: "ifindex_vcan", Type: &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int32", TypeSize: 4}}}, Kind: []string{"ifindex", "ifindex_vcan"}, Values: []uint64{0}}, {Name: "inotifydesc", Type: &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int32", TypeSize: 4}}}, Kind: []string{"inotifydesc"}, Values: []uint64{0}}, {Name: "io_ctx", Type: &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "intptr", TypeSize: 4}}}, Kind: []string{"io_ctx"}, Values: []uint64{0}}, + {Name: "ipc", Type: &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int32", TypeSize: 4}}}, Kind: []string{"ipc"}, Values: []uint64{0, 18446744073709551615}}, + {Name: "ipc_msq", Type: &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int32", TypeSize: 4}}}, Kind: []string{"ipc", "ipc_msq"}, Values: []uint64{0, 18446744073709551615}}, + {Name: "ipc_sem", Type: &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int32", TypeSize: 4}}}, Kind: []string{"ipc", "ipc_sem"}, Values: []uint64{0, 18446744073709551615}}, + {Name: "ipc_shm", Type: &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int32", TypeSize: 4}}}, Kind: []string{"ipc", "ipc_shm"}, Values: []uint64{0, 18446744073709551615}}, {Name: "key", Type: &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int32", TypeSize: 4}}}, Kind: []string{"key"}, Values: []uint64{0}}, {Name: "keyring", Type: &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int32", TypeSize: 4}}}, Kind: []string{"key", "keyring"}, Values: []uint64{0, 18446744073709551615, 18446744073709551614, 18446744073709551613, 18446744073709551612, 18446744073709551611, 18446744073709551610, 18446744073709551609, 18446744073709551608}}, {Name: "pid", Type: &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int32", TypeSize: 4}}}, Kind: []string{"pid"}, Values: []uint64{0, 18446744073709551615}}, @@ -125,6 +129,7 @@ var resources_386 = []*ResourceDesc{ {Name: "rdma_cm_id", Type: &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int32", TypeSize: 4}}}, Kind: []string{"rdma_cm_id"}, Values: []uint64{18446744073709551615}}, {Name: "rdma_cm_mcast_id", Type: &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int32", TypeSize: 4}}}, Kind: []string{"rdma_cm_mcast_id"}, Values: []uint64{18446744073709551615}}, {Name: "rfd9p", Type: &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int32", TypeSize: 4}}}, Kind: []string{"fd", "rfd9p"}, Values: []uint64{18446744073709551615, 18446744073709551516}}, + {Name: "shmaddr", Type: &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "intptr", TypeSize: 4}}}, Kind: []string{"shmaddr"}, Values: []uint64{0}}, {Name: "sock", Type: &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int32", TypeSize: 4}}}, Kind: []string{"fd", "sock"}, Values: []uint64{18446744073709551615, 18446744073709551516}}, {Name: "sock_alg", Type: &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int32", TypeSize: 4}}}, Kind: []string{"fd", "sock", "sock_alg"}, Values: []uint64{18446744073709551615, 18446744073709551516}}, {Name: "sock_algconn", Type: &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int32", TypeSize: 4}}}, Kind: []string{"fd", "sock", "sock_algconn"}, Values: []uint64{18446744073709551615, 18446744073709551516}}, @@ -7568,6 +7573,18 @@ var structDescs_386 = []*KeyedStruct{ &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int32", FldName: "tcp_fin_timeout", TypeSize: 4}}}, &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int32", FldName: "udp_timeout", TypeSize: 4}}}, }}}, + {Key: StructKey{Name: "ipc_perm"}, Desc: &StructDesc{TypeCommon: TypeCommon{TypeName: "ipc_perm", TypeSize: 36}, Fields: []Type{ + &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int32", FldName: "key", TypeSize: 4}}}, + &ResourceType{TypeCommon: TypeCommon{TypeName: "uid", FldName: "uid", TypeSize: 4}}, + &ResourceType{TypeCommon: TypeCommon{TypeName: "gid", FldName: "gid", TypeSize: 4}}, + &ResourceType{TypeCommon: TypeCommon{TypeName: "uid", FldName: "cuid", TypeSize: 4}}, + &ResourceType{TypeCommon: TypeCommon{TypeName: "gid", FldName: "cgid", TypeSize: 4}}, + &FlagsType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "open_mode", FldName: "mode", TypeSize: 4}}, Vals: []uint64{256, 128, 64, 32, 16, 8, 4, 2, 1}, BitMask: true}, + &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int16", FldName: "seq", TypeSize: 2}}}, + &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "pad0", TypeSize: 2}}}, + &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "pad1", TypeSize: 4}}}, + &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "pad2", TypeSize: 4}}}, + }}}, {Key: StructKey{Name: "ipgre_policy"}, Desc: &StructDesc{TypeCommon: TypeCommon{TypeName: "ipgre_policy", IsVarlen: true}, Fields: []Type{ &StructType{Key: StructKey{Name: "nlattr_t[const[IFLA_GRE_LOCAL, int16], ipv4_addr]"}, FldName: "IFLA_GRE_LOCAL"}, &StructType{Key: StructKey{Name: "nlattr_t[const[IFLA_GRE_REMOTE, int16], ipv4_addr]"}, FldName: "IFLA_GRE_REMOTE"}, @@ -9843,6 +9860,14 @@ var structDescs_386 = []*KeyedStruct{ &BufferType{TypeCommon: TypeCommon{TypeName: "stringnoz", FldName: "nodots", TypeSize: 6}, Kind: 2, Values: []string{"nodots"}, NoZ: true}, &BufferType{TypeCommon: TypeCommon{TypeName: "stringnoz", FldName: "dots", TypeSize: 4}, Kind: 2, Values: []string{"dots"}, NoZ: true}, }}}, + {Key: StructKey{Name: "msgbuf"}, Desc: &StructDesc{TypeCommon: TypeCommon{TypeName: "msgbuf", IsVarlen: true}, Fields: []Type{ + &FlagsType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "msgbuf_type", FldName: "typ", TypeSize: 4}}, Vals: []uint64{0, 1, 2, 3}}, + &BufferType{TypeCommon: TypeCommon{TypeName: "array", FldName: "data", IsVarlen: true}}, + }}}, + {Key: StructKey{Name: "msgbuf", Dir: 1}, Desc: &StructDesc{TypeCommon: TypeCommon{TypeName: "msgbuf", ArgDir: 1, IsVarlen: true}, Fields: []Type{ + &FlagsType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "msgbuf_type", FldName: "typ", TypeSize: 4, ArgDir: 1}}, Vals: []uint64{0, 1, 2, 3}}, + &BufferType{TypeCommon: TypeCommon{TypeName: "array", FldName: "data", ArgDir: 1, IsVarlen: true}}, + }}}, {Key: StructKey{Name: "msghdr_alg"}, Desc: &StructDesc{TypeCommon: TypeCommon{TypeName: "msghdr_alg", TypeSize: 28}, Fields: []Type{ &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "addr", TypeSize: 4}}}, &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "addrlen", TypeSize: 4}}}, @@ -10608,6 +10633,19 @@ var structDescs_386 = []*KeyedStruct{ &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "msg_controllen", TypeSize: 4}}}, &FlagsType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "send_flags", FldName: "msg_flags", TypeSize: 4}}, Vals: []uint64{2048, 4, 64, 128, 32768, 16384, 1, 16, 262144, 536870912, 67108864}, BitMask: true}, }}}, + {Key: StructKey{Name: "msqid_ds"}, Desc: &StructDesc{TypeCommon: TypeCommon{TypeName: "msqid_ds", TypeSize: 76}, Fields: []Type{ + &StructType{Key: StructKey{Name: "ipc_perm"}, FldName: "perm"}, + &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "intptr", FldName: "stime", TypeSize: 4}}}, + &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "intptr", FldName: "rtime", TypeSize: 4}}}, + &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "intptr", FldName: "ctime", TypeSize: 4}}}, + &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "intptr", FldName: "cbytes", TypeSize: 4}}}, + &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "intptr", FldName: "qnum", TypeSize: 4}}}, + &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "intptr", FldName: "qbytes", TypeSize: 4}}}, + &ResourceType{TypeCommon: TypeCommon{TypeName: "pid", FldName: "lspid", TypeSize: 4}}, + &ResourceType{TypeCommon: TypeCommon{TypeName: "pid", FldName: "lrpid", TypeSize: 4}}, + &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "pad0", TypeSize: 4}}}, + &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "pad1", TypeSize: 4}}}, + }}}, {Key: StructKey{Name: "nbd_attr_policy"}, Desc: &StructDesc{TypeCommon: TypeCommon{TypeName: "nbd_attr_policy", IsVarlen: true}, Fields: []Type{ &StructType{Key: StructKey{Name: "nlattr_t[const[NBD_ATTR_INDEX, int16], proc[0, 1, int32]]"}, FldName: "NBD_ATTR_INDEX"}, &StructType{Key: StructKey{Name: "nlattr_t[const[NBD_ATTR_SIZE_BYTES, int16], int64]"}, FldName: "NBD_ATTR_SIZE_BYTES"}, @@ -18930,6 +18968,14 @@ var structDescs_386 = []*KeyedStruct{ &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "sp2", TypeSize: 1}}, Val: 32}, &BufferType{TypeCommon: TypeCommon{TypeName: "string", FldName: "tcon", IsVarlen: true}, Kind: 2, SubKind: "selinux_task_context", Values: []string{"system_u:system_r:kernel_t:s0\x00", "unconfined_u:system_r:insmod_t:s0-s0:c0.c1023\x00", "/sbin/dhclient\x00", "unconfined\x00", "/usr/lib/telepathy/mission-control-5\x00", "/usr/sbin/cups-browsed\x00", "/usr/sbin/cupsd\x00", "/usr/sbin/ntpd\x00"}}, }}}, + {Key: StructKey{Name: "semid_ds"}, Desc: &StructDesc{TypeCommon: TypeCommon{TypeName: "semid_ds", TypeSize: 56}, Fields: []Type{ + &StructType{Key: StructKey{Name: "ipc_perm"}, FldName: "perm"}, + &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "intptr", FldName: "otime", TypeSize: 4}}}, + &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "intptr", FldName: "ctime", TypeSize: 4}}}, + &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "intptr", FldName: "nsems", TypeSize: 4}}}, + &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "pad0", TypeSize: 4}}}, + &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "pad1", TypeSize: 4}}}, + }}}, {Key: StructKey{Name: "send_mmsghdr"}, Desc: &StructDesc{TypeCommon: TypeCommon{TypeName: "send_mmsghdr", TypeSize: 32}, Fields: []Type{ &StructType{Key: StructKey{Name: "send_msghdr"}, FldName: "msg_hdr"}, &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int32", FldName: "msg_len", TypeSize: 4}}}, @@ -18988,6 +19034,19 @@ var structDescs_386 = []*KeyedStruct{ &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "dxfer_len", TypeSize: 4}}}, &PtrType{TypeCommon: TypeCommon{TypeName: "ptr", FldName: "dxferp", TypeSize: 4}, Type: &ArrayType{TypeCommon: TypeCommon{TypeName: "array", IsVarlen: true}, Type: &StructType{Key: StructKey{Name: "iovec[out, array[int8]]"}}}}, }}}, + {Key: StructKey{Name: "shmid_ds"}, Desc: &StructDesc{TypeCommon: TypeCommon{TypeName: "shmid_ds", TypeSize: 72}, Fields: []Type{ + &StructType{Key: StructKey{Name: "ipc_perm"}, FldName: "perm"}, + &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int32", FldName: "segsz", TypeSize: 4}}}, + &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "intptr", FldName: "atime", TypeSize: 4}}}, + &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "intptr", FldName: "dtime", TypeSize: 4}}}, + &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "intptr", FldName: "ctime", TypeSize: 4}}}, + &ResourceType{TypeCommon: TypeCommon{TypeName: "pid", FldName: "cpid", TypeSize: 4}}, + &ResourceType{TypeCommon: TypeCommon{TypeName: "pid", FldName: "lpid", TypeSize: 4}}, + &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int16", FldName: "nattch", TypeSize: 2}}}, + &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "unused0", TypeSize: 2}}}, + &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "unused1", TypeSize: 4}}}, + &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "unused2", TypeSize: 4}}}, + }}}, {Key: StructKey{Name: "sigaction"}, Desc: &StructDesc{TypeCommon: TypeCommon{TypeName: "sigaction", TypeSize: 24}, Fields: []Type{ &PtrType{TypeCommon: TypeCommon{TypeName: "ptr", FldName: "handler", TypeSize: 4}, Type: &BufferType{TypeCommon: TypeCommon{TypeName: "text", IsVarlen: true}, Kind: 4}}, &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "pad", TypeSize: 4}}, IsPad: true}, @@ -26986,7 +27045,7 @@ var syscalls_386 = []*Syscall{ {NR: 339, Name: "fanotify_mark", CallName: "fanotify_mark", Args: []Type{ &ResourceType{TypeCommon: TypeCommon{TypeName: "fd_fanotify", FldName: "fd", TypeSize: 4}}, &FlagsType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "fanotify_mark", FldName: "flags", TypeSize: 4}}, Vals: []uint64{1, 2, 128, 4, 8, 16, 32, 64}, BitMask: true}, - &FlagsType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "fanotify_mask", FldName: "mask", TypeSize: 4}}, Vals: []uint64{1, 2, 8, 16, 32, 1073741824, 134217728}, BitMask: true}, + &FlagsType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "fanotify_mask", FldName: "mask", TypeSize: 4}}, Vals: []uint64{1, 2, 8, 16, 32, 4096, 1073741824, 134217728}, BitMask: true}, &ResourceType{TypeCommon: TypeCommon{TypeName: "fd_dir", FldName: "fddir", TypeSize: 4}}, &PtrType{TypeCommon: TypeCommon{TypeName: "ptr", FldName: "path", TypeSize: 4}, Type: &BufferType{TypeCommon: TypeCommon{TypeName: "filename", IsVarlen: true}, Kind: 3}}, }}, @@ -34240,6 +34299,56 @@ var syscalls_386 = []*Syscall{ &FlagsType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "mremap_flags", FldName: "flags", TypeSize: 4}}, Vals: []uint64{1, 2}, BitMask: true}, &VmaType{TypeCommon: TypeCommon{TypeName: "vma", FldName: "newaddr", TypeSize: 4}}, }}, + {NR: 402, Name: "msgctl$IPC_INFO", CallName: "msgctl", Args: []Type{ + &ResourceType{TypeCommon: TypeCommon{TypeName: "ipc_msq", FldName: "msqid", TypeSize: 4}}, + &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "cmd", TypeSize: 4}}, Val: 3}, + &PtrType{TypeCommon: TypeCommon{TypeName: "buffer", FldName: "buf", TypeSize: 4}, Type: &BufferType{TypeCommon: TypeCommon{ArgDir: 1, IsVarlen: true}}}, + }}, + {NR: 402, Name: "msgctl$IPC_RMID", CallName: "msgctl", MissingArgs: 1, Args: []Type{ + &ResourceType{TypeCommon: TypeCommon{TypeName: "ipc_msq", FldName: "msqid", TypeSize: 4}}, + &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "cmd", TypeSize: 4}}}, + }}, + {NR: 402, Name: "msgctl$IPC_SET", CallName: "msgctl", Args: []Type{ + &ResourceType{TypeCommon: TypeCommon{TypeName: "ipc_msq", FldName: "msqid", TypeSize: 4}}, + &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "cmd", TypeSize: 4}}, Val: 1}, + &PtrType{TypeCommon: TypeCommon{TypeName: "ptr", FldName: "buf", TypeSize: 4}, Type: &StructType{Key: StructKey{Name: "msqid_ds"}}}, + }}, + {NR: 402, Name: "msgctl$IPC_STAT", CallName: "msgctl", Args: []Type{ + &ResourceType{TypeCommon: TypeCommon{TypeName: "ipc_msq", FldName: "msqid", TypeSize: 4}}, + &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "cmd", TypeSize: 4}}, Val: 2}, + &PtrType{TypeCommon: TypeCommon{TypeName: "buffer", FldName: "buf", TypeSize: 4}, Type: &BufferType{TypeCommon: TypeCommon{ArgDir: 1, IsVarlen: true}}}, + }}, + {NR: 402, Name: "msgctl$MSG_INFO", CallName: "msgctl", Args: []Type{ + &ResourceType{TypeCommon: TypeCommon{TypeName: "ipc_msq", FldName: "msqid", TypeSize: 4}}, + &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "cmd", TypeSize: 4}}, Val: 12}, + &PtrType{TypeCommon: TypeCommon{TypeName: "buffer", FldName: "buf", TypeSize: 4}, Type: &BufferType{TypeCommon: TypeCommon{ArgDir: 1, IsVarlen: true}}}, + }}, + {NR: 402, Name: "msgctl$MSG_STAT", CallName: "msgctl", Args: []Type{ + &ResourceType{TypeCommon: TypeCommon{TypeName: "ipc_msq", FldName: "msqid", TypeSize: 4}}, + &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "cmd", TypeSize: 4}}, Val: 11}, + &PtrType{TypeCommon: TypeCommon{TypeName: "buffer", FldName: "buf", TypeSize: 4}, Type: &BufferType{TypeCommon: TypeCommon{ArgDir: 1, IsVarlen: true}}}, + }}, + {NR: 399, Name: "msgget", CallName: "msgget", Args: []Type{ + &ProcType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "proc", FldName: "key", TypeSize: 4}}, ValuesStart: 2039379027, ValuesPerProc: 4}, + &FlagsType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "msgget_flags", FldName: "flags", TypeSize: 4}}, Vals: []uint64{512, 1024, 256, 128, 64, 32, 16, 8, 4, 2, 1}, BitMask: true}, + }, Ret: &ResourceType{TypeCommon: TypeCommon{TypeName: "ipc_msq", FldName: "ret", TypeSize: 4, ArgDir: 1}}}, + {NR: 399, Name: "msgget$private", CallName: "msgget", Args: []Type{ + &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "key", TypeSize: 4}}}, + &FlagsType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "msgget_flags", FldName: "flags", TypeSize: 4}}, Vals: []uint64{512, 1024, 256, 128, 64, 32, 16, 8, 4, 2, 1}, BitMask: true}, + }, Ret: &ResourceType{TypeCommon: TypeCommon{TypeName: "ipc_msq", FldName: "ret", TypeSize: 4, ArgDir: 1}}}, + {NR: 401, Name: "msgrcv", CallName: "msgrcv", Args: []Type{ + &ResourceType{TypeCommon: TypeCommon{TypeName: "ipc_msq", FldName: "msqid", TypeSize: 4}}, + &PtrType{TypeCommon: TypeCommon{TypeName: "ptr", FldName: "msgp", TypeSize: 4}, Type: &StructType{Key: StructKey{Name: "msgbuf", Dir: 1}}}, + &LenType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "len", FldName: "sz", TypeSize: 4}}, Buf: "msgp"}, + &FlagsType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "msgbuf_type", FldName: "typ", TypeSize: 4}}, Vals: []uint64{0, 1, 2, 3}}, + &FlagsType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "msgrcv_flags", FldName: "flags", TypeSize: 4}}, Vals: []uint64{2048, 8192, 4096}, BitMask: true}, + }}, + {NR: 400, Name: "msgsnd", CallName: "msgsnd", Args: []Type{ + &ResourceType{TypeCommon: TypeCommon{TypeName: "ipc_msq", FldName: "msqid", TypeSize: 4}}, + &PtrType{TypeCommon: TypeCommon{TypeName: "ptr", FldName: "msgp", TypeSize: 4}, Type: &StructType{Key: StructKey{Name: "msgbuf"}}}, + &LenType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "len", FldName: "sz", TypeSize: 4}}, Buf: "msgp"}, + &FlagsType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "msgsnd_flags", FldName: "flags", TypeSize: 4}}, Vals: []uint64{2048}, BitMask: true}, + }}, {NR: 144, Name: "msync", CallName: "msync", Args: []Type{ &VmaType{TypeCommon: TypeCommon{TypeName: "vma", FldName: "addr", TypeSize: 4}}, &LenType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "len", FldName: "len", TypeSize: 4}}, Buf: "addr"}, @@ -35643,6 +35752,93 @@ var syscalls_386 = []*Syscall{ &PtrType{TypeCommon: TypeCommon{TypeName: "ptr", FldName: "exp", TypeSize: 4}, Type: &StructType{Key: StructKey{Name: "fd_set", Dir: 2}}}, &PtrType{TypeCommon: TypeCommon{TypeName: "ptr", FldName: "tvp", TypeSize: 4}, Type: &StructType{Key: StructKey{Name: "timeval", Dir: 2}}}, }}, + {NR: 394, Name: "semctl$GETALL", CallName: "semctl", Args: []Type{ + &ResourceType{TypeCommon: TypeCommon{TypeName: "ipc_sem", FldName: "semid", TypeSize: 4}}, + &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "semnum", TypeSize: 4}}}, + &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "cmd", TypeSize: 4}}, Val: 13}, + &PtrType{TypeCommon: TypeCommon{TypeName: "buffer", FldName: "arg", TypeSize: 4}, Type: &BufferType{TypeCommon: TypeCommon{ArgDir: 1, IsVarlen: true}}}, + }}, + {NR: 394, Name: "semctl$GETNCNT", CallName: "semctl", Args: []Type{ + &ResourceType{TypeCommon: TypeCommon{TypeName: "ipc_sem", FldName: "semid", TypeSize: 4}}, + &FlagsType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "sem_sem_id", FldName: "semnum", TypeSize: 4}}, Vals: []uint64{0, 1, 2, 3, 4}}, + &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "cmd", TypeSize: 4}}, Val: 14}, + &PtrType{TypeCommon: TypeCommon{TypeName: "buffer", FldName: "arg", TypeSize: 4}, Type: &BufferType{TypeCommon: TypeCommon{ArgDir: 1, IsVarlen: true}}}, + }}, + {NR: 394, Name: "semctl$GETPID", CallName: "semctl", Args: []Type{ + &ResourceType{TypeCommon: TypeCommon{TypeName: "ipc_sem", FldName: "semid", TypeSize: 4}}, + &FlagsType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "sem_sem_id", FldName: "semnum", TypeSize: 4}}, Vals: []uint64{0, 1, 2, 3, 4}}, + &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "cmd", TypeSize: 4}}, Val: 11}, + &PtrType{TypeCommon: TypeCommon{TypeName: "buffer", FldName: "arg", TypeSize: 4}, Type: &BufferType{TypeCommon: TypeCommon{ArgDir: 1, IsVarlen: true}}}, + }}, + {NR: 394, Name: "semctl$GETVAL", CallName: "semctl", Args: []Type{ + &ResourceType{TypeCommon: TypeCommon{TypeName: "ipc_sem", FldName: "semid", TypeSize: 4}}, + &FlagsType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "sem_sem_id", FldName: "semnum", TypeSize: 4}}, Vals: []uint64{0, 1, 2, 3, 4}}, + &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "cmd", TypeSize: 4}}, Val: 12}, + &PtrType{TypeCommon: TypeCommon{TypeName: "buffer", FldName: "arg", TypeSize: 4}, Type: &BufferType{TypeCommon: TypeCommon{ArgDir: 1, IsVarlen: true}}}, + }}, + {NR: 394, Name: "semctl$GETZCNT", CallName: "semctl", Args: []Type{ + &ResourceType{TypeCommon: TypeCommon{TypeName: "ipc_sem", FldName: "semid", TypeSize: 4}}, + &FlagsType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "sem_sem_id", FldName: "semnum", TypeSize: 4}}, Vals: []uint64{0, 1, 2, 3, 4}}, + &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "cmd", TypeSize: 4}}, Val: 15}, + &PtrType{TypeCommon: TypeCommon{TypeName: "buffer", FldName: "arg", TypeSize: 4}, Type: &BufferType{TypeCommon: TypeCommon{ArgDir: 1, IsVarlen: true}}}, + }}, + {NR: 394, Name: "semctl$IPC_INFO", CallName: "semctl", Args: []Type{ + &ResourceType{TypeCommon: TypeCommon{TypeName: "ipc_sem", FldName: "semid", TypeSize: 4}}, + &FlagsType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "sem_sem_id", FldName: "semnum", TypeSize: 4}}, Vals: []uint64{0, 1, 2, 3, 4}}, + &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "cmd", TypeSize: 4}}, Val: 3}, + &PtrType{TypeCommon: TypeCommon{TypeName: "buffer", FldName: "buf", TypeSize: 4}, Type: &BufferType{TypeCommon: TypeCommon{ArgDir: 1, IsVarlen: true}}}, + }}, + {NR: 394, Name: "semctl$IPC_RMID", CallName: "semctl", MissingArgs: 1, Args: []Type{ + &ResourceType{TypeCommon: TypeCommon{TypeName: "ipc_sem", FldName: "semid", TypeSize: 4}}, + &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "semnum", TypeSize: 4}}}, + &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "cmd", TypeSize: 4}}}, + }}, + {NR: 394, Name: "semctl$IPC_SET", CallName: "semctl", Args: []Type{ + &ResourceType{TypeCommon: TypeCommon{TypeName: "ipc_sem", FldName: "semid", TypeSize: 4}}, + &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "semnum", TypeSize: 4}}}, + &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "cmd", TypeSize: 4}}, Val: 1}, + &PtrType{TypeCommon: TypeCommon{TypeName: "ptr", FldName: "arg", TypeSize: 4}, Type: &StructType{Key: StructKey{Name: "semid_ds"}}}, + }}, + {NR: 394, Name: "semctl$IPC_STAT", CallName: "semctl", Args: []Type{ + &ResourceType{TypeCommon: TypeCommon{TypeName: "ipc_sem", FldName: "semid", TypeSize: 4}}, + &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "semnum", TypeSize: 4}}}, + &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "cmd", TypeSize: 4}}, Val: 2}, + &PtrType{TypeCommon: TypeCommon{TypeName: "buffer", FldName: "arg", TypeSize: 4}, Type: &BufferType{TypeCommon: TypeCommon{ArgDir: 1, IsVarlen: true}}}, + }}, + {NR: 394, Name: "semctl$SEM_INFO", CallName: "semctl", Args: []Type{ + &ResourceType{TypeCommon: TypeCommon{TypeName: "ipc_sem", FldName: "semid", TypeSize: 4}}, + &FlagsType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "sem_sem_id", FldName: "semnum", TypeSize: 4}}, Vals: []uint64{0, 1, 2, 3, 4}}, + &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "cmd", TypeSize: 4}}, Val: 19}, + &PtrType{TypeCommon: TypeCommon{TypeName: "buffer", FldName: "arg", TypeSize: 4}, Type: &BufferType{TypeCommon: TypeCommon{ArgDir: 1, IsVarlen: true}}}, + }}, + {NR: 394, Name: "semctl$SEM_STAT", CallName: "semctl", Args: []Type{ + &ResourceType{TypeCommon: TypeCommon{TypeName: "ipc_sem", FldName: "semid", TypeSize: 4}}, + &FlagsType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "sem_sem_id", FldName: "semnum", TypeSize: 4}}, Vals: []uint64{0, 1, 2, 3, 4}}, + &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "cmd", TypeSize: 4}}, Val: 18}, + &PtrType{TypeCommon: TypeCommon{TypeName: "buffer", FldName: "arg", TypeSize: 4}, Type: &BufferType{TypeCommon: TypeCommon{ArgDir: 1, IsVarlen: true}}}, + }}, + {NR: 394, Name: "semctl$SETALL", CallName: "semctl", Args: []Type{ + &ResourceType{TypeCommon: TypeCommon{TypeName: "ipc_sem", FldName: "semid", TypeSize: 4}}, + &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "semnum", TypeSize: 4}}}, + &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "cmd", TypeSize: 4}}, Val: 17}, + &PtrType{TypeCommon: TypeCommon{TypeName: "ptr", FldName: "arg", TypeSize: 4}, Type: &ArrayType{TypeCommon: TypeCommon{TypeName: "array", IsVarlen: true}, Type: &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int16", TypeSize: 2}}}}}, + }}, + {NR: 394, Name: "semctl$SETVAL", CallName: "semctl", Args: []Type{ + &ResourceType{TypeCommon: TypeCommon{TypeName: "ipc_sem", FldName: "semid", TypeSize: 4}}, + &FlagsType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "sem_sem_id", FldName: "semnum", TypeSize: 4}}, Vals: []uint64{0, 1, 2, 3, 4}}, + &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "cmd", TypeSize: 4}}, Val: 16}, + &PtrType{TypeCommon: TypeCommon{TypeName: "ptr", FldName: "arg", TypeSize: 4}, Type: &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int32", TypeSize: 4}}}}, + }}, + {NR: 393, Name: "semget", CallName: "semget", Args: []Type{ + &ProcType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "proc", FldName: "key", TypeSize: 4}}, ValuesStart: 2039359027, ValuesPerProc: 4}, + &FlagsType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "sem_sem_id", FldName: "nsems", TypeSize: 4}}, Vals: []uint64{0, 1, 2, 3, 4}}, + &FlagsType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "semget_flags", FldName: "flags", TypeSize: 4}}, Vals: []uint64{512, 1024, 256, 128, 64, 32, 16, 8, 4, 2, 1}, BitMask: true}, + }, Ret: &ResourceType{TypeCommon: TypeCommon{TypeName: "ipc_sem", FldName: "ret", TypeSize: 4, ArgDir: 1}}}, + {NR: 393, Name: "semget$private", CallName: "semget", Args: []Type{ + &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "key", TypeSize: 4}}}, + &FlagsType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "sem_sem_id", FldName: "nsems", TypeSize: 4}}, Vals: []uint64{0, 1, 2, 3, 4}}, + &FlagsType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "semget_flags", FldName: "flags", TypeSize: 4}}, Vals: []uint64{512, 1024, 256, 128, 64, 32, 16, 8, 4, 2, 1}, BitMask: true}, + }, Ret: &ResourceType{TypeCommon: TypeCommon{TypeName: "ipc_sem", FldName: "ret", TypeSize: 4, ArgDir: 1}}}, {NR: 187, Name: "sendfile", CallName: "sendfile", Args: []Type{ &ResourceType{TypeCommon: TypeCommon{TypeName: "fd", FldName: "fdout", TypeSize: 4}}, &ResourceType{TypeCommon: TypeCommon{TypeName: "fd", FldName: "fdin", TypeSize: 4}}, @@ -38285,6 +38481,63 @@ var syscalls_386 = []*Syscall{ &LenType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "len", FldName: "size", TypeSize: 4}}, Buf: "val"}, &FlagsType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "setxattr_flags", FldName: "flags", TypeSize: 4}}, Vals: []uint64{1, 2}, BitMask: true}, }}, + {NR: 397, Name: "shmat", CallName: "shmat", Args: []Type{ + &ResourceType{TypeCommon: TypeCommon{TypeName: "ipc_shm", FldName: "shmid", TypeSize: 4}}, + &VmaType{TypeCommon: TypeCommon{TypeName: "vma", FldName: "addr", TypeSize: 4}}, + &FlagsType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "shmat_flags", FldName: "flags", TypeSize: 4}}, Vals: []uint64{8192, 4096, 16384}, BitMask: true}, + }, Ret: &ResourceType{TypeCommon: TypeCommon{TypeName: "shmaddr", FldName: "ret", TypeSize: 4, ArgDir: 1}}}, + {NR: 396, Name: "shmctl$IPC_INFO", CallName: "shmctl", Args: []Type{ + &ResourceType{TypeCommon: TypeCommon{TypeName: "ipc_shm", FldName: "shmid", TypeSize: 4}}, + &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "cmd", TypeSize: 4}}, Val: 3}, + &PtrType{TypeCommon: TypeCommon{TypeName: "buffer", FldName: "buf", TypeSize: 4}, Type: &BufferType{TypeCommon: TypeCommon{ArgDir: 1, IsVarlen: true}}}, + }}, + {NR: 396, Name: "shmctl$IPC_RMID", CallName: "shmctl", MissingArgs: 1, Args: []Type{ + &ResourceType{TypeCommon: TypeCommon{TypeName: "ipc_shm", FldName: "shmid", TypeSize: 4}}, + &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "cmd", TypeSize: 4}}}, + }}, + {NR: 396, Name: "shmctl$IPC_SET", CallName: "shmctl", Args: []Type{ + &ResourceType{TypeCommon: TypeCommon{TypeName: "ipc_shm", FldName: "shmid", TypeSize: 4}}, + &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "cmd", TypeSize: 4}}, Val: 1}, + &PtrType{TypeCommon: TypeCommon{TypeName: "ptr", FldName: "buf", TypeSize: 4}, Type: &StructType{Key: StructKey{Name: "shmid_ds"}}}, + }}, + {NR: 396, Name: "shmctl$IPC_STAT", CallName: "shmctl", Args: []Type{ + &ResourceType{TypeCommon: TypeCommon{TypeName: "ipc_shm", FldName: "shmid", TypeSize: 4}}, + &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "cmd", TypeSize: 4}}, Val: 2}, + &PtrType{TypeCommon: TypeCommon{TypeName: "buffer", FldName: "buf", TypeSize: 4}, Type: &BufferType{TypeCommon: TypeCommon{ArgDir: 1, IsVarlen: true}}}, + }}, + {NR: 396, Name: "shmctl$SHM_INFO", CallName: "shmctl", Args: []Type{ + &ResourceType{TypeCommon: TypeCommon{TypeName: "ipc_shm", FldName: "shmid", TypeSize: 4}}, + &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "cmd", TypeSize: 4}}, Val: 14}, + &PtrType{TypeCommon: TypeCommon{TypeName: "buffer", FldName: "buf", TypeSize: 4}, Type: &BufferType{TypeCommon: TypeCommon{ArgDir: 1, IsVarlen: true}}}, + }}, + {NR: 396, Name: "shmctl$SHM_LOCK", CallName: "shmctl", MissingArgs: 1, Args: []Type{ + &ResourceType{TypeCommon: TypeCommon{TypeName: "ipc_shm", FldName: "shmid", TypeSize: 4}}, + &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "cmd", TypeSize: 4}}, Val: 11}, + }}, + {NR: 396, Name: "shmctl$SHM_STAT", CallName: "shmctl", Args: []Type{ + &ResourceType{TypeCommon: TypeCommon{TypeName: "ipc_shm", FldName: "shmid", TypeSize: 4}}, + &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "cmd", TypeSize: 4}}, Val: 13}, + &PtrType{TypeCommon: TypeCommon{TypeName: "buffer", FldName: "buf", TypeSize: 4}, Type: &BufferType{TypeCommon: TypeCommon{ArgDir: 1, IsVarlen: true}}}, + }}, + {NR: 396, Name: "shmctl$SHM_UNLOCK", CallName: "shmctl", MissingArgs: 1, Args: []Type{ + &ResourceType{TypeCommon: TypeCommon{TypeName: "ipc_shm", FldName: "shmid", TypeSize: 4}}, + &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "cmd", TypeSize: 4}}, Val: 12}, + }}, + {NR: 398, Name: "shmdt", CallName: "shmdt", Args: []Type{ + &ResourceType{TypeCommon: TypeCommon{TypeName: "shmaddr", FldName: "addr", TypeSize: 4}}, + }}, + {NR: 395, Name: "shmget", CallName: "shmget", Args: []Type{ + &ProcType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "proc", FldName: "key", TypeSize: 4}}, ValuesStart: 2039339027, ValuesPerProc: 4}, + &LenType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "len", FldName: "size", TypeSize: 4}}, Buf: "unused"}, + &FlagsType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "shmget_flags", FldName: "flags", TypeSize: 4}}, Vals: []uint64{512, 1024, 2048, 1409286144, 2013265920, 4096, 256, 128, 64, 32, 16, 8, 4, 2, 1}}, + &VmaType{TypeCommon: TypeCommon{TypeName: "vma", FldName: "unused", TypeSize: 4}}, + }, Ret: &ResourceType{TypeCommon: TypeCommon{TypeName: "ipc_shm", FldName: "ret", TypeSize: 4, ArgDir: 1}}}, + {NR: 395, Name: "shmget$private", CallName: "shmget", Args: []Type{ + &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "key", TypeSize: 4}}}, + &LenType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "len", FldName: "size", TypeSize: 4}}, Buf: "unused"}, + &FlagsType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "shmget_flags", FldName: "flags", TypeSize: 4}}, Vals: []uint64{512, 1024, 2048, 1409286144, 2013265920, 4096, 256, 128, 64, 32, 16, 8, 4, 2, 1}}, + &VmaType{TypeCommon: TypeCommon{TypeName: "vma", FldName: "unused", TypeSize: 4}}, + }, Ret: &ResourceType{TypeCommon: TypeCommon{TypeName: "ipc_shm", FldName: "ret", TypeSize: 4, ArgDir: 1}}}, {NR: 373, Name: "shutdown", CallName: "shutdown", Args: []Type{ &ResourceType{TypeCommon: TypeCommon{TypeName: "sock", FldName: "fd", TypeSize: 4}}, &FlagsType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "shutdown_flags", FldName: "how", TypeSize: 4}}, Vals: []uint64{0, 1}, BitMask: true}, @@ -41107,6 +41360,8 @@ var consts_386 = []ConstValue{ {Name: "FAN_NONBLOCK", Value: 2}, {Name: "FAN_ONDIR", Value: 1073741824}, {Name: "FAN_OPEN", Value: 32}, + {Name: "FAN_OPEN_EXEC", Value: 4096}, + {Name: "FAN_OPEN_EXEC_PERM", Value: 262144}, {Name: "FAN_OPEN_PERM", Value: 65536}, {Name: "FAN_UNLIMITED_MARKS", Value: 32}, {Name: "FAN_UNLIMITED_QUEUE", Value: 16}, @@ -47020,6 +47275,10 @@ var consts_386 = []ConstValue{ {Name: "__NR_mq_timedsend", Value: 279}, {Name: "__NR_mq_unlink", Value: 278}, {Name: "__NR_mremap", Value: 163}, + {Name: "__NR_msgctl", Value: 402}, + {Name: "__NR_msgget", Value: 399}, + {Name: "__NR_msgrcv", Value: 401}, + {Name: "__NR_msgsnd", Value: 400}, {Name: "__NR_msync", Value: 144}, {Name: "__NR_munlock", Value: 151}, {Name: "__NR_munlockall", Value: 153}, @@ -47088,6 +47347,8 @@ var consts_386 = []ConstValue{ {Name: "__NR_sched_yield", Value: 158}, {Name: "__NR_seccomp", Value: 354}, {Name: "__NR_select", Value: 82}, + {Name: "__NR_semctl", Value: 394}, + {Name: "__NR_semget", Value: 393}, {Name: "__NR_sendfile", Value: 187}, {Name: "__NR_sendfile64", Value: 239}, {Name: "__NR_sendmmsg", Value: 345}, @@ -47113,6 +47374,10 @@ var consts_386 = []ConstValue{ {Name: "__NR_setsockopt", Value: 366}, {Name: "__NR_setuid", Value: 23}, {Name: "__NR_setxattr", Value: 226}, + {Name: "__NR_shmat", Value: 397}, + {Name: "__NR_shmctl", Value: 396}, + {Name: "__NR_shmdt", Value: 398}, + {Name: "__NR_shmget", Value: 395}, {Name: "__NR_shutdown", Value: 373}, {Name: "__NR_sigaltstack", Value: 186}, {Name: "__NR_signalfd", Value: 321}, @@ -47170,4 +47435,4 @@ var consts_386 = []ConstValue{ {Name: "bpf_insn_load_imm_dw", Value: 24}, } -const revision_386 = "8af34e9d497783789dc623e6008be8c98b782a35" +const revision_386 = "e1337ff46a546061c6a6061490f38ee242f4b072" diff --git a/sys/linux/gen/amd64.go b/sys/linux/gen/amd64.go index af2132f6..8fe7b5f5 100644 --- a/sys/linux/gen/amd64.go +++ b/sys/linux/gen/amd64.go @@ -27532,7 +27532,7 @@ var syscalls_amd64 = []*Syscall{ {NR: 301, Name: "fanotify_mark", CallName: "fanotify_mark", Args: []Type{ &ResourceType{TypeCommon: TypeCommon{TypeName: "fd_fanotify", FldName: "fd", TypeSize: 4}}, &FlagsType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "fanotify_mark", FldName: "flags", TypeSize: 8}}, Vals: []uint64{1, 2, 128, 4, 8, 16, 32, 64}, BitMask: true}, - &FlagsType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "fanotify_mask", FldName: "mask", TypeSize: 8}}, Vals: []uint64{1, 2, 8, 16, 32, 1073741824, 134217728}, BitMask: true}, + &FlagsType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "fanotify_mask", FldName: "mask", TypeSize: 8}}, Vals: []uint64{1, 2, 8, 16, 32, 4096, 1073741824, 134217728}, BitMask: true}, &ResourceType{TypeCommon: TypeCommon{TypeName: "fd_dir", FldName: "fddir", TypeSize: 4}}, &PtrType{TypeCommon: TypeCommon{TypeName: "ptr", FldName: "path", TypeSize: 8}, Type: &BufferType{TypeCommon: TypeCommon{TypeName: "filename", IsVarlen: true}, Kind: 3}}, }}, @@ -41872,6 +41872,8 @@ var consts_amd64 = []ConstValue{ {Name: "FAN_NONBLOCK", Value: 2}, {Name: "FAN_ONDIR", Value: 1073741824}, {Name: "FAN_OPEN", Value: 32}, + {Name: "FAN_OPEN_EXEC", Value: 4096}, + {Name: "FAN_OPEN_EXEC_PERM", Value: 262144}, {Name: "FAN_OPEN_PERM", Value: 65536}, {Name: "FAN_UNLIMITED_MARKS", Value: 32}, {Name: "FAN_UNLIMITED_QUEUE", Value: 16}, @@ -47960,4 +47962,4 @@ var consts_amd64 = []ConstValue{ {Name: "bpf_insn_load_imm_dw", Value: 24}, } -const revision_amd64 = "d2efaf232fd23ce4c5158000b4644d50c9375db0" +const revision_amd64 = "76561d0a7b6dee60269bef9fedf506e062a2ec19" diff --git a/sys/linux/gen/arm.go b/sys/linux/gen/arm.go index 91d41b84..ff78599c 100644 --- a/sys/linux/gen/arm.go +++ b/sys/linux/gen/arm.go @@ -26861,7 +26861,7 @@ var syscalls_arm = []*Syscall{ {NR: 368, Name: "fanotify_mark", CallName: "fanotify_mark", Args: []Type{ &ResourceType{TypeCommon: TypeCommon{TypeName: "fd_fanotify", FldName: "fd", TypeSize: 4}}, &FlagsType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "fanotify_mark", FldName: "flags", TypeSize: 4}}, Vals: []uint64{1, 2, 128, 4, 8, 16, 32, 64}, BitMask: true}, - &FlagsType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "fanotify_mask", FldName: "mask", TypeSize: 4}}, Vals: []uint64{1, 2, 8, 16, 32, 1073741824, 134217728}, BitMask: true}, + &FlagsType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "fanotify_mask", FldName: "mask", TypeSize: 4}}, Vals: []uint64{1, 2, 8, 16, 32, 4096, 1073741824, 134217728}, BitMask: true}, &ResourceType{TypeCommon: TypeCommon{TypeName: "fd_dir", FldName: "fddir", TypeSize: 4}}, &PtrType{TypeCommon: TypeCommon{TypeName: "ptr", FldName: "path", TypeSize: 4}, Type: &BufferType{TypeCommon: TypeCommon{TypeName: "filename", IsVarlen: true}, Kind: 3}}, }}, @@ -30042,11 +30042,6 @@ var syscalls_arm = []*Syscall{ &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "cmd", TypeSize: 4}}, Val: 2149075271}, &PtrType{TypeCommon: TypeCommon{TypeName: "ptr", FldName: "arg", TypeSize: 4}, Type: &StructType{Key: StructKey{Name: "mISDN_devrename"}}}, }}, - {NR: 54, Name: "ioctl$INOTIFY_IOC_SETNEXTWD", CallName: "ioctl", Args: []Type{ - &ResourceType{TypeCommon: TypeCommon{TypeName: "fd_inotify", FldName: "fd", TypeSize: 4}}, - &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "cmd", TypeSize: 4}}, Val: 1074022656}, - &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "intptr", FldName: "arg", TypeSize: 4}}}, - }}, {NR: 54, Name: "ioctl$IOC_PR_CLEAR", CallName: "ioctl", Args: []Type{ &ResourceType{TypeCommon: TypeCommon{TypeName: "fd_block", FldName: "fd", TypeSize: 4}}, &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "cmd", TypeSize: 4}}, Val: 1074819277}, @@ -33746,6 +33741,12 @@ var syscalls_arm = []*Syscall{ &PtrType{TypeCommon: TypeCommon{TypeName: "ptr", FldName: "name", TypeSize: 4}, Type: &BufferType{TypeCommon: TypeCommon{TypeName: "string", IsVarlen: true}, Kind: 2}}, &FlagsType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "memfd_flags", FldName: "flags", TypeSize: 4}}, Vals: []uint64{1, 2, 4}, BitMask: true}, }, Ret: &ResourceType{TypeCommon: TypeCommon{TypeName: "fd_memfd", FldName: "ret", TypeSize: 4, ArgDir: 1}}}, + {NR: 400, Name: "migrate_pages", CallName: "migrate_pages", Args: []Type{ + &ResourceType{TypeCommon: TypeCommon{TypeName: "pid", FldName: "pid", TypeSize: 4}}, + &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "intptr", FldName: "maxnode", TypeSize: 4}}}, + &PtrType{TypeCommon: TypeCommon{TypeName: "ptr", FldName: "old", TypeSize: 4}, Type: &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int64", TypeSize: 8}}}}, + &PtrType{TypeCommon: TypeCommon{TypeName: "ptr", FldName: "new", TypeSize: 4}, Type: &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int64", TypeSize: 8}}}}, + }}, {NR: 219, Name: "mincore", CallName: "mincore", Args: []Type{ &VmaType{TypeCommon: TypeCommon{TypeName: "vma", FldName: "addr", TypeSize: 4}}, &LenType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "len", FldName: "size", TypeSize: 4}}, Buf: "addr"}, @@ -40999,6 +41000,8 @@ var consts_arm = []ConstValue{ {Name: "FAN_NONBLOCK", Value: 2}, {Name: "FAN_ONDIR", Value: 1073741824}, {Name: "FAN_OPEN", Value: 32}, + {Name: "FAN_OPEN_EXEC", Value: 4096}, + {Name: "FAN_OPEN_EXEC_PERM", Value: 262144}, {Name: "FAN_OPEN_PERM", Value: 65536}, {Name: "FAN_UNLIMITED_MARKS", Value: 32}, {Name: "FAN_UNLIMITED_QUEUE", Value: 16}, @@ -41704,7 +41707,6 @@ var consts_arm = []ConstValue{ {Name: "IMGETVERSION", Value: 2147764546}, {Name: "IMHOLD_L1", Value: 2147764552}, {Name: "IMSETDEVNAME", Value: 2149075271}, - {Name: "INOTIFY_IOC_SETNEXTWD", Value: 1074022656}, {Name: "INPUT_PROP_MAX", Value: 31}, {Name: "IN_ACCESS", Value: 1}, {Name: "IN_ATTRIB", Value: 4}, @@ -46832,6 +46834,7 @@ var consts_arm = []ConstValue{ {Name: "__NR_mbind", Value: 319}, {Name: "__NR_membarrier", Value: 389}, {Name: "__NR_memfd_create", Value: 385}, + {Name: "__NR_migrate_pages", Value: 400}, {Name: "__NR_mincore", Value: 219}, {Name: "__NR_mkdir", Value: 39}, {Name: "__NR_mkdirat", Value: 323}, @@ -47009,4 +47012,4 @@ var consts_arm = []ConstValue{ {Name: "bpf_insn_load_imm_dw", Value: 24}, } -const revision_arm = "5dd0744dbc7da7bf396e594b93666959a0dfb8ab" +const revision_arm = "c4282a5fc9b45f29e7cf834d9201c902a4c33f5a" diff --git a/sys/linux/gen/arm64.go b/sys/linux/gen/arm64.go index cea9b7fa..9b5f14d7 100644 --- a/sys/linux/gen/arm64.go +++ b/sys/linux/gen/arm64.go @@ -27261,7 +27261,7 @@ var syscalls_arm64 = []*Syscall{ {NR: 263, Name: "fanotify_mark", CallName: "fanotify_mark", Args: []Type{ &ResourceType{TypeCommon: TypeCommon{TypeName: "fd_fanotify", FldName: "fd", TypeSize: 4}}, &FlagsType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "fanotify_mark", FldName: "flags", TypeSize: 8}}, Vals: []uint64{1, 2, 128, 4, 8, 16, 32, 64}, BitMask: true}, - &FlagsType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "fanotify_mask", FldName: "mask", TypeSize: 8}}, Vals: []uint64{1, 2, 8, 16, 32, 1073741824, 134217728}, BitMask: true}, + &FlagsType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "fanotify_mask", FldName: "mask", TypeSize: 8}}, Vals: []uint64{1, 2, 8, 16, 32, 4096, 1073741824, 134217728}, BitMask: true}, &ResourceType{TypeCommon: TypeCommon{TypeName: "fd_dir", FldName: "fddir", TypeSize: 4}}, &PtrType{TypeCommon: TypeCommon{TypeName: "ptr", FldName: "path", TypeSize: 8}, Type: &BufferType{TypeCommon: TypeCommon{TypeName: "filename", IsVarlen: true}, Kind: 3}}, }}, @@ -41318,6 +41318,8 @@ var consts_arm64 = []ConstValue{ {Name: "FAN_NONBLOCK", Value: 2}, {Name: "FAN_ONDIR", Value: 1073741824}, {Name: "FAN_OPEN", Value: 32}, + {Name: "FAN_OPEN_EXEC", Value: 4096}, + {Name: "FAN_OPEN_EXEC_PERM", Value: 262144}, {Name: "FAN_OPEN_PERM", Value: 65536}, {Name: "FAN_UNLIMITED_MARKS", Value: 32}, {Name: "FAN_UNLIMITED_QUEUE", Value: 16}, @@ -47310,4 +47312,4 @@ var consts_arm64 = []ConstValue{ {Name: "bpf_insn_load_imm_dw", Value: 24}, } -const revision_arm64 = "46f6ae162f1fe97659e679e64bb0ee0f86204fa7" +const revision_arm64 = "4c5e0d87ff52638dd93a6bbac52c6b6f00954da9" diff --git a/sys/linux/gen/ppc64le.go b/sys/linux/gen/ppc64le.go index 142f16fc..1f91c1b6 100644 --- a/sys/linux/gen/ppc64le.go +++ b/sys/linux/gen/ppc64le.go @@ -116,6 +116,10 @@ var resources_ppc64le = []*ResourceDesc{ {Name: "ifindex_vcan", Type: &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int32", TypeSize: 4}}}, Kind: []string{"ifindex", "ifindex_vcan"}, Values: []uint64{0}}, {Name: "inotifydesc", Type: &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int32", TypeSize: 4}}}, Kind: []string{"inotifydesc"}, Values: []uint64{0}}, {Name: "io_ctx", Type: &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "intptr", TypeSize: 8}}}, Kind: []string{"io_ctx"}, Values: []uint64{0}}, + {Name: "ipc", Type: &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int32", TypeSize: 4}}}, Kind: []string{"ipc"}, Values: []uint64{0, 18446744073709551615}}, + {Name: "ipc_msq", Type: &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int32", TypeSize: 4}}}, Kind: []string{"ipc", "ipc_msq"}, Values: []uint64{0, 18446744073709551615}}, + {Name: "ipc_sem", Type: &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int32", TypeSize: 4}}}, Kind: []string{"ipc", "ipc_sem"}, Values: []uint64{0, 18446744073709551615}}, + {Name: "ipc_shm", Type: &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int32", TypeSize: 4}}}, Kind: []string{"ipc", "ipc_shm"}, Values: []uint64{0, 18446744073709551615}}, {Name: "key", Type: &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int32", TypeSize: 4}}}, Kind: []string{"key"}, Values: []uint64{0}}, {Name: "keyring", Type: &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int32", TypeSize: 4}}}, Kind: []string{"key", "keyring"}, Values: []uint64{0, 18446744073709551615, 18446744073709551614, 18446744073709551613, 18446744073709551612, 18446744073709551611, 18446744073709551610, 18446744073709551609, 18446744073709551608}}, {Name: "pid", Type: &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int32", TypeSize: 4}}}, Kind: []string{"pid"}, Values: []uint64{0, 18446744073709551615}}, @@ -123,6 +127,7 @@ var resources_ppc64le = []*ResourceDesc{ {Name: "rdma_cm_id", Type: &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int32", TypeSize: 4}}}, Kind: []string{"rdma_cm_id"}, Values: []uint64{18446744073709551615}}, {Name: "rdma_cm_mcast_id", Type: &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int32", TypeSize: 4}}}, Kind: []string{"rdma_cm_mcast_id"}, Values: []uint64{18446744073709551615}}, {Name: "rfd9p", Type: &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int32", TypeSize: 4}}}, Kind: []string{"fd", "rfd9p"}, Values: []uint64{18446744073709551615, 18446744073709551516}}, + {Name: "shmaddr", Type: &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "intptr", TypeSize: 8}}}, Kind: []string{"shmaddr"}, Values: []uint64{0}}, {Name: "sock", Type: &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int32", TypeSize: 4}}}, Kind: []string{"fd", "sock"}, Values: []uint64{18446744073709551615, 18446744073709551516}}, {Name: "sock_alg", Type: &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int32", TypeSize: 4}}}, Kind: []string{"fd", "sock", "sock_alg"}, Values: []uint64{18446744073709551615, 18446744073709551516}}, {Name: "sock_algconn", Type: &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int32", TypeSize: 4}}}, Kind: []string{"fd", "sock", "sock_algconn"}, Values: []uint64{18446744073709551615, 18446744073709551516}}, @@ -7670,6 +7675,19 @@ var structDescs_ppc64le = []*KeyedStruct{ &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int32", FldName: "tcp_fin_timeout", TypeSize: 4}}}, &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int32", FldName: "udp_timeout", TypeSize: 4}}}, }}}, + {Key: StructKey{Name: "ipc_perm"}, Desc: &StructDesc{TypeCommon: TypeCommon{TypeName: "ipc_perm", TypeSize: 48}, Fields: []Type{ + &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int32", FldName: "key", TypeSize: 4}}}, + &ResourceType{TypeCommon: TypeCommon{TypeName: "uid", FldName: "uid", TypeSize: 4}}, + &ResourceType{TypeCommon: TypeCommon{TypeName: "gid", FldName: "gid", TypeSize: 4}}, + &ResourceType{TypeCommon: TypeCommon{TypeName: "uid", FldName: "cuid", TypeSize: 4}}, + &ResourceType{TypeCommon: TypeCommon{TypeName: "gid", FldName: "cgid", TypeSize: 4}}, + &FlagsType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "open_mode", FldName: "mode", TypeSize: 4}}, Vals: []uint64{256, 128, 64, 32, 16, 8, 4, 2, 1}, BitMask: true}, + &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int16", FldName: "seq", TypeSize: 2}}}, + &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "pad0", TypeSize: 2}}}, + &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "pad", TypeSize: 4}}, IsPad: true}, + &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "pad1", TypeSize: 8}}}, + &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "pad2", TypeSize: 8}}}, + }}}, {Key: StructKey{Name: "ipgre_policy"}, Desc: &StructDesc{TypeCommon: TypeCommon{TypeName: "ipgre_policy", IsVarlen: true}, Fields: []Type{ &StructType{Key: StructKey{Name: "nlattr_t[const[IFLA_GRE_LOCAL, int16], ipv4_addr]"}, FldName: "IFLA_GRE_LOCAL"}, &StructType{Key: StructKey{Name: "nlattr_t[const[IFLA_GRE_REMOTE, int16], ipv4_addr]"}, FldName: "IFLA_GRE_REMOTE"}, @@ -9717,6 +9735,14 @@ var structDescs_ppc64le = []*KeyedStruct{ &BufferType{TypeCommon: TypeCommon{TypeName: "stringnoz", FldName: "nodots", TypeSize: 6}, Kind: 2, Values: []string{"nodots"}, NoZ: true}, &BufferType{TypeCommon: TypeCommon{TypeName: "stringnoz", FldName: "dots", TypeSize: 4}, Kind: 2, Values: []string{"dots"}, NoZ: true}, }}}, + {Key: StructKey{Name: "msgbuf"}, Desc: &StructDesc{TypeCommon: TypeCommon{TypeName: "msgbuf", IsVarlen: true}, Fields: []Type{ + &FlagsType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "msgbuf_type", FldName: "typ", TypeSize: 8}}, Vals: []uint64{0, 1, 2, 3}}, + &BufferType{TypeCommon: TypeCommon{TypeName: "array", FldName: "data", IsVarlen: true}}, + }}}, + {Key: StructKey{Name: "msgbuf", Dir: 1}, Desc: &StructDesc{TypeCommon: TypeCommon{TypeName: "msgbuf", ArgDir: 1, IsVarlen: true}, Fields: []Type{ + &FlagsType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "msgbuf_type", FldName: "typ", TypeSize: 8, ArgDir: 1}}, Vals: []uint64{0, 1, 2, 3}}, + &BufferType{TypeCommon: TypeCommon{TypeName: "array", FldName: "data", ArgDir: 1, IsVarlen: true}}, + }}}, {Key: StructKey{Name: "msghdr_alg"}, Desc: &StructDesc{TypeCommon: TypeCommon{TypeName: "msghdr_alg", TypeSize: 56}, Fields: []Type{ &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "addr", TypeSize: 8}}}, &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "addrlen", TypeSize: 4}}}, @@ -10652,6 +10678,19 @@ var structDescs_ppc64le = []*KeyedStruct{ &FlagsType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "send_flags", FldName: "msg_flags", TypeSize: 4}}, Vals: []uint64{2048, 4, 64, 128, 32768, 16384, 1, 16, 262144, 536870912, 67108864}, BitMask: true}, &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "pad", TypeSize: 4}}, IsPad: true}, }}}, + {Key: StructKey{Name: "msqid_ds"}, Desc: &StructDesc{TypeCommon: TypeCommon{TypeName: "msqid_ds", TypeSize: 120}, Fields: []Type{ + &StructType{Key: StructKey{Name: "ipc_perm"}, FldName: "perm"}, + &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "intptr", FldName: "stime", TypeSize: 8}}}, + &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "intptr", FldName: "rtime", TypeSize: 8}}}, + &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "intptr", FldName: "ctime", TypeSize: 8}}}, + &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "intptr", FldName: "cbytes", TypeSize: 8}}}, + &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "intptr", FldName: "qnum", TypeSize: 8}}}, + &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "intptr", FldName: "qbytes", TypeSize: 8}}}, + &ResourceType{TypeCommon: TypeCommon{TypeName: "pid", FldName: "lspid", TypeSize: 4}}, + &ResourceType{TypeCommon: TypeCommon{TypeName: "pid", FldName: "lrpid", TypeSize: 4}}, + &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "pad0", TypeSize: 8}}}, + &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "pad1", TypeSize: 8}}}, + }}}, {Key: StructKey{Name: "nbd_attr_policy"}, Desc: &StructDesc{TypeCommon: TypeCommon{TypeName: "nbd_attr_policy", IsVarlen: true}, Fields: []Type{ &StructType{Key: StructKey{Name: "nlattr_t[const[NBD_ATTR_INDEX, int16], proc[0, 1, int32]]"}, FldName: "NBD_ATTR_INDEX"}, &StructType{Key: StructKey{Name: "nlattr_t[const[NBD_ATTR_SIZE_BYTES, int16], int64]"}, FldName: "NBD_ATTR_SIZE_BYTES"}, @@ -18982,6 +19021,19 @@ var structDescs_ppc64le = []*KeyedStruct{ &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "sp2", TypeSize: 1}}, Val: 32}, &BufferType{TypeCommon: TypeCommon{TypeName: "string", FldName: "tcon", IsVarlen: true}, Kind: 2, SubKind: "selinux_task_context", Values: []string{"system_u:system_r:kernel_t:s0\x00", "unconfined_u:system_r:insmod_t:s0-s0:c0.c1023\x00", "/sbin/dhclient\x00", "unconfined\x00", "/usr/lib/telepathy/mission-control-5\x00", "/usr/sbin/cups-browsed\x00", "/usr/sbin/cupsd\x00", "/usr/sbin/ntpd\x00"}}, }}}, + {Key: StructKey{Name: "sembuf"}, Desc: &StructDesc{TypeCommon: TypeCommon{TypeName: "sembuf", TypeSize: 6}, Fields: []Type{ + &FlagsType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "sem_sem_id", FldName: "num", TypeSize: 2}}, Vals: []uint64{0, 1, 2, 3, 4}}, + &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int16", FldName: "op", TypeSize: 2}}}, + &FlagsType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "semop_flags", FldName: "flg", TypeSize: 2}}, Vals: []uint64{2048, 4096}, BitMask: true}, + }}}, + {Key: StructKey{Name: "semid_ds"}, Desc: &StructDesc{TypeCommon: TypeCommon{TypeName: "semid_ds", TypeSize: 88}, Fields: []Type{ + &StructType{Key: StructKey{Name: "ipc_perm"}, FldName: "perm"}, + &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "intptr", FldName: "otime", TypeSize: 8}}}, + &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "intptr", FldName: "ctime", TypeSize: 8}}}, + &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "intptr", FldName: "nsems", TypeSize: 8}}}, + &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "pad0", TypeSize: 8}}}, + &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "pad1", TypeSize: 8}}}, + }}}, {Key: StructKey{Name: "send_mmsghdr"}, Desc: &StructDesc{TypeCommon: TypeCommon{TypeName: "send_mmsghdr", TypeSize: 64}, Fields: []Type{ &StructType{Key: StructKey{Name: "send_msghdr"}, FldName: "msg_hdr"}, &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int32", FldName: "msg_len", TypeSize: 4}}}, @@ -19046,6 +19098,21 @@ var structDescs_ppc64le = []*KeyedStruct{ &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "dxfer_len", TypeSize: 4}}}, &PtrType{TypeCommon: TypeCommon{TypeName: "ptr", FldName: "dxferp", TypeSize: 8}, Type: &ArrayType{TypeCommon: TypeCommon{TypeName: "array", IsVarlen: true}, Type: &StructType{Key: StructKey{Name: "iovec[out, array[int8]]"}}}}, }}}, + {Key: StructKey{Name: "shmid_ds"}, Desc: &StructDesc{TypeCommon: TypeCommon{TypeName: "shmid_ds", TypeSize: 112}, Fields: []Type{ + &StructType{Key: StructKey{Name: "ipc_perm"}, FldName: "perm"}, + &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int32", FldName: "segsz", TypeSize: 4}}}, + &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "pad", TypeSize: 4}}, IsPad: true}, + &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "intptr", FldName: "atime", TypeSize: 8}}}, + &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "intptr", FldName: "dtime", TypeSize: 8}}}, + &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "intptr", FldName: "ctime", TypeSize: 8}}}, + &ResourceType{TypeCommon: TypeCommon{TypeName: "pid", FldName: "cpid", TypeSize: 4}}, + &ResourceType{TypeCommon: TypeCommon{TypeName: "pid", FldName: "lpid", TypeSize: 4}}, + &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int16", FldName: "nattch", TypeSize: 2}}}, + &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "unused0", TypeSize: 2}}}, + &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "pad", TypeSize: 4}}, IsPad: true}, + &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "unused1", TypeSize: 8}}}, + &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "unused2", TypeSize: 8}}}, + }}}, {Key: StructKey{Name: "sigaction"}, Desc: &StructDesc{TypeCommon: TypeCommon{TypeName: "sigaction", TypeSize: 32}, Fields: []Type{ &PtrType{TypeCommon: TypeCommon{TypeName: "ptr", FldName: "handler", TypeSize: 8}, Type: &BufferType{TypeCommon: TypeCommon{TypeName: "text", IsVarlen: true}, Kind: 4}}, &StructType{Key: StructKey{Name: "sigset"}, FldName: "mask"}, @@ -26304,7 +26371,7 @@ var syscalls_ppc64le = []*Syscall{ {NR: 324, Name: "fanotify_mark", CallName: "fanotify_mark", Args: []Type{ &ResourceType{TypeCommon: TypeCommon{TypeName: "fd_fanotify", FldName: "fd", TypeSize: 4}}, &FlagsType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "fanotify_mark", FldName: "flags", TypeSize: 8}}, Vals: []uint64{1, 2, 128, 4, 8, 16, 32, 64}, BitMask: true}, - &FlagsType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "fanotify_mask", FldName: "mask", TypeSize: 8}}, Vals: []uint64{1, 2, 8, 16, 32, 1073741824, 134217728}, BitMask: true}, + &FlagsType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "fanotify_mask", FldName: "mask", TypeSize: 8}}, Vals: []uint64{1, 2, 8, 16, 32, 4096, 1073741824, 134217728}, BitMask: true}, &ResourceType{TypeCommon: TypeCommon{TypeName: "fd_dir", FldName: "fddir", TypeSize: 4}}, &PtrType{TypeCommon: TypeCommon{TypeName: "ptr", FldName: "path", TypeSize: 8}, Type: &BufferType{TypeCommon: TypeCommon{TypeName: "filename", IsVarlen: true}, Kind: 3}}, }}, @@ -29489,11 +29556,6 @@ var syscalls_ppc64le = []*Syscall{ &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "cmd", TypeSize: 8}}, Val: 1075333447}, &PtrType{TypeCommon: TypeCommon{TypeName: "ptr", FldName: "arg", TypeSize: 8}, Type: &StructType{Key: StructKey{Name: "mISDN_devrename"}}}, }}, - {NR: 54, Name: "ioctl$INOTIFY_IOC_SETNEXTWD", CallName: "ioctl", Args: []Type{ - &ResourceType{TypeCommon: TypeCommon{TypeName: "fd_inotify", FldName: "fd", TypeSize: 4}}, - &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "cmd", TypeSize: 8}}, Val: 2147764480}, - &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "intptr", FldName: "arg", TypeSize: 8}}}, - }}, {NR: 54, Name: "ioctl$IOC_PR_CLEAR", CallName: "ioctl", Args: []Type{ &ResourceType{TypeCommon: TypeCommon{TypeName: "fd_block", FldName: "fd", TypeSize: 4}}, &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "cmd", TypeSize: 8}}, Val: 2148561101}, @@ -32870,6 +32932,56 @@ var syscalls_ppc64le = []*Syscall{ &FlagsType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "mremap_flags", FldName: "flags", TypeSize: 8}}, Vals: []uint64{1, 2}, BitMask: true}, &VmaType{TypeCommon: TypeCommon{TypeName: "vma", FldName: "newaddr", TypeSize: 8}}, }}, + {NR: 402, Name: "msgctl$IPC_INFO", CallName: "msgctl", Args: []Type{ + &ResourceType{TypeCommon: TypeCommon{TypeName: "ipc_msq", FldName: "msqid", TypeSize: 4}}, + &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "cmd", TypeSize: 8}}, Val: 3}, + &PtrType{TypeCommon: TypeCommon{TypeName: "buffer", FldName: "buf", TypeSize: 8}, Type: &BufferType{TypeCommon: TypeCommon{ArgDir: 1, IsVarlen: true}}}, + }}, + {NR: 402, Name: "msgctl$IPC_RMID", CallName: "msgctl", MissingArgs: 1, Args: []Type{ + &ResourceType{TypeCommon: TypeCommon{TypeName: "ipc_msq", FldName: "msqid", TypeSize: 4}}, + &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "cmd", TypeSize: 8}}}, + }}, + {NR: 402, Name: "msgctl$IPC_SET", CallName: "msgctl", Args: []Type{ + &ResourceType{TypeCommon: TypeCommon{TypeName: "ipc_msq", FldName: "msqid", TypeSize: 4}}, + &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "cmd", TypeSize: 8}}, Val: 1}, + &PtrType{TypeCommon: TypeCommon{TypeName: "ptr", FldName: "buf", TypeSize: 8}, Type: &StructType{Key: StructKey{Name: "msqid_ds"}}}, + }}, + {NR: 402, Name: "msgctl$IPC_STAT", CallName: "msgctl", Args: []Type{ + &ResourceType{TypeCommon: TypeCommon{TypeName: "ipc_msq", FldName: "msqid", TypeSize: 4}}, + &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "cmd", TypeSize: 8}}, Val: 2}, + &PtrType{TypeCommon: TypeCommon{TypeName: "buffer", FldName: "buf", TypeSize: 8}, Type: &BufferType{TypeCommon: TypeCommon{ArgDir: 1, IsVarlen: true}}}, + }}, + {NR: 402, Name: "msgctl$MSG_INFO", CallName: "msgctl", Args: []Type{ + &ResourceType{TypeCommon: TypeCommon{TypeName: "ipc_msq", FldName: "msqid", TypeSize: 4}}, + &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "cmd", TypeSize: 8}}, Val: 12}, + &PtrType{TypeCommon: TypeCommon{TypeName: "buffer", FldName: "buf", TypeSize: 8}, Type: &BufferType{TypeCommon: TypeCommon{ArgDir: 1, IsVarlen: true}}}, + }}, + {NR: 402, Name: "msgctl$MSG_STAT", CallName: "msgctl", Args: []Type{ + &ResourceType{TypeCommon: TypeCommon{TypeName: "ipc_msq", FldName: "msqid", TypeSize: 4}}, + &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "cmd", TypeSize: 8}}, Val: 11}, + &PtrType{TypeCommon: TypeCommon{TypeName: "buffer", FldName: "buf", TypeSize: 8}, Type: &BufferType{TypeCommon: TypeCommon{ArgDir: 1, IsVarlen: true}}}, + }}, + {NR: 399, Name: "msgget", CallName: "msgget", Args: []Type{ + &ProcType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "proc", FldName: "key", TypeSize: 8}}, ValuesStart: 2039379027, ValuesPerProc: 4}, + &FlagsType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "msgget_flags", FldName: "flags", TypeSize: 8}}, Vals: []uint64{512, 1024, 256, 128, 64, 32, 16, 8, 4, 2, 1}, BitMask: true}, + }, Ret: &ResourceType{TypeCommon: TypeCommon{TypeName: "ipc_msq", FldName: "ret", TypeSize: 4, ArgDir: 1}}}, + {NR: 399, Name: "msgget$private", CallName: "msgget", Args: []Type{ + &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "key", TypeSize: 8}}}, + &FlagsType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "msgget_flags", FldName: "flags", TypeSize: 8}}, Vals: []uint64{512, 1024, 256, 128, 64, 32, 16, 8, 4, 2, 1}, BitMask: true}, + }, Ret: &ResourceType{TypeCommon: TypeCommon{TypeName: "ipc_msq", FldName: "ret", TypeSize: 4, ArgDir: 1}}}, + {NR: 401, Name: "msgrcv", CallName: "msgrcv", Args: []Type{ + &ResourceType{TypeCommon: TypeCommon{TypeName: "ipc_msq", FldName: "msqid", TypeSize: 4}}, + &PtrType{TypeCommon: TypeCommon{TypeName: "ptr", FldName: "msgp", TypeSize: 8}, Type: &StructType{Key: StructKey{Name: "msgbuf", Dir: 1}}}, + &LenType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "len", FldName: "sz", TypeSize: 8}}, Buf: "msgp"}, + &FlagsType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "msgbuf_type", FldName: "typ", TypeSize: 8}}, Vals: []uint64{0, 1, 2, 3}}, + &FlagsType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "msgrcv_flags", FldName: "flags", TypeSize: 8}}, Vals: []uint64{2048, 8192, 4096}, BitMask: true}, + }}, + {NR: 400, Name: "msgsnd", CallName: "msgsnd", Args: []Type{ + &ResourceType{TypeCommon: TypeCommon{TypeName: "ipc_msq", FldName: "msqid", TypeSize: 4}}, + &PtrType{TypeCommon: TypeCommon{TypeName: "ptr", FldName: "msgp", TypeSize: 8}, Type: &StructType{Key: StructKey{Name: "msgbuf"}}}, + &LenType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "len", FldName: "sz", TypeSize: 8}}, Buf: "msgp"}, + &FlagsType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "msgsnd_flags", FldName: "flags", TypeSize: 8}}, Vals: []uint64{2048}, BitMask: true}, + }}, {NR: 144, Name: "msync", CallName: "msync", Args: []Type{ &VmaType{TypeCommon: TypeCommon{TypeName: "vma", FldName: "addr", TypeSize: 8}}, &LenType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "len", FldName: "len", TypeSize: 8}}, Buf: "addr"}, @@ -34273,6 +34385,99 @@ var syscalls_ppc64le = []*Syscall{ &PtrType{TypeCommon: TypeCommon{TypeName: "ptr", FldName: "exp", TypeSize: 8}, Type: &StructType{Key: StructKey{Name: "fd_set", Dir: 2}}}, &PtrType{TypeCommon: TypeCommon{TypeName: "ptr", FldName: "tvp", TypeSize: 8}, Type: &StructType{Key: StructKey{Name: "timeval", Dir: 2}}}, }}, + {NR: 394, Name: "semctl$GETALL", CallName: "semctl", Args: []Type{ + &ResourceType{TypeCommon: TypeCommon{TypeName: "ipc_sem", FldName: "semid", TypeSize: 4}}, + &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "semnum", TypeSize: 8}}}, + &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "cmd", TypeSize: 8}}, Val: 13}, + &PtrType{TypeCommon: TypeCommon{TypeName: "buffer", FldName: "arg", TypeSize: 8}, Type: &BufferType{TypeCommon: TypeCommon{ArgDir: 1, IsVarlen: true}}}, + }}, + {NR: 394, Name: "semctl$GETNCNT", CallName: "semctl", Args: []Type{ + &ResourceType{TypeCommon: TypeCommon{TypeName: "ipc_sem", FldName: "semid", TypeSize: 4}}, + &FlagsType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "sem_sem_id", FldName: "semnum", TypeSize: 8}}, Vals: []uint64{0, 1, 2, 3, 4}}, + &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "cmd", TypeSize: 8}}, Val: 14}, + &PtrType{TypeCommon: TypeCommon{TypeName: "buffer", FldName: "arg", TypeSize: 8}, Type: &BufferType{TypeCommon: TypeCommon{ArgDir: 1, IsVarlen: true}}}, + }}, + {NR: 394, Name: "semctl$GETPID", CallName: "semctl", Args: []Type{ + &ResourceType{TypeCommon: TypeCommon{TypeName: "ipc_sem", FldName: "semid", TypeSize: 4}}, + &FlagsType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "sem_sem_id", FldName: "semnum", TypeSize: 8}}, Vals: []uint64{0, 1, 2, 3, 4}}, + &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "cmd", TypeSize: 8}}, Val: 11}, + &PtrType{TypeCommon: TypeCommon{TypeName: "buffer", FldName: "arg", TypeSize: 8}, Type: &BufferType{TypeCommon: TypeCommon{ArgDir: 1, IsVarlen: true}}}, + }}, + {NR: 394, Name: "semctl$GETVAL", CallName: "semctl", Args: []Type{ + &ResourceType{TypeCommon: TypeCommon{TypeName: "ipc_sem", FldName: "semid", TypeSize: 4}}, + &FlagsType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "sem_sem_id", FldName: "semnum", TypeSize: 8}}, Vals: []uint64{0, 1, 2, 3, 4}}, + &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "cmd", TypeSize: 8}}, Val: 12}, + &PtrType{TypeCommon: TypeCommon{TypeName: "buffer", FldName: "arg", TypeSize: 8}, Type: &BufferType{TypeCommon: TypeCommon{ArgDir: 1, IsVarlen: true}}}, + }}, + {NR: 394, Name: "semctl$GETZCNT", CallName: "semctl", Args: []Type{ + &ResourceType{TypeCommon: TypeCommon{TypeName: "ipc_sem", FldName: "semid", TypeSize: 4}}, + &FlagsType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "sem_sem_id", FldName: "semnum", TypeSize: 8}}, Vals: []uint64{0, 1, 2, 3, 4}}, + &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "cmd", TypeSize: 8}}, Val: 15}, + &PtrType{TypeCommon: TypeCommon{TypeName: "buffer", FldName: "arg", TypeSize: 8}, Type: &BufferType{TypeCommon: TypeCommon{ArgDir: 1, IsVarlen: true}}}, + }}, + {NR: 394, Name: "semctl$IPC_INFO", CallName: "semctl", Args: []Type{ + &ResourceType{TypeCommon: TypeCommon{TypeName: "ipc_sem", FldName: "semid", TypeSize: 4}}, + &FlagsType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "sem_sem_id", FldName: "semnum", TypeSize: 8}}, Vals: []uint64{0, 1, 2, 3, 4}}, + &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "cmd", TypeSize: 8}}, Val: 3}, + &PtrType{TypeCommon: TypeCommon{TypeName: "buffer", FldName: "buf", TypeSize: 8}, Type: &BufferType{TypeCommon: TypeCommon{ArgDir: 1, IsVarlen: true}}}, + }}, + {NR: 394, Name: "semctl$IPC_RMID", CallName: "semctl", MissingArgs: 1, Args: []Type{ + &ResourceType{TypeCommon: TypeCommon{TypeName: "ipc_sem", FldName: "semid", TypeSize: 4}}, + &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "semnum", TypeSize: 8}}}, + &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "cmd", TypeSize: 8}}}, + }}, + {NR: 394, Name: "semctl$IPC_SET", CallName: "semctl", Args: []Type{ + &ResourceType{TypeCommon: TypeCommon{TypeName: "ipc_sem", FldName: "semid", TypeSize: 4}}, + &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "semnum", TypeSize: 8}}}, + &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "cmd", TypeSize: 8}}, Val: 1}, + &PtrType{TypeCommon: TypeCommon{TypeName: "ptr", FldName: "arg", TypeSize: 8}, Type: &StructType{Key: StructKey{Name: "semid_ds"}}}, + }}, + {NR: 394, Name: "semctl$IPC_STAT", CallName: "semctl", Args: []Type{ + &ResourceType{TypeCommon: TypeCommon{TypeName: "ipc_sem", FldName: "semid", TypeSize: 4}}, + &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "semnum", TypeSize: 8}}}, + &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "cmd", TypeSize: 8}}, Val: 2}, + &PtrType{TypeCommon: TypeCommon{TypeName: "buffer", FldName: "arg", TypeSize: 8}, Type: &BufferType{TypeCommon: TypeCommon{ArgDir: 1, IsVarlen: true}}}, + }}, + {NR: 394, Name: "semctl$SEM_INFO", CallName: "semctl", Args: []Type{ + &ResourceType{TypeCommon: TypeCommon{TypeName: "ipc_sem", FldName: "semid", TypeSize: 4}}, + &FlagsType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "sem_sem_id", FldName: "semnum", TypeSize: 8}}, Vals: []uint64{0, 1, 2, 3, 4}}, + &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "cmd", TypeSize: 8}}, Val: 19}, + &PtrType{TypeCommon: TypeCommon{TypeName: "buffer", FldName: "arg", TypeSize: 8}, Type: &BufferType{TypeCommon: TypeCommon{ArgDir: 1, IsVarlen: true}}}, + }}, + {NR: 394, Name: "semctl$SEM_STAT", CallName: "semctl", Args: []Type{ + &ResourceType{TypeCommon: TypeCommon{TypeName: "ipc_sem", FldName: "semid", TypeSize: 4}}, + &FlagsType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "sem_sem_id", FldName: "semnum", TypeSize: 8}}, Vals: []uint64{0, 1, 2, 3, 4}}, + &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "cmd", TypeSize: 8}}, Val: 18}, + &PtrType{TypeCommon: TypeCommon{TypeName: "buffer", FldName: "arg", TypeSize: 8}, Type: &BufferType{TypeCommon: TypeCommon{ArgDir: 1, IsVarlen: true}}}, + }}, + {NR: 394, Name: "semctl$SETALL", CallName: "semctl", Args: []Type{ + &ResourceType{TypeCommon: TypeCommon{TypeName: "ipc_sem", FldName: "semid", TypeSize: 4}}, + &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "semnum", TypeSize: 8}}}, + &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "cmd", TypeSize: 8}}, Val: 17}, + &PtrType{TypeCommon: TypeCommon{TypeName: "ptr", FldName: "arg", TypeSize: 8}, Type: &ArrayType{TypeCommon: TypeCommon{TypeName: "array", IsVarlen: true}, Type: &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int16", TypeSize: 2}}}}}, + }}, + {NR: 394, Name: "semctl$SETVAL", CallName: "semctl", Args: []Type{ + &ResourceType{TypeCommon: TypeCommon{TypeName: "ipc_sem", FldName: "semid", TypeSize: 4}}, + &FlagsType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "sem_sem_id", FldName: "semnum", TypeSize: 8}}, Vals: []uint64{0, 1, 2, 3, 4}}, + &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "cmd", TypeSize: 8}}, Val: 16}, + &PtrType{TypeCommon: TypeCommon{TypeName: "ptr", FldName: "arg", TypeSize: 8}, Type: &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int32", TypeSize: 4}}}}, + }}, + {NR: 393, Name: "semget", CallName: "semget", Args: []Type{ + &ProcType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "proc", FldName: "key", TypeSize: 8}}, ValuesStart: 2039359027, ValuesPerProc: 4}, + &FlagsType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "sem_sem_id", FldName: "nsems", TypeSize: 8}}, Vals: []uint64{0, 1, 2, 3, 4}}, + &FlagsType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "semget_flags", FldName: "flags", TypeSize: 8}}, Vals: []uint64{512, 1024, 256, 128, 64, 32, 16, 8, 4, 2, 1}, BitMask: true}, + }, Ret: &ResourceType{TypeCommon: TypeCommon{TypeName: "ipc_sem", FldName: "ret", TypeSize: 4, ArgDir: 1}}}, + {NR: 393, Name: "semget$private", CallName: "semget", Args: []Type{ + &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "key", TypeSize: 8}}}, + &FlagsType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "sem_sem_id", FldName: "nsems", TypeSize: 8}}, Vals: []uint64{0, 1, 2, 3, 4}}, + &FlagsType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "semget_flags", FldName: "flags", TypeSize: 8}}, Vals: []uint64{512, 1024, 256, 128, 64, 32, 16, 8, 4, 2, 1}, BitMask: true}, + }, Ret: &ResourceType{TypeCommon: TypeCommon{TypeName: "ipc_sem", FldName: "ret", TypeSize: 4, ArgDir: 1}}}, + {NR: 392, Name: "semtimedop", CallName: "semtimedop", Args: []Type{ + &ResourceType{TypeCommon: TypeCommon{TypeName: "ipc_sem", FldName: "semid", TypeSize: 4}}, + &PtrType{TypeCommon: TypeCommon{TypeName: "ptr", FldName: "ops", TypeSize: 8}, Type: &ArrayType{TypeCommon: TypeCommon{TypeName: "array", IsVarlen: true}, Type: &StructType{Key: StructKey{Name: "sembuf"}}}}, + &LenType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "len", FldName: "nops", TypeSize: 8}}, Buf: "ops"}, + &PtrType{TypeCommon: TypeCommon{TypeName: "ptr", FldName: "timeout", TypeSize: 8}, Type: &StructType{Key: StructKey{Name: "timespec"}}}, + }}, {NR: 186, Name: "sendfile", CallName: "sendfile", Args: []Type{ &ResourceType{TypeCommon: TypeCommon{TypeName: "fd", FldName: "fdout", TypeSize: 4}}, &ResourceType{TypeCommon: TypeCommon{TypeName: "fd", FldName: "fdin", TypeSize: 4}}, @@ -36906,6 +37111,63 @@ var syscalls_ppc64le = []*Syscall{ &LenType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "len", FldName: "size", TypeSize: 8}}, Buf: "val"}, &FlagsType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "setxattr_flags", FldName: "flags", TypeSize: 8}}, Vals: []uint64{1, 2}, BitMask: true}, }}, + {NR: 397, Name: "shmat", CallName: "shmat", Args: []Type{ + &ResourceType{TypeCommon: TypeCommon{TypeName: "ipc_shm", FldName: "shmid", TypeSize: 4}}, + &VmaType{TypeCommon: TypeCommon{TypeName: "vma", FldName: "addr", TypeSize: 8}}, + &FlagsType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "shmat_flags", FldName: "flags", TypeSize: 8}}, Vals: []uint64{8192, 4096, 16384}, BitMask: true}, + }, Ret: &ResourceType{TypeCommon: TypeCommon{TypeName: "shmaddr", FldName: "ret", TypeSize: 8, ArgDir: 1}}}, + {NR: 396, Name: "shmctl$IPC_INFO", CallName: "shmctl", Args: []Type{ + &ResourceType{TypeCommon: TypeCommon{TypeName: "ipc_shm", FldName: "shmid", TypeSize: 4}}, + &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "cmd", TypeSize: 8}}, Val: 3}, + &PtrType{TypeCommon: TypeCommon{TypeName: "buffer", FldName: "buf", TypeSize: 8}, Type: &BufferType{TypeCommon: TypeCommon{ArgDir: 1, IsVarlen: true}}}, + }}, + {NR: 396, Name: "shmctl$IPC_RMID", CallName: "shmctl", MissingArgs: 1, Args: []Type{ + &ResourceType{TypeCommon: TypeCommon{TypeName: "ipc_shm", FldName: "shmid", TypeSize: 4}}, + &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "cmd", TypeSize: 8}}}, + }}, + {NR: 396, Name: "shmctl$IPC_SET", CallName: "shmctl", Args: []Type{ + &ResourceType{TypeCommon: TypeCommon{TypeName: "ipc_shm", FldName: "shmid", TypeSize: 4}}, + &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "cmd", TypeSize: 8}}, Val: 1}, + &PtrType{TypeCommon: TypeCommon{TypeName: "ptr", FldName: "buf", TypeSize: 8}, Type: &StructType{Key: StructKey{Name: "shmid_ds"}}}, + }}, + {NR: 396, Name: "shmctl$IPC_STAT", CallName: "shmctl", Args: []Type{ + &ResourceType{TypeCommon: TypeCommon{TypeName: "ipc_shm", FldName: "shmid", TypeSize: 4}}, + &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "cmd", TypeSize: 8}}, Val: 2}, + &PtrType{TypeCommon: TypeCommon{TypeName: "buffer", FldName: "buf", TypeSize: 8}, Type: &BufferType{TypeCommon: TypeCommon{ArgDir: 1, IsVarlen: true}}}, + }}, + {NR: 396, Name: "shmctl$SHM_INFO", CallName: "shmctl", Args: []Type{ + &ResourceType{TypeCommon: TypeCommon{TypeName: "ipc_shm", FldName: "shmid", TypeSize: 4}}, + &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "cmd", TypeSize: 8}}, Val: 14}, + &PtrType{TypeCommon: TypeCommon{TypeName: "buffer", FldName: "buf", TypeSize: 8}, Type: &BufferType{TypeCommon: TypeCommon{ArgDir: 1, IsVarlen: true}}}, + }}, + {NR: 396, Name: "shmctl$SHM_LOCK", CallName: "shmctl", MissingArgs: 1, Args: []Type{ + &ResourceType{TypeCommon: TypeCommon{TypeName: "ipc_shm", FldName: "shmid", TypeSize: 4}}, + &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "cmd", TypeSize: 8}}, Val: 11}, + }}, + {NR: 396, Name: "shmctl$SHM_STAT", CallName: "shmctl", Args: []Type{ + &ResourceType{TypeCommon: TypeCommon{TypeName: "ipc_shm", FldName: "shmid", TypeSize: 4}}, + &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "cmd", TypeSize: 8}}, Val: 13}, + &PtrType{TypeCommon: TypeCommon{TypeName: "buffer", FldName: "buf", TypeSize: 8}, Type: &BufferType{TypeCommon: TypeCommon{ArgDir: 1, IsVarlen: true}}}, + }}, + {NR: 396, Name: "shmctl$SHM_UNLOCK", CallName: "shmctl", MissingArgs: 1, Args: []Type{ + &ResourceType{TypeCommon: TypeCommon{TypeName: "ipc_shm", FldName: "shmid", TypeSize: 4}}, + &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "cmd", TypeSize: 8}}, Val: 12}, + }}, + {NR: 398, Name: "shmdt", CallName: "shmdt", Args: []Type{ + &ResourceType{TypeCommon: TypeCommon{TypeName: "shmaddr", FldName: "addr", TypeSize: 8}}, + }}, + {NR: 395, Name: "shmget", CallName: "shmget", Args: []Type{ + &ProcType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "proc", FldName: "key", TypeSize: 8}}, ValuesStart: 2039339027, ValuesPerProc: 4}, + &LenType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "len", FldName: "size", TypeSize: 8}}, Buf: "unused"}, + &FlagsType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "shmget_flags", FldName: "flags", TypeSize: 8}}, Vals: []uint64{512, 1024, 2048, 1409286144, 2013265920, 4096, 256, 128, 64, 32, 16, 8, 4, 2, 1}}, + &VmaType{TypeCommon: TypeCommon{TypeName: "vma", FldName: "unused", TypeSize: 8}}, + }, Ret: &ResourceType{TypeCommon: TypeCommon{TypeName: "ipc_shm", FldName: "ret", TypeSize: 4, ArgDir: 1}}}, + {NR: 395, Name: "shmget$private", CallName: "shmget", Args: []Type{ + &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "key", TypeSize: 8}}}, + &LenType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "len", FldName: "size", TypeSize: 8}}, Buf: "unused"}, + &FlagsType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "shmget_flags", FldName: "flags", TypeSize: 8}}, Vals: []uint64{512, 1024, 2048, 1409286144, 2013265920, 4096, 256, 128, 64, 32, 16, 8, 4, 2, 1}}, + &VmaType{TypeCommon: TypeCommon{TypeName: "vma", FldName: "unused", TypeSize: 8}}, + }, Ret: &ResourceType{TypeCommon: TypeCommon{TypeName: "ipc_shm", FldName: "ret", TypeSize: 4, ArgDir: 1}}}, {NR: 338, Name: "shutdown", CallName: "shutdown", Args: []Type{ &ResourceType{TypeCommon: TypeCommon{TypeName: "sock", FldName: "fd", TypeSize: 4}}, &FlagsType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "shutdown_flags", FldName: "how", TypeSize: 8}}, Vals: []uint64{0, 1}, BitMask: true}, @@ -39713,6 +39975,8 @@ var consts_ppc64le = []ConstValue{ {Name: "FAN_NONBLOCK", Value: 2}, {Name: "FAN_ONDIR", Value: 1073741824}, {Name: "FAN_OPEN", Value: 32}, + {Name: "FAN_OPEN_EXEC", Value: 4096}, + {Name: "FAN_OPEN_EXEC_PERM", Value: 262144}, {Name: "FAN_OPEN_PERM", Value: 65536}, {Name: "FAN_UNLIMITED_MARKS", Value: 32}, {Name: "FAN_UNLIMITED_QUEUE", Value: 16}, @@ -40418,7 +40682,6 @@ var consts_ppc64le = []ConstValue{ {Name: "IMGETVERSION", Value: 1074022722}, {Name: "IMHOLD_L1", Value: 1074022728}, {Name: "IMSETDEVNAME", Value: 1075333447}, - {Name: "INOTIFY_IOC_SETNEXTWD", Value: 2147764480}, {Name: "INPUT_PROP_MAX", Value: 31}, {Name: "IN_ACCESS", Value: 1}, {Name: "IN_ATTRIB", Value: 4}, @@ -44529,6 +44792,10 @@ var consts_ppc64le = []ConstValue{ {Name: "__NR_mq_timedsend", Value: 264}, {Name: "__NR_mq_unlink", Value: 263}, {Name: "__NR_mremap", Value: 163}, + {Name: "__NR_msgctl", Value: 402}, + {Name: "__NR_msgget", Value: 399}, + {Name: "__NR_msgrcv", Value: 401}, + {Name: "__NR_msgsnd", Value: 400}, {Name: "__NR_msync", Value: 144}, {Name: "__NR_munlock", Value: 151}, {Name: "__NR_munlockall", Value: 153}, @@ -44597,6 +44864,9 @@ var consts_ppc64le = []ConstValue{ {Name: "__NR_sched_yield", Value: 158}, {Name: "__NR_seccomp", Value: 358}, {Name: "__NR_select", Value: 82}, + {Name: "__NR_semctl", Value: 394}, + {Name: "__NR_semget", Value: 393}, + {Name: "__NR_semtimedop", Value: 392}, {Name: "__NR_sendfile", Value: 186}, {Name: "__NR_sendmmsg", Value: 349}, {Name: "__NR_sendmsg", Value: 341}, @@ -44620,6 +44890,10 @@ var consts_ppc64le = []ConstValue{ {Name: "__NR_setsockopt", Value: 339}, {Name: "__NR_setuid", Value: 23}, {Name: "__NR_setxattr", Value: 209}, + {Name: "__NR_shmat", Value: 397}, + {Name: "__NR_shmctl", Value: 396}, + {Name: "__NR_shmdt", Value: 398}, + {Name: "__NR_shmget", Value: 395}, {Name: "__NR_shutdown", Value: 338}, {Name: "__NR_sigaltstack", Value: 185}, {Name: "__NR_signalfd", Value: 305}, @@ -44676,4 +44950,4 @@ var consts_ppc64le = []ConstValue{ {Name: "bpf_insn_load_imm_dw", Value: 24}, } -const revision_ppc64le = "346fc9d6dd8da59799817acda9912b876ce04ccc" +const revision_ppc64le = "ea43c338e14bea33c0928f245f9524d30f8733bf" diff --git a/sys/linux/init.go b/sys/linux/init.go index 9b53116d..a76fd78f 100644 --- a/sys/linux/init.go +++ b/sys/linux/init.go @@ -27,6 +27,7 @@ func InitTarget(target *prog.Target) { EXT4_IOC_MIGRATE: target.GetConst("EXT4_IOC_MIGRATE"), FAN_OPEN_PERM: target.GetConst("FAN_OPEN_PERM"), FAN_ACCESS_PERM: target.GetConst("FAN_ACCESS_PERM"), + FAN_OPEN_EXEC_PERM: target.GetConst("FAN_OPEN_EXEC_PERM"), PTRACE_TRACEME: target.GetConst("PTRACE_TRACEME"), CLOCK_REALTIME: target.GetConst("CLOCK_REALTIME"), AF_NFC: target.GetConst("AF_NFC"), @@ -116,6 +117,7 @@ type arch struct { EXT4_IOC_MIGRATE uint64 FAN_OPEN_PERM uint64 FAN_ACCESS_PERM uint64 + FAN_OPEN_EXEC_PERM uint64 PTRACE_TRACEME uint64 CLOCK_REALTIME uint64 ARCH_SET_FS uint64 @@ -164,12 +166,12 @@ func (arch *arch) sanitizeCall(c *prog.Call) { cmd.Val = arch.EXT4_IOC_MIGRATE } case "fanotify_mark": - // FAN_OPEN_PERM and FAN_ACCESS_PERM require the program to reply to open requests. + // FAN_*_PERM require the program to reply to open requests. // If that does not happen, the program will hang in an unkillable state forever. // See the following bug for details: // https://groups.google.com/d/msg/syzkaller-bugs/pD-vbqJu6U0/kGH30p3lBgAJ mask := c.Args[2].(*prog.ConstArg) - mask.Val &^= arch.FAN_OPEN_PERM | arch.FAN_ACCESS_PERM + mask.Val &^= arch.FAN_OPEN_PERM | arch.FAN_ACCESS_PERM | arch.FAN_OPEN_EXEC_PERM case "ptrace": req := c.Args[0].(*prog.ConstArg) // PTRACE_TRACEME leads to unkillable processes, see: diff --git a/sys/linux/init_test.go b/sys/linux/init_test.go index fb81c114..45b6397f 100644 --- a/sys/linux/init_test.go +++ b/sys/linux/init_test.go @@ -64,11 +64,11 @@ func TestSanitize(t *testing.T) { }, { `fanotify_mark(0x1, 0x2, 0x407fe029, 0x3, 0x0)`, - `fanotify_mark(0x1, 0x2, 0x407ce029, 0x3, 0x0)`, + `fanotify_mark(0x1, 0x2, 0x4078e029, 0x3, 0x0)`, }, { - `fanotify_mark(0xffffffffffffffff, 0xffffffffffffffff, 0xfffffffffffcffff, 0xffffffffffffffff, 0x0)`, - `fanotify_mark(0xffffffffffffffff, 0xffffffffffffffff, 0xfffffffffffcffff, 0xffffffffffffffff, 0x0)`, + `fanotify_mark(0xffffffffffffffff, 0xffffffffffffffff, 0xfffffffffff8ffff, 0xffffffffffffffff, 0x0)`, + `fanotify_mark(0xffffffffffffffff, 0xffffffffffffffff, 0xfffffffffff8ffff, 0xffffffffffffffff, 0x0)`, }, { `syz_init_net_socket$bt_hci(0x1, 0x0, 0x0)`, diff --git a/sys/linux/inotify.txt b/sys/linux/inotify.txt new file mode 100644 index 00000000..008faba1 --- /dev/null +++ b/sys/linux/inotify.txt @@ -0,0 +1,16 @@ +# Copyright 2015 syzkaller project authors. All rights reserved. +# Use of this source code is governed by Apache 2 LICENSE that can be found in the LICENSE file. + +include + +resource fd_inotify[fd] +resource inotifydesc[int32] + +inotify_init() fd_inotify +inotify_init1(flags flags[inotify_flags]) fd_inotify +inotify_add_watch(fd fd_inotify, file ptr[in, filename], mask flags[inotify_mask]) inotifydesc +inotify_rm_watch(fd fd_inotify, wd inotifydesc) +ioctl$INOTIFY_IOC_SETNEXTWD(fd fd_inotify, cmd const[INOTIFY_IOC_SETNEXTWD], arg intptr) + +inotify_flags = IN_NONBLOCK, IN_CLOEXEC +inotify_mask = IN_ACCESS, IN_ATTRIB, IN_CLOSE_WRITE, IN_CLOSE_NOWRITE, IN_CREATE, IN_DELETE, IN_DELETE_SELF, IN_MODIFY, IN_MOVE_SELF, IN_MOVED_FROM, IN_MOVED_TO, IN_OPEN, IN_DONT_FOLLOW, IN_EXCL_UNLINK, IN_MASK_ADD, IN_ONESHOT, IN_ONLYDIR, IN_MASK_CREATE, IN_ISDIR diff --git a/sys/linux/inotify_386.const b/sys/linux/inotify_386.const new file mode 100644 index 00000000..b90de6bb --- /dev/null +++ b/sys/linux/inotify_386.const @@ -0,0 +1,28 @@ +# AUTOGENERATED FILE +INOTIFY_IOC_SETNEXTWD = 1074022656 +IN_ACCESS = 1 +IN_ATTRIB = 4 +IN_CLOEXEC = 524288 +IN_CLOSE_NOWRITE = 16 +IN_CLOSE_WRITE = 8 +IN_CREATE = 256 +IN_DELETE = 512 +IN_DELETE_SELF = 1024 +IN_DONT_FOLLOW = 33554432 +IN_EXCL_UNLINK = 67108864 +IN_ISDIR = 1073741824 +IN_MASK_ADD = 536870912 +IN_MASK_CREATE = 268435456 +IN_MODIFY = 2 +IN_MOVED_FROM = 64 +IN_MOVED_TO = 128 +IN_MOVE_SELF = 2048 +IN_NONBLOCK = 2048 +IN_ONESHOT = 2147483648 +IN_ONLYDIR = 16777216 +IN_OPEN = 32 +__NR_inotify_add_watch = 292 +__NR_inotify_init = 291 +__NR_inotify_init1 = 332 +__NR_inotify_rm_watch = 293 +__NR_ioctl = 54 diff --git a/sys/linux/inotify_amd64.const b/sys/linux/inotify_amd64.const new file mode 100644 index 00000000..3b8f1be3 --- /dev/null +++ b/sys/linux/inotify_amd64.const @@ -0,0 +1,28 @@ +# AUTOGENERATED FILE +INOTIFY_IOC_SETNEXTWD = 1074022656 +IN_ACCESS = 1 +IN_ATTRIB = 4 +IN_CLOEXEC = 524288 +IN_CLOSE_NOWRITE = 16 +IN_CLOSE_WRITE = 8 +IN_CREATE = 256 +IN_DELETE = 512 +IN_DELETE_SELF = 1024 +IN_DONT_FOLLOW = 33554432 +IN_EXCL_UNLINK = 67108864 +IN_ISDIR = 1073741824 +IN_MASK_ADD = 536870912 +IN_MASK_CREATE = 268435456 +IN_MODIFY = 2 +IN_MOVED_FROM = 64 +IN_MOVED_TO = 128 +IN_MOVE_SELF = 2048 +IN_NONBLOCK = 2048 +IN_ONESHOT = 2147483648 +IN_ONLYDIR = 16777216 +IN_OPEN = 32 +__NR_inotify_add_watch = 254 +__NR_inotify_init = 253 +__NR_inotify_init1 = 294 +__NR_inotify_rm_watch = 255 +__NR_ioctl = 16 diff --git a/sys/linux/inotify_arm.const b/sys/linux/inotify_arm.const new file mode 100644 index 00000000..3c05968b --- /dev/null +++ b/sys/linux/inotify_arm.const @@ -0,0 +1,28 @@ +# AUTOGENERATED FILE +# INOTIFY_IOC_SETNEXTWD is not set +IN_ACCESS = 1 +IN_ATTRIB = 4 +IN_CLOEXEC = 524288 +IN_CLOSE_NOWRITE = 16 +IN_CLOSE_WRITE = 8 +IN_CREATE = 256 +IN_DELETE = 512 +IN_DELETE_SELF = 1024 +IN_DONT_FOLLOW = 33554432 +IN_EXCL_UNLINK = 67108864 +IN_ISDIR = 1073741824 +IN_MASK_ADD = 536870912 +IN_MASK_CREATE = 268435456 +IN_MODIFY = 2 +IN_MOVED_FROM = 64 +IN_MOVED_TO = 128 +IN_MOVE_SELF = 2048 +IN_NONBLOCK = 2048 +IN_ONESHOT = 2147483648 +IN_ONLYDIR = 16777216 +IN_OPEN = 32 +__NR_inotify_add_watch = 317 +__NR_inotify_init = 316 +__NR_inotify_init1 = 360 +__NR_inotify_rm_watch = 318 +__NR_ioctl = 54 diff --git a/sys/linux/inotify_arm64.const b/sys/linux/inotify_arm64.const new file mode 100644 index 00000000..cc57a5dd --- /dev/null +++ b/sys/linux/inotify_arm64.const @@ -0,0 +1,28 @@ +# AUTOGENERATED FILE +INOTIFY_IOC_SETNEXTWD = 1074022656 +IN_ACCESS = 1 +IN_ATTRIB = 4 +IN_CLOEXEC = 524288 +IN_CLOSE_NOWRITE = 16 +IN_CLOSE_WRITE = 8 +IN_CREATE = 256 +IN_DELETE = 512 +IN_DELETE_SELF = 1024 +IN_DONT_FOLLOW = 33554432 +IN_EXCL_UNLINK = 67108864 +IN_ISDIR = 1073741824 +IN_MASK_ADD = 536870912 +IN_MASK_CREATE = 268435456 +IN_MODIFY = 2 +IN_MOVED_FROM = 64 +IN_MOVED_TO = 128 +IN_MOVE_SELF = 2048 +IN_NONBLOCK = 2048 +IN_ONESHOT = 2147483648 +IN_ONLYDIR = 16777216 +IN_OPEN = 32 +__NR_inotify_add_watch = 27 +# __NR_inotify_init is not set +__NR_inotify_init1 = 26 +__NR_inotify_rm_watch = 28 +__NR_ioctl = 29 diff --git a/sys/linux/inotify_ppc64le.const b/sys/linux/inotify_ppc64le.const new file mode 100644 index 00000000..fd011242 --- /dev/null +++ b/sys/linux/inotify_ppc64le.const @@ -0,0 +1,28 @@ +# AUTOGENERATED FILE +# INOTIFY_IOC_SETNEXTWD is not set +IN_ACCESS = 1 +IN_ATTRIB = 4 +IN_CLOEXEC = 524288 +IN_CLOSE_NOWRITE = 16 +IN_CLOSE_WRITE = 8 +IN_CREATE = 256 +IN_DELETE = 512 +IN_DELETE_SELF = 1024 +IN_DONT_FOLLOW = 33554432 +IN_EXCL_UNLINK = 67108864 +IN_ISDIR = 1073741824 +IN_MASK_ADD = 536870912 +IN_MASK_CREATE = 268435456 +IN_MODIFY = 2 +IN_MOVED_FROM = 64 +IN_MOVED_TO = 128 +IN_MOVE_SELF = 2048 +IN_NONBLOCK = 2048 +IN_ONESHOT = 2147483648 +IN_ONLYDIR = 16777216 +IN_OPEN = 32 +__NR_inotify_add_watch = 276 +__NR_inotify_init = 275 +__NR_inotify_init1 = 318 +__NR_inotify_rm_watch = 277 +__NR_ioctl = 54 diff --git a/sys/linux/ipc_386.const b/sys/linux/ipc_386.const index 5de4bb80..5261865e 100644 --- a/sys/linux/ipc_386.const +++ b/sys/linux/ipc_386.const @@ -41,15 +41,15 @@ S_IWUSR = 128 S_IXGRP = 8 S_IXOTH = 1 S_IXUSR = 64 -# __NR_msgctl is not set -# __NR_msgget is not set -# __NR_msgrcv is not set -# __NR_msgsnd is not set -# __NR_semctl is not set -# __NR_semget is not set +__NR_msgctl = 402 +__NR_msgget = 399 +__NR_msgrcv = 401 +__NR_msgsnd = 400 +__NR_semctl = 394 +__NR_semget = 393 # __NR_semop is not set # __NR_semtimedop is not set -# __NR_shmat is not set -# __NR_shmctl is not set -# __NR_shmdt is not set -# __NR_shmget is not set +__NR_shmat = 397 +__NR_shmctl = 396 +__NR_shmdt = 398 +__NR_shmget = 395 diff --git a/sys/linux/ipc_ppc64le.const b/sys/linux/ipc_ppc64le.const index 5de4bb80..81323166 100644 --- a/sys/linux/ipc_ppc64le.const +++ b/sys/linux/ipc_ppc64le.const @@ -41,15 +41,15 @@ S_IWUSR = 128 S_IXGRP = 8 S_IXOTH = 1 S_IXUSR = 64 -# __NR_msgctl is not set -# __NR_msgget is not set -# __NR_msgrcv is not set -# __NR_msgsnd is not set -# __NR_semctl is not set -# __NR_semget is not set +__NR_msgctl = 402 +__NR_msgget = 399 +__NR_msgrcv = 401 +__NR_msgsnd = 400 +__NR_semctl = 394 +__NR_semget = 393 # __NR_semop is not set -# __NR_semtimedop is not set -# __NR_shmat is not set -# __NR_shmctl is not set -# __NR_shmdt is not set -# __NR_shmget is not set +__NR_semtimedop = 392 +__NR_shmat = 397 +__NR_shmctl = 396 +__NR_shmdt = 398 +__NR_shmget = 395 diff --git a/sys/linux/sys.txt b/sys/linux/sys.txt index a17d9d2f..9101402d 100644 --- a/sys/linux/sys.txt +++ b/sys/linux/sys.txt @@ -5,8 +5,6 @@ include include -include -include include include include @@ -276,17 +274,6 @@ personality(persona flags[personality_flags]) #getsid(pid pid) pid #setsid() pid -resource fd_inotify[fd] -resource fd_fanotify[fd] -resource inotifydesc[int32] -inotify_init() fd_inotify -inotify_init1(flags flags[inotify_flags]) fd_inotify -inotify_add_watch(fd fd_inotify, file ptr[in, filename], mask flags[inotify_mask]) inotifydesc -inotify_rm_watch(fd fd_inotify, wd inotifydesc) -fanotify_init(flags flags[fanotify_flags], events flags[fanotify_events]) fd_fanotify -fanotify_mark(fd fd_fanotify, flags flags[fanotify_mark], mask flags[fanotify_mask], fddir fd_dir, path ptr[in, filename]) -ioctl$INOTIFY_IOC_SETNEXTWD(fd fd_inotify, cmd const[INOTIFY_IOC_SETNEXTWD], arg intptr) - link(old ptr[in, filename], new ptr[in, filename]) linkat(oldfd fd_dir, old ptr[in, filename], newfd fd_dir, new ptr[in, filename], flags flags[linkat_flags]) symlinkat(old ptr[in, filename], newfd fd_dir, new ptr[in, filename]) @@ -893,12 +880,6 @@ mq_open_flags = O_RDONLY, O_WRONLY, O_RDWR, O_NONBLOCK, O_CREAT, O_EXCL, O_CREAT finit_module_flags = MODULE_INIT_IGNORE_MODVERSIONS, MODULE_INIT_IGNORE_VERMAGIC delete_module_flags = O_NONBLOCK, O_TRUNC kexec_load_flags = KEXEC_ON_CRASH, KEXEC_PRESERVE_CONTEXT, KEXEC_ARCH_386, KEXEC_ARCH_X86_64, KEXEC_ARCH_PPC, KEXEC_ARCH_PPC64, KEXEC_ARCH_IA_64, KEXEC_ARCH_ARM, KEXEC_ARCH_S390, KEXEC_ARCH_SH, KEXEC_ARCH_MIPS, KEXEC_ARCH_MIPS_LE, KEXEC_ARCH_DEFAULT -inotify_flags = IN_NONBLOCK, IN_CLOEXEC -inotify_mask = IN_ACCESS, IN_ATTRIB, IN_CLOSE_WRITE, IN_CLOSE_NOWRITE, IN_CREATE, IN_DELETE, IN_DELETE_SELF, IN_MODIFY, IN_MOVE_SELF, IN_MOVED_FROM, IN_MOVED_TO, IN_OPEN, IN_DONT_FOLLOW, IN_EXCL_UNLINK, IN_MASK_ADD, IN_ONESHOT, IN_ONLYDIR, IN_MASK_CREATE, IN_ISDIR -fanotify_flags = FAN_CLASS_PRE_CONTENT, FAN_CLASS_CONTENT, FAN_CLASS_NOTIF, FAN_CLOEXEC, FAN_NONBLOCK, FAN_UNLIMITED_QUEUE, FAN_UNLIMITED_MARKS, FAN_ENABLE_AUDIT -fanotify_events = O_RDONLY, O_WRONLY, O_RDWR, O_LARGEFILE, O_CLOEXEC, O_APPEND, O_DSYNC, O_NOATIME, O_NONBLOCK, O_SYNC -fanotify_mark = FAN_MARK_ADD, FAN_MARK_REMOVE, FAN_MARK_FLUSH, FAN_MARK_DONT_FOLLOW, FAN_MARK_ONLYDIR, FAN_MARK_MOUNT, FAN_MARK_IGNORED_MASK, FAN_MARK_IGNORED_SURV_MODIFY -fanotify_mask = FAN_ACCESS, FAN_MODIFY, FAN_CLOSE_WRITE, FAN_CLOSE_NOWRITE, FAN_OPEN, FAN_ONDIR, FAN_EVENT_ON_CHILD faccessat_flags = 0x100, 0x200, 0x400, 0x800, 0x1000 futex_op = FUTEX_WAIT, FUTEX_WAIT_BITSET, FUTEX_WAKE, FUTEX_REQUEUE, FUTEX_CMP_REQUEUE, FUTEX_WAIT_PRIVATE, FUTEX_WAKE_PRIVATE, FUTEX_WAIT_REQUEUE_PI_PRIVATE, FUTEX_CMP_REQUEUE_PI_PRIVATE sync_file_flags = SYNC_FILE_RANGE_WAIT_BEFORE, SYNC_FILE_RANGE_WRITE, SYNC_FILE_RANGE_WAIT_AFTER @@ -957,7 +938,7 @@ _ = STA_PLL, STA_PPSFREQ, STA_PPSTIME, STA_FLL, STA_INS, STA_DEL, STA_UNSYNC, ST _ = ADJ_OFFSET, ADJ_FREQUENCY, ADJ_MAXERROR, ADJ_ESTERROR, ADJ_STATUS, ADJ_TIMECONST, ADJ_TAI, ADJ_SETOFFSET, ADJ_MICRO, ADJ_NANO, ADJ_TICK, ADJ_OFFSET_SINGLESHOT # misc -_ = KCOV_INIT_TRACE, KCOV_ENABLE, KCOV_DISABLE, KCOV_TRACE_PC, KCOV_TRACE_CMP, FIFREEZE, FAN_OPEN_PERM, FAN_ACCESS_PERM, PTRACE_TRACEME, __NR_mmap2 +_ = KCOV_INIT_TRACE, KCOV_ENABLE, KCOV_DISABLE, KCOV_TRACE_PC, KCOV_TRACE_CMP, FIFREEZE, PTRACE_TRACEME, __NR_mmap2 # Hardcode KCOV_REMOTE_ENABLE value for amd64 until new kcov patches reach mainline. define KCOV_REMOTE_ENABLE 1075340134 diff --git a/sys/linux/sys_386.const b/sys/linux/sys_386.const index 96f1db18..2d1ad6a4 100644 --- a/sys/linux/sys_386.const +++ b/sys/linux/sys_386.const @@ -82,31 +82,6 @@ FALLOC_FL_NO_HIDE_STALE = 4 FALLOC_FL_PUNCH_HOLE = 2 FALLOC_FL_UNSHARE_RANGE = 64 FALLOC_FL_ZERO_RANGE = 16 -FAN_ACCESS = 1 -FAN_ACCESS_PERM = 131072 -FAN_CLASS_CONTENT = 4 -FAN_CLASS_NOTIF = 0 -FAN_CLASS_PRE_CONTENT = 8 -FAN_CLOEXEC = 1 -FAN_CLOSE_NOWRITE = 16 -FAN_CLOSE_WRITE = 8 -FAN_ENABLE_AUDIT = 64 -FAN_EVENT_ON_CHILD = 134217728 -FAN_MARK_ADD = 1 -FAN_MARK_DONT_FOLLOW = 4 -FAN_MARK_FLUSH = 128 -FAN_MARK_IGNORED_MASK = 32 -FAN_MARK_IGNORED_SURV_MODIFY = 64 -FAN_MARK_MOUNT = 16 -FAN_MARK_ONLYDIR = 8 -FAN_MARK_REMOVE = 2 -FAN_MODIFY = 2 -FAN_NONBLOCK = 2 -FAN_ONDIR = 1073741824 -FAN_OPEN = 32 -FAN_OPEN_PERM = 65536 -FAN_UNLIMITED_MARKS = 32 -FAN_UNLIMITED_QUEUE = 16 FASYNC = 8192 FD_CLOEXEC = 1 FIEMAP_EXTENT_DATA_ENCRYPTED = 128 @@ -181,28 +156,6 @@ F_UNLCK = 2 F_WRLCK = 1 GRND_NONBLOCK = 1 GRND_RANDOM = 2 -INOTIFY_IOC_SETNEXTWD = 1074022656 -IN_ACCESS = 1 -IN_ATTRIB = 4 -IN_CLOEXEC = 524288 -IN_CLOSE_NOWRITE = 16 -IN_CLOSE_WRITE = 8 -IN_CREATE = 256 -IN_DELETE = 512 -IN_DELETE_SELF = 1024 -IN_DONT_FOLLOW = 33554432 -IN_EXCL_UNLINK = 67108864 -IN_ISDIR = 1073741824 -IN_MASK_ADD = 536870912 -IN_MASK_CREATE = 268435456 -IN_MODIFY = 2 -IN_MOVED_FROM = 64 -IN_MOVED_TO = 128 -IN_MOVE_SELF = 2048 -IN_NONBLOCK = 2048 -IN_ONESHOT = 2147483648 -IN_ONLYDIR = 16777216 -IN_OPEN = 32 IOPRIO_WHO_PGRP = 2 IOPRIO_WHO_PROCESS = 1 IOPRIO_WHO_USER = 3 @@ -334,7 +287,6 @@ O_CLOEXEC = 524288 O_CREAT = 64 O_DIRECT = 16384 O_DIRECTORY = 65536 -O_DSYNC = 4096 O_EXCL = 128 O_LARGEFILE = 32768 O_NOATIME = 262144 @@ -618,8 +570,6 @@ __NR_exit_group = 252 __NR_faccessat = 307 __NR_fadvise64 = 250 __NR_fallocate = 324 -__NR_fanotify_init = 338 -__NR_fanotify_mark = 339 __NR_fchdir = 133 __NR_fchmod = 94 __NR_fchmodat = 306 @@ -658,10 +608,6 @@ __NR_getrusage = 77 __NR_gettid = 224 __NR_getuid = 24 __NR_init_module = 128 -__NR_inotify_add_watch = 292 -__NR_inotify_init = 291 -__NR_inotify_init1 = 332 -__NR_inotify_rm_watch = 293 __NR_ioctl = 54 __NR_ioperm = 101 __NR_iopl = 110 diff --git a/sys/linux/sys_amd64.const b/sys/linux/sys_amd64.const index 696eb608..2b062ec8 100644 --- a/sys/linux/sys_amd64.const +++ b/sys/linux/sys_amd64.const @@ -82,31 +82,6 @@ FALLOC_FL_NO_HIDE_STALE = 4 FALLOC_FL_PUNCH_HOLE = 2 FALLOC_FL_UNSHARE_RANGE = 64 FALLOC_FL_ZERO_RANGE = 16 -FAN_ACCESS = 1 -FAN_ACCESS_PERM = 131072 -FAN_CLASS_CONTENT = 4 -FAN_CLASS_NOTIF = 0 -FAN_CLASS_PRE_CONTENT = 8 -FAN_CLOEXEC = 1 -FAN_CLOSE_NOWRITE = 16 -FAN_CLOSE_WRITE = 8 -FAN_ENABLE_AUDIT = 64 -FAN_EVENT_ON_CHILD = 134217728 -FAN_MARK_ADD = 1 -FAN_MARK_DONT_FOLLOW = 4 -FAN_MARK_FLUSH = 128 -FAN_MARK_IGNORED_MASK = 32 -FAN_MARK_IGNORED_SURV_MODIFY = 64 -FAN_MARK_MOUNT = 16 -FAN_MARK_ONLYDIR = 8 -FAN_MARK_REMOVE = 2 -FAN_MODIFY = 2 -FAN_NONBLOCK = 2 -FAN_ONDIR = 1073741824 -FAN_OPEN = 32 -FAN_OPEN_PERM = 65536 -FAN_UNLIMITED_MARKS = 32 -FAN_UNLIMITED_QUEUE = 16 FASYNC = 8192 FD_CLOEXEC = 1 FIEMAP_EXTENT_DATA_ENCRYPTED = 128 @@ -181,28 +156,6 @@ F_UNLCK = 2 F_WRLCK = 1 GRND_NONBLOCK = 1 GRND_RANDOM = 2 -INOTIFY_IOC_SETNEXTWD = 1074022656 -IN_ACCESS = 1 -IN_ATTRIB = 4 -IN_CLOEXEC = 524288 -IN_CLOSE_NOWRITE = 16 -IN_CLOSE_WRITE = 8 -IN_CREATE = 256 -IN_DELETE = 512 -IN_DELETE_SELF = 1024 -IN_DONT_FOLLOW = 33554432 -IN_EXCL_UNLINK = 67108864 -IN_ISDIR = 1073741824 -IN_MASK_ADD = 536870912 -IN_MASK_CREATE = 268435456 -IN_MODIFY = 2 -IN_MOVED_FROM = 64 -IN_MOVED_TO = 128 -IN_MOVE_SELF = 2048 -IN_NONBLOCK = 2048 -IN_ONESHOT = 2147483648 -IN_ONLYDIR = 16777216 -IN_OPEN = 32 IOPRIO_WHO_PGRP = 2 IOPRIO_WHO_PROCESS = 1 IOPRIO_WHO_USER = 3 @@ -334,7 +287,6 @@ O_CLOEXEC = 524288 O_CREAT = 64 O_DIRECT = 16384 O_DIRECTORY = 65536 -O_DSYNC = 4096 O_EXCL = 128 O_LARGEFILE = 32768 O_NOATIME = 262144 @@ -618,8 +570,6 @@ __NR_exit_group = 231 __NR_faccessat = 269 __NR_fadvise64 = 221 __NR_fallocate = 285 -__NR_fanotify_init = 300 -__NR_fanotify_mark = 301 __NR_fchdir = 81 __NR_fchmod = 91 __NR_fchmodat = 268 @@ -658,10 +608,6 @@ __NR_getrusage = 98 __NR_gettid = 186 __NR_getuid = 102 __NR_init_module = 175 -__NR_inotify_add_watch = 254 -__NR_inotify_init = 253 -__NR_inotify_init1 = 294 -__NR_inotify_rm_watch = 255 __NR_ioctl = 16 __NR_ioperm = 173 __NR_iopl = 172 diff --git a/sys/linux/sys_arm.const b/sys/linux/sys_arm.const index dd79987f..cf9eab86 100644 --- a/sys/linux/sys_arm.const +++ b/sys/linux/sys_arm.const @@ -82,31 +82,6 @@ FALLOC_FL_NO_HIDE_STALE = 4 FALLOC_FL_PUNCH_HOLE = 2 FALLOC_FL_UNSHARE_RANGE = 64 FALLOC_FL_ZERO_RANGE = 16 -FAN_ACCESS = 1 -FAN_ACCESS_PERM = 131072 -FAN_CLASS_CONTENT = 4 -FAN_CLASS_NOTIF = 0 -FAN_CLASS_PRE_CONTENT = 8 -FAN_CLOEXEC = 1 -FAN_CLOSE_NOWRITE = 16 -FAN_CLOSE_WRITE = 8 -FAN_ENABLE_AUDIT = 64 -FAN_EVENT_ON_CHILD = 134217728 -FAN_MARK_ADD = 1 -FAN_MARK_DONT_FOLLOW = 4 -FAN_MARK_FLUSH = 128 -FAN_MARK_IGNORED_MASK = 32 -FAN_MARK_IGNORED_SURV_MODIFY = 64 -FAN_MARK_MOUNT = 16 -FAN_MARK_ONLYDIR = 8 -FAN_MARK_REMOVE = 2 -FAN_MODIFY = 2 -FAN_NONBLOCK = 2 -FAN_ONDIR = 1073741824 -FAN_OPEN = 32 -FAN_OPEN_PERM = 65536 -FAN_UNLIMITED_MARKS = 32 -FAN_UNLIMITED_QUEUE = 16 FASYNC = 8192 FD_CLOEXEC = 1 FIEMAP_EXTENT_DATA_ENCRYPTED = 128 @@ -181,28 +156,6 @@ F_UNLCK = 2 F_WRLCK = 1 GRND_NONBLOCK = 1 GRND_RANDOM = 2 -INOTIFY_IOC_SETNEXTWD = 1074022656 -IN_ACCESS = 1 -IN_ATTRIB = 4 -IN_CLOEXEC = 524288 -IN_CLOSE_NOWRITE = 16 -IN_CLOSE_WRITE = 8 -IN_CREATE = 256 -IN_DELETE = 512 -IN_DELETE_SELF = 1024 -IN_DONT_FOLLOW = 33554432 -IN_EXCL_UNLINK = 67108864 -IN_ISDIR = 1073741824 -IN_MASK_ADD = 536870912 -IN_MASK_CREATE = 268435456 -IN_MODIFY = 2 -IN_MOVED_FROM = 64 -IN_MOVED_TO = 128 -IN_MOVE_SELF = 2048 -IN_NONBLOCK = 2048 -IN_ONESHOT = 2147483648 -IN_ONLYDIR = 16777216 -IN_OPEN = 32 IOPRIO_WHO_PGRP = 2 IOPRIO_WHO_PROCESS = 1 IOPRIO_WHO_USER = 3 @@ -334,7 +287,6 @@ O_CLOEXEC = 524288 O_CREAT = 64 O_DIRECT = 65536 O_DIRECTORY = 16384 -O_DSYNC = 4096 O_EXCL = 128 O_LARGEFILE = 131072 O_NOATIME = 262144 @@ -618,8 +570,6 @@ __NR_exit_group = 248 __NR_faccessat = 334 # __NR_fadvise64 is not set __NR_fallocate = 352 -__NR_fanotify_init = 367 -__NR_fanotify_mark = 368 __NR_fchdir = 133 __NR_fchmod = 94 __NR_fchmodat = 333 @@ -658,10 +608,6 @@ __NR_getrusage = 77 __NR_gettid = 224 __NR_getuid = 24 __NR_init_module = 128 -__NR_inotify_add_watch = 317 -__NR_inotify_init = 316 -__NR_inotify_init1 = 360 -__NR_inotify_rm_watch = 318 __NR_ioctl = 54 # __NR_ioperm is not set # __NR_iopl is not set @@ -679,7 +625,7 @@ __NR_madvise = 220 __NR_mbind = 319 __NR_membarrier = 389 __NR_memfd_create = 385 -# __NR_migrate_pages is not set +__NR_migrate_pages = 400 __NR_mincore = 219 __NR_mkdir = 39 __NR_mkdirat = 323 diff --git a/sys/linux/sys_arm64.const b/sys/linux/sys_arm64.const index 6ccf3e16..f97d925f 100644 --- a/sys/linux/sys_arm64.const +++ b/sys/linux/sys_arm64.const @@ -82,31 +82,6 @@ FALLOC_FL_NO_HIDE_STALE = 4 FALLOC_FL_PUNCH_HOLE = 2 FALLOC_FL_UNSHARE_RANGE = 64 FALLOC_FL_ZERO_RANGE = 16 -FAN_ACCESS = 1 -FAN_ACCESS_PERM = 131072 -FAN_CLASS_CONTENT = 4 -FAN_CLASS_NOTIF = 0 -FAN_CLASS_PRE_CONTENT = 8 -FAN_CLOEXEC = 1 -FAN_CLOSE_NOWRITE = 16 -FAN_CLOSE_WRITE = 8 -FAN_ENABLE_AUDIT = 64 -FAN_EVENT_ON_CHILD = 134217728 -FAN_MARK_ADD = 1 -FAN_MARK_DONT_FOLLOW = 4 -FAN_MARK_FLUSH = 128 -FAN_MARK_IGNORED_MASK = 32 -FAN_MARK_IGNORED_SURV_MODIFY = 64 -FAN_MARK_MOUNT = 16 -FAN_MARK_ONLYDIR = 8 -FAN_MARK_REMOVE = 2 -FAN_MODIFY = 2 -FAN_NONBLOCK = 2 -FAN_ONDIR = 1073741824 -FAN_OPEN = 32 -FAN_OPEN_PERM = 65536 -FAN_UNLIMITED_MARKS = 32 -FAN_UNLIMITED_QUEUE = 16 FASYNC = 8192 FD_CLOEXEC = 1 FIEMAP_EXTENT_DATA_ENCRYPTED = 128 @@ -181,28 +156,6 @@ F_UNLCK = 2 F_WRLCK = 1 GRND_NONBLOCK = 1 GRND_RANDOM = 2 -INOTIFY_IOC_SETNEXTWD = 1074022656 -IN_ACCESS = 1 -IN_ATTRIB = 4 -IN_CLOEXEC = 524288 -IN_CLOSE_NOWRITE = 16 -IN_CLOSE_WRITE = 8 -IN_CREATE = 256 -IN_DELETE = 512 -IN_DELETE_SELF = 1024 -IN_DONT_FOLLOW = 33554432 -IN_EXCL_UNLINK = 67108864 -IN_ISDIR = 1073741824 -IN_MASK_ADD = 536870912 -IN_MASK_CREATE = 268435456 -IN_MODIFY = 2 -IN_MOVED_FROM = 64 -IN_MOVED_TO = 128 -IN_MOVE_SELF = 2048 -IN_NONBLOCK = 2048 -IN_ONESHOT = 2147483648 -IN_ONLYDIR = 16777216 -IN_OPEN = 32 IOPRIO_WHO_PGRP = 2 IOPRIO_WHO_PROCESS = 1 IOPRIO_WHO_USER = 3 @@ -334,7 +287,6 @@ O_CLOEXEC = 524288 O_CREAT = 64 O_DIRECT = 65536 O_DIRECTORY = 16384 -O_DSYNC = 4096 O_EXCL = 128 O_LARGEFILE = 131072 O_NOATIME = 262144 @@ -618,8 +570,6 @@ __NR_exit_group = 94 __NR_faccessat = 48 __NR_fadvise64 = 223 __NR_fallocate = 47 -__NR_fanotify_init = 262 -__NR_fanotify_mark = 263 __NR_fchdir = 50 __NR_fchmod = 52 __NR_fchmodat = 53 @@ -658,10 +608,6 @@ __NR_getrusage = 165 __NR_gettid = 178 __NR_getuid = 174 __NR_init_module = 105 -__NR_inotify_add_watch = 27 -# __NR_inotify_init is not set -__NR_inotify_init1 = 26 -__NR_inotify_rm_watch = 28 __NR_ioctl = 29 # __NR_ioperm is not set # __NR_iopl is not set diff --git a/sys/linux/sys_ppc64le.const b/sys/linux/sys_ppc64le.const index a3228131..189f9acd 100644 --- a/sys/linux/sys_ppc64le.const +++ b/sys/linux/sys_ppc64le.const @@ -82,31 +82,6 @@ FALLOC_FL_NO_HIDE_STALE = 4 FALLOC_FL_PUNCH_HOLE = 2 FALLOC_FL_UNSHARE_RANGE = 64 FALLOC_FL_ZERO_RANGE = 16 -FAN_ACCESS = 1 -FAN_ACCESS_PERM = 131072 -FAN_CLASS_CONTENT = 4 -FAN_CLASS_NOTIF = 0 -FAN_CLASS_PRE_CONTENT = 8 -FAN_CLOEXEC = 1 -FAN_CLOSE_NOWRITE = 16 -FAN_CLOSE_WRITE = 8 -FAN_ENABLE_AUDIT = 64 -FAN_EVENT_ON_CHILD = 134217728 -FAN_MARK_ADD = 1 -FAN_MARK_DONT_FOLLOW = 4 -FAN_MARK_FLUSH = 128 -FAN_MARK_IGNORED_MASK = 32 -FAN_MARK_IGNORED_SURV_MODIFY = 64 -FAN_MARK_MOUNT = 16 -FAN_MARK_ONLYDIR = 8 -FAN_MARK_REMOVE = 2 -FAN_MODIFY = 2 -FAN_NONBLOCK = 2 -FAN_ONDIR = 1073741824 -FAN_OPEN = 32 -FAN_OPEN_PERM = 65536 -FAN_UNLIMITED_MARKS = 32 -FAN_UNLIMITED_QUEUE = 16 FASYNC = 8192 FD_CLOEXEC = 1 FIEMAP_EXTENT_DATA_ENCRYPTED = 128 @@ -181,28 +156,6 @@ F_UNLCK = 2 F_WRLCK = 1 GRND_NONBLOCK = 1 GRND_RANDOM = 2 -INOTIFY_IOC_SETNEXTWD = 2147764480 -IN_ACCESS = 1 -IN_ATTRIB = 4 -IN_CLOEXEC = 524288 -IN_CLOSE_NOWRITE = 16 -IN_CLOSE_WRITE = 8 -IN_CREATE = 256 -IN_DELETE = 512 -IN_DELETE_SELF = 1024 -IN_DONT_FOLLOW = 33554432 -IN_EXCL_UNLINK = 67108864 -IN_ISDIR = 1073741824 -IN_MASK_ADD = 536870912 -IN_MASK_CREATE = 268435456 -IN_MODIFY = 2 -IN_MOVED_FROM = 64 -IN_MOVED_TO = 128 -IN_MOVE_SELF = 2048 -IN_NONBLOCK = 2048 -IN_ONESHOT = 2147483648 -IN_ONLYDIR = 16777216 -IN_OPEN = 32 IOPRIO_WHO_PGRP = 2 IOPRIO_WHO_PROCESS = 1 IOPRIO_WHO_USER = 3 @@ -334,7 +287,6 @@ O_CLOEXEC = 524288 O_CREAT = 64 O_DIRECT = 131072 O_DIRECTORY = 16384 -O_DSYNC = 4096 O_EXCL = 128 O_LARGEFILE = 65536 O_NOATIME = 262144 @@ -618,8 +570,6 @@ __NR_exit_group = 234 __NR_faccessat = 298 __NR_fadvise64 = 233 __NR_fallocate = 309 -__NR_fanotify_init = 323 -__NR_fanotify_mark = 324 __NR_fchdir = 133 __NR_fchmod = 94 __NR_fchmodat = 297 @@ -658,10 +608,6 @@ __NR_getrusage = 77 __NR_gettid = 207 __NR_getuid = 24 __NR_init_module = 128 -__NR_inotify_add_watch = 276 -__NR_inotify_init = 275 -__NR_inotify_init1 = 318 -__NR_inotify_rm_watch = 277 __NR_ioctl = 54 __NR_ioperm = 101 __NR_iopl = 110