diff options
| author | Dmitry Vyukov <dvyukov@google.com> | 2020-01-27 15:18:15 +0100 |
|---|---|---|
| committer | Dmitry Vyukov <dvyukov@google.com> | 2020-01-27 15:18:15 +0100 |
| commit | 56cd6c9b80ee424566e3ceaf8a4b042803a130ad (patch) | |
| tree | 00a2677984ad851226f429878e7d44e8a95a683e /sys/linux | |
| parent | 1079ec0d3f0569fb3a90b8d2940c4cbba7ff7929 (diff) | |
sys/linux: add time namespace descriptions
Diffstat (limited to 'sys/linux')
| -rw-r--r-- | sys/linux/gen/386.go | 13 | ||||
| -rw-r--r-- | sys/linux/gen/amd64.go | 13 | ||||
| -rw-r--r-- | sys/linux/gen/arm.go | 13 | ||||
| -rw-r--r-- | sys/linux/gen/arm64.go | 13 | ||||
| -rw-r--r-- | sys/linux/gen/mips64le.go | 13 | ||||
| -rw-r--r-- | sys/linux/gen/ppc64le.go | 13 | ||||
| -rw-r--r-- | sys/linux/namespaces.txt | 6 | ||||
| -rw-r--r-- | sys/linux/namespaces_386.const | 1 | ||||
| -rw-r--r-- | sys/linux/namespaces_amd64.const | 1 | ||||
| -rw-r--r-- | sys/linux/namespaces_arm.const | 1 | ||||
| -rw-r--r-- | sys/linux/namespaces_arm64.const | 1 | ||||
| -rw-r--r-- | sys/linux/namespaces_mips64le.const | 1 | ||||
| -rw-r--r-- | sys/linux/namespaces_ppc64le.const | 1 | ||||
| -rw-r--r-- | sys/linux/sys.txt | 2 | ||||
| -rw-r--r-- | sys/linux/sys_386.const | 1 | ||||
| -rw-r--r-- | sys/linux/sys_amd64.const | 1 | ||||
| -rw-r--r-- | sys/linux/sys_arm.const | 1 | ||||
| -rw-r--r-- | sys/linux/sys_arm64.const | 1 | ||||
| -rw-r--r-- | sys/linux/sys_mips64le.const | 1 | ||||
| -rw-r--r-- | sys/linux/sys_ppc64le.const | 1 |
20 files changed, 58 insertions, 40 deletions
diff --git a/sys/linux/gen/386.go b/sys/linux/gen/386.go index 91e61203a..e8bbc9f4f 100644 --- a/sys/linux/gen/386.go +++ b/sys/linux/gen/386.go @@ -2119,7 +2119,7 @@ var structDescs_386 = []*KeyedStruct{ &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int32", FldName: "timeout", TypeSize: 4}}}, }}}, {StructKey{Name: "clone_args"}, &StructDesc{TypeCommon: TypeCommon{TypeName: "clone_args", TypeSize: 80}, Fields: []Type{ - &FlagsType{IntTypeCommon{TypeCommon: TypeCommon{TypeName: "clone_flags", FldName: "flags", TypeSize: 8}}, []uint64{256, 512, 1024, 2048, 4096, 8192, 16384, 32768, 65536, 131072, 262144, 524288, 1048576, 2097152, 8388608, 16777216, 33554432, 67108864, 134217728, 268435456, 536870912, 1073741824, 2147483648}, true}, + &FlagsType{IntTypeCommon{TypeCommon: TypeCommon{TypeName: "clone_flags", FldName: "flags", TypeSize: 8}}, []uint64{128, 256, 512, 1024, 2048, 4096, 8192, 16384, 32768, 65536, 131072, 262144, 524288, 1048576, 2097152, 8388608, 16777216, 33554432, 67108864, 134217728, 268435456, 536870912, 1073741824, 2147483648}, true}, &PtrType{TypeCommon{TypeName: "ptr64", FldName: "pidfd", TypeSize: 8}, &ResourceType{TypeCommon: TypeCommon{TypeName: "fd_pidfd", TypeSize: 4, ArgDir: 1}}}, &PtrType{TypeCommon{TypeName: "ptr64", FldName: "child_tid", TypeSize: 8}, &ResourceType{TypeCommon: TypeCommon{TypeName: "pid", TypeSize: 4, ArgDir: 1}}}, &PtrType{TypeCommon{TypeName: "ptr64", FldName: "parent_tid", TypeSize: 8}, &ResourceType{TypeCommon: TypeCommon{TypeName: "pid", TypeSize: 4, ArgDir: 1}}}, @@ -47916,7 +47916,7 @@ var syscalls_386 = []*Syscall{ &PtrType{TypeCommon{TypeName: "ptr", FldName: "tp", TypeSize: 4}, &StructType{Key: StructKey{Name: "timespec"}}}, }}, {NR: 120, Name: "clone", CallName: "clone", Args: []Type{ - &FlagsType{IntTypeCommon{TypeCommon: TypeCommon{TypeName: "clone_flags", FldName: "flags", TypeSize: 4}}, []uint64{256, 512, 1024, 2048, 4096, 8192, 16384, 32768, 65536, 131072, 262144, 524288, 1048576, 2097152, 8388608, 16777216, 33554432, 67108864, 134217728, 268435456, 536870912, 1073741824, 2147483648}, true}, + &FlagsType{IntTypeCommon{TypeCommon: TypeCommon{TypeName: "clone_flags", FldName: "flags", TypeSize: 4}}, []uint64{128, 256, 512, 1024, 2048, 4096, 8192, 16384, 32768, 65536, 131072, 262144, 524288, 1048576, 2097152, 8388608, 16777216, 33554432, 67108864, 134217728, 268435456, 536870912, 1073741824, 2147483648}, true}, &PtrType{TypeCommon{TypeName: "ptr", FldName: "sp", TypeSize: 4}, &BufferType{TypeCommon: TypeCommon{TypeName: "array", IsVarlen: true}}}, &PtrType{TypeCommon{TypeName: "ptr", FldName: "parentid", TypeSize: 4}, &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int32", TypeSize: 4, ArgDir: 1}}}}, &PtrType{TypeCommon{TypeName: "ptr", FldName: "childtid", TypeSize: 4}, &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int32", TypeSize: 4, ArgDir: 1}}}}, @@ -60645,7 +60645,7 @@ var syscalls_386 = []*Syscall{ }}, {NR: 346, Name: "setns", CallName: "setns", Args: []Type{ &ResourceType{TypeCommon: TypeCommon{TypeName: "fd_namespace", FldName: "fd", TypeSize: 4}}, - &FlagsType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "ns_type", FldName: "type", TypeSize: 4}}, Vals: []uint64{0, 131072, 33554432, 67108864, 134217728, 268435456, 536870912, 1073741824}}, + &FlagsType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "ns_type", FldName: "type", TypeSize: 4}}, Vals: []uint64{0, 128, 131072, 33554432, 67108864, 134217728, 268435456, 536870912, 1073741824}}, }}, {NR: 57, Name: "setpgid", CallName: "setpgid", Args: []Type{ &ResourceType{TypeCommon: TypeCommon{TypeName: "pid", FldName: "pid", TypeSize: 4}}, @@ -63806,7 +63806,7 @@ var syscalls_386 = []*Syscall{ }, Ret: &ResourceType{TypeCommon: TypeCommon{TypeName: "fd", FldName: "ret", TypeSize: 4, ArgDir: 1}}}, {Name: "syz_open_procfs$namespace", CallName: "syz_open_procfs", Args: []Type{ &ResourceType{TypeCommon: TypeCommon{TypeName: "pid", FldName: "pid", TypeSize: 4}}, - &PtrType{TypeCommon{TypeName: "ptr", FldName: "file", TypeSize: 4}, &BufferType{TypeCommon: TypeCommon{TypeName: "string", IsVarlen: true}, Kind: 2, SubKind: "procfs_namespace_file", Values: []string{"ns/cgroup\x00", "ns/ipc\x00", "ns/mnt\x00", "ns/net\x00", "ns/pid\x00", "ns/user\x00", "ns/uts\x00", "ns/pid_for_children\x00"}}}, + &PtrType{TypeCommon{TypeName: "ptr", FldName: "file", TypeSize: 4}, &BufferType{TypeCommon: TypeCommon{TypeName: "string", IsVarlen: true}, Kind: 2, SubKind: "procfs_namespace_file", Values: []string{"ns/cgroup\x00", "ns/ipc\x00", "ns/mnt\x00", "ns/net\x00", "ns/pid\x00", "ns/user\x00", "ns/uts\x00", "ns/pid_for_children\x00", "ns/time\x00", "ns/time_for_children\x00"}}}, }, Ret: &ResourceType{TypeCommon: TypeCommon{TypeName: "fd_namespace", FldName: "ret", TypeSize: 4, ArgDir: 1}}}, {Name: "syz_open_pts", CallName: "syz_open_pts", Args: []Type{ &ResourceType{TypeCommon: TypeCommon{TypeName: "fd_tty", FldName: "fd", TypeSize: 4}}, @@ -63974,7 +63974,7 @@ var syscalls_386 = []*Syscall{ &FlagsType{IntTypeCommon{TypeCommon: TypeCommon{TypeName: "unlinkat_flags", FldName: "flags", TypeSize: 4}}, []uint64{512}, true}, }}, {NR: 310, Name: "unshare", CallName: "unshare", Args: []Type{ - &FlagsType{IntTypeCommon{TypeCommon: TypeCommon{TypeName: "unshare_flags", FldName: "flags", TypeSize: 4}}, []uint64{256, 512, 1024, 2048, 65536, 131072, 262144, 33554432, 67108864, 134217728, 268435456, 536870912, 1073741824}, true}, + &FlagsType{IntTypeCommon{TypeCommon: TypeCommon{TypeName: "unshare_flags", FldName: "flags", TypeSize: 4}}, []uint64{128, 256, 512, 1024, 2048, 65536, 131072, 262144, 33554432, 67108864, 134217728, 268435456, 536870912, 1073741824}, true}, }}, {NR: 86, Name: "uselib", CallName: "uselib", Args: []Type{ &PtrType{TypeCommon{TypeName: "ptr", FldName: "lib", TypeSize: 4}, &BufferType{TypeCommon: TypeCommon{TypeName: "filename", IsVarlen: true}, Kind: 3}}, @@ -65817,6 +65817,7 @@ var consts_386 = []ConstValue{ {"CLONE_NEWNET", 1073741824}, {"CLONE_NEWNS", 131072}, {"CLONE_NEWPID", 536870912}, + {"CLONE_NEWTIME", 128}, {"CLONE_NEWUSER", 268435456}, {"CLONE_NEWUTS", 67108864}, {"CLONE_PARENT", 32768}, @@ -74963,4 +74964,4 @@ var consts_386 = []ConstValue{ {"bpf_insn_load_imm_dw", 24}, } -const revision_386 = "bc17e5f244355dadf8506835bc48af669b7fc927" +const revision_386 = "def65bb5ba6f4670f626918f7c7c7622d7ef0fd7" diff --git a/sys/linux/gen/amd64.go b/sys/linux/gen/amd64.go index 0d0249cf9..3fa2dd31e 100644 --- a/sys/linux/gen/amd64.go +++ b/sys/linux/gen/amd64.go @@ -2139,7 +2139,7 @@ var structDescs_amd64 = []*KeyedStruct{ &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int32", FldName: "timeout", TypeSize: 4}}}, }}}, {StructKey{Name: "clone_args"}, &StructDesc{TypeCommon: TypeCommon{TypeName: "clone_args", TypeSize: 80}, Fields: []Type{ - &FlagsType{IntTypeCommon{TypeCommon: TypeCommon{TypeName: "clone_flags", FldName: "flags", TypeSize: 8}}, []uint64{256, 512, 1024, 2048, 4096, 8192, 16384, 32768, 65536, 131072, 262144, 524288, 1048576, 2097152, 8388608, 16777216, 33554432, 67108864, 134217728, 268435456, 536870912, 1073741824, 2147483648}, true}, + &FlagsType{IntTypeCommon{TypeCommon: TypeCommon{TypeName: "clone_flags", FldName: "flags", TypeSize: 8}}, []uint64{128, 256, 512, 1024, 2048, 4096, 8192, 16384, 32768, 65536, 131072, 262144, 524288, 1048576, 2097152, 8388608, 16777216, 33554432, 67108864, 134217728, 268435456, 536870912, 1073741824, 2147483648}, true}, &PtrType{TypeCommon{TypeName: "ptr64", FldName: "pidfd", TypeSize: 8}, &ResourceType{TypeCommon: TypeCommon{TypeName: "fd_pidfd", TypeSize: 4, ArgDir: 1}}}, &PtrType{TypeCommon{TypeName: "ptr64", FldName: "child_tid", TypeSize: 8}, &ResourceType{TypeCommon: TypeCommon{TypeName: "pid", TypeSize: 4, ArgDir: 1}}}, &PtrType{TypeCommon{TypeName: "ptr64", FldName: "parent_tid", TypeSize: 8}, &ResourceType{TypeCommon: TypeCommon{TypeName: "pid", TypeSize: 4, ArgDir: 1}}}, @@ -48817,7 +48817,7 @@ var syscalls_amd64 = []*Syscall{ &PtrType{TypeCommon{TypeName: "ptr", FldName: "tp", TypeSize: 8}, &StructType{Key: StructKey{Name: "timespec"}}}, }}, {NR: 56, Name: "clone", CallName: "clone", Args: []Type{ - &FlagsType{IntTypeCommon{TypeCommon: TypeCommon{TypeName: "clone_flags", FldName: "flags", TypeSize: 8}}, []uint64{256, 512, 1024, 2048, 4096, 8192, 16384, 32768, 65536, 131072, 262144, 524288, 1048576, 2097152, 8388608, 16777216, 33554432, 67108864, 134217728, 268435456, 536870912, 1073741824, 2147483648}, true}, + &FlagsType{IntTypeCommon{TypeCommon: TypeCommon{TypeName: "clone_flags", FldName: "flags", TypeSize: 8}}, []uint64{128, 256, 512, 1024, 2048, 4096, 8192, 16384, 32768, 65536, 131072, 262144, 524288, 1048576, 2097152, 8388608, 16777216, 33554432, 67108864, 134217728, 268435456, 536870912, 1073741824, 2147483648}, true}, &PtrType{TypeCommon{TypeName: "ptr", FldName: "sp", TypeSize: 8}, &BufferType{TypeCommon: TypeCommon{TypeName: "array", IsVarlen: true}}}, &PtrType{TypeCommon{TypeName: "ptr", FldName: "parentid", TypeSize: 8}, &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int32", TypeSize: 4, ArgDir: 1}}}}, &PtrType{TypeCommon{TypeName: "ptr", FldName: "childtid", TypeSize: 8}, &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int32", TypeSize: 4, ArgDir: 1}}}}, @@ -61578,7 +61578,7 @@ var syscalls_amd64 = []*Syscall{ }}, {NR: 308, Name: "setns", CallName: "setns", Args: []Type{ &ResourceType{TypeCommon: TypeCommon{TypeName: "fd_namespace", FldName: "fd", TypeSize: 4}}, - &FlagsType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "ns_type", FldName: "type", TypeSize: 8}}, Vals: []uint64{0, 131072, 33554432, 67108864, 134217728, 268435456, 536870912, 1073741824}}, + &FlagsType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "ns_type", FldName: "type", TypeSize: 8}}, Vals: []uint64{0, 128, 131072, 33554432, 67108864, 134217728, 268435456, 536870912, 1073741824}}, }}, {NR: 109, Name: "setpgid", CallName: "setpgid", Args: []Type{ &ResourceType{TypeCommon: TypeCommon{TypeName: "pid", FldName: "pid", TypeSize: 4}}, @@ -64735,7 +64735,7 @@ var syscalls_amd64 = []*Syscall{ }, Ret: &ResourceType{TypeCommon: TypeCommon{TypeName: "fd", FldName: "ret", TypeSize: 4, ArgDir: 1}}}, {Name: "syz_open_procfs$namespace", CallName: "syz_open_procfs", Args: []Type{ &ResourceType{TypeCommon: TypeCommon{TypeName: "pid", FldName: "pid", TypeSize: 4}}, - &PtrType{TypeCommon{TypeName: "ptr", FldName: "file", TypeSize: 8}, &BufferType{TypeCommon: TypeCommon{TypeName: "string", IsVarlen: true}, Kind: 2, SubKind: "procfs_namespace_file", Values: []string{"ns/cgroup\x00", "ns/ipc\x00", "ns/mnt\x00", "ns/net\x00", "ns/pid\x00", "ns/user\x00", "ns/uts\x00", "ns/pid_for_children\x00"}}}, + &PtrType{TypeCommon{TypeName: "ptr", FldName: "file", TypeSize: 8}, &BufferType{TypeCommon: TypeCommon{TypeName: "string", IsVarlen: true}, Kind: 2, SubKind: "procfs_namespace_file", Values: []string{"ns/cgroup\x00", "ns/ipc\x00", "ns/mnt\x00", "ns/net\x00", "ns/pid\x00", "ns/user\x00", "ns/uts\x00", "ns/pid_for_children\x00", "ns/time\x00", "ns/time_for_children\x00"}}}, }, Ret: &ResourceType{TypeCommon: TypeCommon{TypeName: "fd_namespace", FldName: "ret", TypeSize: 4, ArgDir: 1}}}, {Name: "syz_open_pts", CallName: "syz_open_pts", Args: []Type{ &ResourceType{TypeCommon: TypeCommon{TypeName: "fd_tty", FldName: "fd", TypeSize: 4}}, @@ -64903,7 +64903,7 @@ var syscalls_amd64 = []*Syscall{ &FlagsType{IntTypeCommon{TypeCommon: TypeCommon{TypeName: "unlinkat_flags", FldName: "flags", TypeSize: 8}}, []uint64{512}, true}, }}, {NR: 272, Name: "unshare", CallName: "unshare", Args: []Type{ - &FlagsType{IntTypeCommon{TypeCommon: TypeCommon{TypeName: "unshare_flags", FldName: "flags", TypeSize: 8}}, []uint64{256, 512, 1024, 2048, 65536, 131072, 262144, 33554432, 67108864, 134217728, 268435456, 536870912, 1073741824}, true}, + &FlagsType{IntTypeCommon{TypeCommon: TypeCommon{TypeName: "unshare_flags", FldName: "flags", TypeSize: 8}}, []uint64{128, 256, 512, 1024, 2048, 65536, 131072, 262144, 33554432, 67108864, 134217728, 268435456, 536870912, 1073741824}, true}, }}, {NR: 134, Name: "uselib", CallName: "uselib", Args: []Type{ &PtrType{TypeCommon{TypeName: "ptr", FldName: "lib", TypeSize: 8}, &BufferType{TypeCommon: TypeCommon{TypeName: "filename", IsVarlen: true}, Kind: 3}}, @@ -66746,6 +66746,7 @@ var consts_amd64 = []ConstValue{ {"CLONE_NEWNET", 1073741824}, {"CLONE_NEWNS", 131072}, {"CLONE_NEWPID", 536870912}, + {"CLONE_NEWTIME", 128}, {"CLONE_NEWUSER", 268435456}, {"CLONE_NEWUTS", 67108864}, {"CLONE_PARENT", 32768}, @@ -75906,4 +75907,4 @@ var consts_amd64 = []ConstValue{ {"bpf_insn_load_imm_dw", 24}, } -const revision_amd64 = "5faf63e12ff355cfb7b5d92d400f35c471fb2a66" +const revision_amd64 = "ff34a895378cfce6d343dd0117680a1a21cb11aa" diff --git a/sys/linux/gen/arm.go b/sys/linux/gen/arm.go index 9911e0224..e18737e89 100644 --- a/sys/linux/gen/arm.go +++ b/sys/linux/gen/arm.go @@ -2133,7 +2133,7 @@ var structDescs_arm = []*KeyedStruct{ &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int32", FldName: "timeout", TypeSize: 4}}}, }}}, {StructKey{Name: "clone_args"}, &StructDesc{TypeCommon: TypeCommon{TypeName: "clone_args", TypeSize: 80}, Fields: []Type{ - &FlagsType{IntTypeCommon{TypeCommon: TypeCommon{TypeName: "clone_flags", FldName: "flags", TypeSize: 8}}, []uint64{256, 512, 1024, 2048, 4096, 8192, 16384, 32768, 65536, 131072, 262144, 524288, 1048576, 2097152, 8388608, 16777216, 33554432, 67108864, 134217728, 268435456, 536870912, 1073741824, 2147483648}, true}, + &FlagsType{IntTypeCommon{TypeCommon: TypeCommon{TypeName: "clone_flags", FldName: "flags", TypeSize: 8}}, []uint64{128, 256, 512, 1024, 2048, 4096, 8192, 16384, 32768, 65536, 131072, 262144, 524288, 1048576, 2097152, 8388608, 16777216, 33554432, 67108864, 134217728, 268435456, 536870912, 1073741824, 2147483648}, true}, &PtrType{TypeCommon{TypeName: "ptr64", FldName: "pidfd", TypeSize: 8}, &ResourceType{TypeCommon: TypeCommon{TypeName: "fd_pidfd", TypeSize: 4, ArgDir: 1}}}, &PtrType{TypeCommon{TypeName: "ptr64", FldName: "child_tid", TypeSize: 8}, &ResourceType{TypeCommon: TypeCommon{TypeName: "pid", TypeSize: 4, ArgDir: 1}}}, &PtrType{TypeCommon{TypeName: "ptr64", FldName: "parent_tid", TypeSize: 8}, &ResourceType{TypeCommon: TypeCommon{TypeName: "pid", TypeSize: 4, ArgDir: 1}}}, @@ -47814,7 +47814,7 @@ var syscalls_arm = []*Syscall{ &PtrType{TypeCommon{TypeName: "ptr", FldName: "tp", TypeSize: 4}, &StructType{Key: StructKey{Name: "timespec"}}}, }}, {NR: 120, Name: "clone", CallName: "clone", Args: []Type{ - &FlagsType{IntTypeCommon{TypeCommon: TypeCommon{TypeName: "clone_flags", FldName: "flags", TypeSize: 4}}, []uint64{256, 512, 1024, 2048, 4096, 8192, 16384, 32768, 65536, 131072, 262144, 524288, 1048576, 2097152, 8388608, 16777216, 33554432, 67108864, 134217728, 268435456, 536870912, 1073741824, 2147483648}, true}, + &FlagsType{IntTypeCommon{TypeCommon: TypeCommon{TypeName: "clone_flags", FldName: "flags", TypeSize: 4}}, []uint64{128, 256, 512, 1024, 2048, 4096, 8192, 16384, 32768, 65536, 131072, 262144, 524288, 1048576, 2097152, 8388608, 16777216, 33554432, 67108864, 134217728, 268435456, 536870912, 1073741824, 2147483648}, true}, &PtrType{TypeCommon{TypeName: "ptr", FldName: "sp", TypeSize: 4}, &BufferType{TypeCommon: TypeCommon{TypeName: "array", IsVarlen: true}}}, &PtrType{TypeCommon{TypeName: "ptr", FldName: "parentid", TypeSize: 4}, &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int32", TypeSize: 4, ArgDir: 1}}}}, &PtrType{TypeCommon{TypeName: "ptr", FldName: "childtid", TypeSize: 4}, &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int32", TypeSize: 4, ArgDir: 1}}}}, @@ -60383,7 +60383,7 @@ var syscalls_arm = []*Syscall{ }}, {NR: 375, Name: "setns", CallName: "setns", Args: []Type{ &ResourceType{TypeCommon: TypeCommon{TypeName: "fd_namespace", FldName: "fd", TypeSize: 4}}, - &FlagsType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "ns_type", FldName: "type", TypeSize: 4}}, Vals: []uint64{0, 131072, 33554432, 67108864, 134217728, 268435456, 536870912, 1073741824}}, + &FlagsType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "ns_type", FldName: "type", TypeSize: 4}}, Vals: []uint64{0, 128, 131072, 33554432, 67108864, 134217728, 268435456, 536870912, 1073741824}}, }}, {NR: 57, Name: "setpgid", CallName: "setpgid", Args: []Type{ &ResourceType{TypeCommon: TypeCommon{TypeName: "pid", FldName: "pid", TypeSize: 4}}, @@ -63538,7 +63538,7 @@ var syscalls_arm = []*Syscall{ }, Ret: &ResourceType{TypeCommon: TypeCommon{TypeName: "fd", FldName: "ret", TypeSize: 4, ArgDir: 1}}}, {Name: "syz_open_procfs$namespace", CallName: "syz_open_procfs", Args: []Type{ &ResourceType{TypeCommon: TypeCommon{TypeName: "pid", FldName: "pid", TypeSize: 4}}, - &PtrType{TypeCommon{TypeName: "ptr", FldName: "file", TypeSize: 4}, &BufferType{TypeCommon: TypeCommon{TypeName: "string", IsVarlen: true}, Kind: 2, SubKind: "procfs_namespace_file", Values: []string{"ns/cgroup\x00", "ns/ipc\x00", "ns/mnt\x00", "ns/net\x00", "ns/pid\x00", "ns/user\x00", "ns/uts\x00", "ns/pid_for_children\x00"}}}, + &PtrType{TypeCommon{TypeName: "ptr", FldName: "file", TypeSize: 4}, &BufferType{TypeCommon: TypeCommon{TypeName: "string", IsVarlen: true}, Kind: 2, SubKind: "procfs_namespace_file", Values: []string{"ns/cgroup\x00", "ns/ipc\x00", "ns/mnt\x00", "ns/net\x00", "ns/pid\x00", "ns/user\x00", "ns/uts\x00", "ns/pid_for_children\x00", "ns/time\x00", "ns/time_for_children\x00"}}}, }, Ret: &ResourceType{TypeCommon: TypeCommon{TypeName: "fd_namespace", FldName: "ret", TypeSize: 4, ArgDir: 1}}}, {Name: "syz_open_pts", CallName: "syz_open_pts", Args: []Type{ &ResourceType{TypeCommon: TypeCommon{TypeName: "fd_tty", FldName: "fd", TypeSize: 4}}, @@ -63703,7 +63703,7 @@ var syscalls_arm = []*Syscall{ &FlagsType{IntTypeCommon{TypeCommon: TypeCommon{TypeName: "unlinkat_flags", FldName: "flags", TypeSize: 4}}, []uint64{512}, true}, }}, {NR: 337, Name: "unshare", CallName: "unshare", Args: []Type{ - &FlagsType{IntTypeCommon{TypeCommon: TypeCommon{TypeName: "unshare_flags", FldName: "flags", TypeSize: 4}}, []uint64{256, 512, 1024, 2048, 65536, 131072, 262144, 33554432, 67108864, 134217728, 268435456, 536870912, 1073741824}, true}, + &FlagsType{IntTypeCommon{TypeCommon: TypeCommon{TypeName: "unshare_flags", FldName: "flags", TypeSize: 4}}, []uint64{128, 256, 512, 1024, 2048, 65536, 131072, 262144, 33554432, 67108864, 134217728, 268435456, 536870912, 1073741824}, true}, }}, {NR: 86, Name: "uselib", CallName: "uselib", Args: []Type{ &PtrType{TypeCommon{TypeName: "ptr", FldName: "lib", TypeSize: 4}, &BufferType{TypeCommon: TypeCommon{TypeName: "filename", IsVarlen: true}, Kind: 3}}, @@ -65533,6 +65533,7 @@ var consts_arm = []ConstValue{ {"CLONE_NEWNET", 1073741824}, {"CLONE_NEWNS", 131072}, {"CLONE_NEWPID", 536870912}, + {"CLONE_NEWTIME", 128}, {"CLONE_NEWUSER", 268435456}, {"CLONE_NEWUTS", 67108864}, {"CLONE_PARENT", 32768}, @@ -74614,4 +74615,4 @@ var consts_arm = []ConstValue{ {"bpf_insn_load_imm_dw", 24}, } -const revision_arm = "12387e14ff107c7174efc02312518c8bdf3b2321" +const revision_arm = "753f6663d780892ef274baf313953c61f92921d7" diff --git a/sys/linux/gen/arm64.go b/sys/linux/gen/arm64.go index 3a6329092..3e62c15dc 100644 --- a/sys/linux/gen/arm64.go +++ b/sys/linux/gen/arm64.go @@ -2139,7 +2139,7 @@ var structDescs_arm64 = []*KeyedStruct{ &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int32", FldName: "timeout", TypeSize: 4}}}, }}}, {StructKey{Name: "clone_args"}, &StructDesc{TypeCommon: TypeCommon{TypeName: "clone_args", TypeSize: 80}, Fields: []Type{ - &FlagsType{IntTypeCommon{TypeCommon: TypeCommon{TypeName: "clone_flags", FldName: "flags", TypeSize: 8}}, []uint64{256, 512, 1024, 2048, 4096, 8192, 16384, 32768, 65536, 131072, 262144, 524288, 1048576, 2097152, 8388608, 16777216, 33554432, 67108864, 134217728, 268435456, 536870912, 1073741824, 2147483648}, true}, + &FlagsType{IntTypeCommon{TypeCommon: TypeCommon{TypeName: "clone_flags", FldName: "flags", TypeSize: 8}}, []uint64{128, 256, 512, 1024, 2048, 4096, 8192, 16384, 32768, 65536, 131072, 262144, 524288, 1048576, 2097152, 8388608, 16777216, 33554432, 67108864, 134217728, 268435456, 536870912, 1073741824, 2147483648}, true}, &PtrType{TypeCommon{TypeName: "ptr64", FldName: "pidfd", TypeSize: 8}, &ResourceType{TypeCommon: TypeCommon{TypeName: "fd_pidfd", TypeSize: 4, ArgDir: 1}}}, &PtrType{TypeCommon{TypeName: "ptr64", FldName: "child_tid", TypeSize: 8}, &ResourceType{TypeCommon: TypeCommon{TypeName: "pid", TypeSize: 4, ArgDir: 1}}}, &PtrType{TypeCommon{TypeName: "ptr64", FldName: "parent_tid", TypeSize: 8}, &ResourceType{TypeCommon: TypeCommon{TypeName: "pid", TypeSize: 4, ArgDir: 1}}}, @@ -48558,7 +48558,7 @@ var syscalls_arm64 = []*Syscall{ &PtrType{TypeCommon{TypeName: "ptr", FldName: "tp", TypeSize: 8}, &StructType{Key: StructKey{Name: "timespec"}}}, }}, {NR: 220, Name: "clone", CallName: "clone", Args: []Type{ - &FlagsType{IntTypeCommon{TypeCommon: TypeCommon{TypeName: "clone_flags", FldName: "flags", TypeSize: 8}}, []uint64{256, 512, 1024, 2048, 4096, 8192, 16384, 32768, 65536, 131072, 262144, 524288, 1048576, 2097152, 8388608, 16777216, 33554432, 67108864, 134217728, 268435456, 536870912, 1073741824, 2147483648}, true}, + &FlagsType{IntTypeCommon{TypeCommon: TypeCommon{TypeName: "clone_flags", FldName: "flags", TypeSize: 8}}, []uint64{128, 256, 512, 1024, 2048, 4096, 8192, 16384, 32768, 65536, 131072, 262144, 524288, 1048576, 2097152, 8388608, 16777216, 33554432, 67108864, 134217728, 268435456, 536870912, 1073741824, 2147483648}, true}, &PtrType{TypeCommon{TypeName: "ptr", FldName: "sp", TypeSize: 8}, &BufferType{TypeCommon: TypeCommon{TypeName: "array", IsVarlen: true}}}, &PtrType{TypeCommon{TypeName: "ptr", FldName: "parentid", TypeSize: 8}, &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int32", TypeSize: 4, ArgDir: 1}}}}, &PtrType{TypeCommon{TypeName: "ptr", FldName: "childtid", TypeSize: 8}, &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int32", TypeSize: 4, ArgDir: 1}}}}, @@ -61071,7 +61071,7 @@ var syscalls_arm64 = []*Syscall{ }}, {NR: 268, Name: "setns", CallName: "setns", Args: []Type{ &ResourceType{TypeCommon: TypeCommon{TypeName: "fd_namespace", FldName: "fd", TypeSize: 4}}, - &FlagsType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "ns_type", FldName: "type", TypeSize: 8}}, Vals: []uint64{0, 131072, 33554432, 67108864, 134217728, 268435456, 536870912, 1073741824}}, + &FlagsType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "ns_type", FldName: "type", TypeSize: 8}}, Vals: []uint64{0, 128, 131072, 33554432, 67108864, 134217728, 268435456, 536870912, 1073741824}}, }}, {NR: 154, Name: "setpgid", CallName: "setpgid", Args: []Type{ &ResourceType{TypeCommon: TypeCommon{TypeName: "pid", FldName: "pid", TypeSize: 4}}, @@ -64203,7 +64203,7 @@ var syscalls_arm64 = []*Syscall{ }, Ret: &ResourceType{TypeCommon: TypeCommon{TypeName: "fd", FldName: "ret", TypeSize: 4, ArgDir: 1}}}, {Name: "syz_open_procfs$namespace", CallName: "syz_open_procfs", Args: []Type{ &ResourceType{TypeCommon: TypeCommon{TypeName: "pid", FldName: "pid", TypeSize: 4}}, - &PtrType{TypeCommon{TypeName: "ptr", FldName: "file", TypeSize: 8}, &BufferType{TypeCommon: TypeCommon{TypeName: "string", IsVarlen: true}, Kind: 2, SubKind: "procfs_namespace_file", Values: []string{"ns/cgroup\x00", "ns/ipc\x00", "ns/mnt\x00", "ns/net\x00", "ns/pid\x00", "ns/user\x00", "ns/uts\x00", "ns/pid_for_children\x00"}}}, + &PtrType{TypeCommon{TypeName: "ptr", FldName: "file", TypeSize: 8}, &BufferType{TypeCommon: TypeCommon{TypeName: "string", IsVarlen: true}, Kind: 2, SubKind: "procfs_namespace_file", Values: []string{"ns/cgroup\x00", "ns/ipc\x00", "ns/mnt\x00", "ns/net\x00", "ns/pid\x00", "ns/user\x00", "ns/uts\x00", "ns/pid_for_children\x00", "ns/time\x00", "ns/time_for_children\x00"}}}, }, Ret: &ResourceType{TypeCommon: TypeCommon{TypeName: "fd_namespace", FldName: "ret", TypeSize: 4, ArgDir: 1}}}, {Name: "syz_open_pts", CallName: "syz_open_pts", Args: []Type{ &ResourceType{TypeCommon: TypeCommon{TypeName: "fd_tty", FldName: "fd", TypeSize: 4}}, @@ -64365,7 +64365,7 @@ var syscalls_arm64 = []*Syscall{ &FlagsType{IntTypeCommon{TypeCommon: TypeCommon{TypeName: "unlinkat_flags", FldName: "flags", TypeSize: 8}}, []uint64{512}, true}, }}, {NR: 97, Name: "unshare", CallName: "unshare", Args: []Type{ - &FlagsType{IntTypeCommon{TypeCommon: TypeCommon{TypeName: "unshare_flags", FldName: "flags", TypeSize: 8}}, []uint64{256, 512, 1024, 2048, 65536, 131072, 262144, 33554432, 67108864, 134217728, 268435456, 536870912, 1073741824}, true}, + &FlagsType{IntTypeCommon{TypeCommon: TypeCommon{TypeName: "unshare_flags", FldName: "flags", TypeSize: 8}}, []uint64{128, 256, 512, 1024, 2048, 65536, 131072, 262144, 33554432, 67108864, 134217728, 268435456, 536870912, 1073741824}, true}, }}, {NR: 282, Name: "userfaultfd", CallName: "userfaultfd", Args: []Type{ &FlagsType{IntTypeCommon{TypeCommon: TypeCommon{TypeName: "userfaultfd_flags", FldName: "flags", TypeSize: 8}}, []uint64{2048, 524288}, true}, @@ -66184,6 +66184,7 @@ var consts_arm64 = []ConstValue{ {"CLONE_NEWNET", 1073741824}, {"CLONE_NEWNS", 131072}, {"CLONE_NEWPID", 536870912}, + {"CLONE_NEWTIME", 128}, {"CLONE_NEWUSER", 268435456}, {"CLONE_NEWUTS", 67108864}, {"CLONE_PARENT", 32768}, @@ -75251,4 +75252,4 @@ var consts_arm64 = []ConstValue{ {"bpf_insn_load_imm_dw", 24}, } -const revision_arm64 = "a859c92db54f53c6db2cdb426661f94cdd77ba50" +const revision_arm64 = "95d9d2f8bb59850fb2980a40f8fd2f133199071f" diff --git a/sys/linux/gen/mips64le.go b/sys/linux/gen/mips64le.go index 955731fb4..28c6e6020 100644 --- a/sys/linux/gen/mips64le.go +++ b/sys/linux/gen/mips64le.go @@ -2136,7 +2136,7 @@ var structDescs_mips64le = []*KeyedStruct{ &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int32", FldName: "timeout", TypeSize: 4}}}, }}}, {StructKey{Name: "clone_args"}, &StructDesc{TypeCommon: TypeCommon{TypeName: "clone_args", TypeSize: 80}, Fields: []Type{ - &FlagsType{IntTypeCommon{TypeCommon: TypeCommon{TypeName: "clone_flags", FldName: "flags", TypeSize: 8}}, []uint64{256, 512, 1024, 2048, 4096, 8192, 16384, 32768, 65536, 131072, 262144, 524288, 1048576, 2097152, 8388608, 16777216, 33554432, 67108864, 134217728, 268435456, 536870912, 1073741824, 2147483648}, true}, + &FlagsType{IntTypeCommon{TypeCommon: TypeCommon{TypeName: "clone_flags", FldName: "flags", TypeSize: 8}}, []uint64{128, 256, 512, 1024, 2048, 4096, 8192, 16384, 32768, 65536, 131072, 262144, 524288, 1048576, 2097152, 8388608, 16777216, 33554432, 67108864, 134217728, 268435456, 536870912, 1073741824, 2147483648}, true}, &PtrType{TypeCommon{TypeName: "ptr64", FldName: "pidfd", TypeSize: 8}, &ResourceType{TypeCommon: TypeCommon{TypeName: "fd_pidfd", TypeSize: 4, ArgDir: 1}}}, &PtrType{TypeCommon{TypeName: "ptr64", FldName: "child_tid", TypeSize: 8}, &ResourceType{TypeCommon: TypeCommon{TypeName: "pid", TypeSize: 4, ArgDir: 1}}}, &PtrType{TypeCommon{TypeName: "ptr64", FldName: "parent_tid", TypeSize: 8}, &ResourceType{TypeCommon: TypeCommon{TypeName: "pid", TypeSize: 4, ArgDir: 1}}}, @@ -47660,7 +47660,7 @@ var syscalls_mips64le = []*Syscall{ &PtrType{TypeCommon{TypeName: "ptr", FldName: "tp", TypeSize: 8}, &StructType{Key: StructKey{Name: "timespec"}}}, }}, {NR: 5055, Name: "clone", CallName: "clone", Args: []Type{ - &FlagsType{IntTypeCommon{TypeCommon: TypeCommon{TypeName: "clone_flags", FldName: "flags", TypeSize: 8}}, []uint64{256, 512, 1024, 2048, 4096, 8192, 16384, 32768, 65536, 131072, 262144, 524288, 1048576, 2097152, 8388608, 16777216, 33554432, 67108864, 134217728, 268435456, 536870912, 1073741824, 2147483648}, true}, + &FlagsType{IntTypeCommon{TypeCommon: TypeCommon{TypeName: "clone_flags", FldName: "flags", TypeSize: 8}}, []uint64{128, 256, 512, 1024, 2048, 4096, 8192, 16384, 32768, 65536, 131072, 262144, 524288, 1048576, 2097152, 8388608, 16777216, 33554432, 67108864, 134217728, 268435456, 536870912, 1073741824, 2147483648}, true}, &PtrType{TypeCommon{TypeName: "ptr", FldName: "sp", TypeSize: 8}, &BufferType{TypeCommon: TypeCommon{TypeName: "array", IsVarlen: true}}}, &PtrType{TypeCommon{TypeName: "ptr", FldName: "parentid", TypeSize: 8}, &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int32", TypeSize: 4, ArgDir: 1}}}}, &PtrType{TypeCommon{TypeName: "ptr", FldName: "childtid", TypeSize: 8}, &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int32", TypeSize: 4, ArgDir: 1}}}}, @@ -59723,7 +59723,7 @@ var syscalls_mips64le = []*Syscall{ }}, {NR: 5303, Name: "setns", CallName: "setns", Args: []Type{ &ResourceType{TypeCommon: TypeCommon{TypeName: "fd_namespace", FldName: "fd", TypeSize: 4}}, - &FlagsType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "ns_type", FldName: "type", TypeSize: 8}}, Vals: []uint64{0, 131072, 33554432, 67108864, 134217728, 268435456, 536870912, 1073741824}}, + &FlagsType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "ns_type", FldName: "type", TypeSize: 8}}, Vals: []uint64{0, 128, 131072, 33554432, 67108864, 134217728, 268435456, 536870912, 1073741824}}, }}, {NR: 5107, Name: "setpgid", CallName: "setpgid", Args: []Type{ &ResourceType{TypeCommon: TypeCommon{TypeName: "pid", FldName: "pid", TypeSize: 4}}, @@ -62880,7 +62880,7 @@ var syscalls_mips64le = []*Syscall{ }, Ret: &ResourceType{TypeCommon: TypeCommon{TypeName: "fd", FldName: "ret", TypeSize: 4, ArgDir: 1}}}, {Name: "syz_open_procfs$namespace", CallName: "syz_open_procfs", Args: []Type{ &ResourceType{TypeCommon: TypeCommon{TypeName: "pid", FldName: "pid", TypeSize: 4}}, - &PtrType{TypeCommon{TypeName: "ptr", FldName: "file", TypeSize: 8}, &BufferType{TypeCommon: TypeCommon{TypeName: "string", IsVarlen: true}, Kind: 2, SubKind: "procfs_namespace_file", Values: []string{"ns/cgroup\x00", "ns/ipc\x00", "ns/mnt\x00", "ns/net\x00", "ns/pid\x00", "ns/user\x00", "ns/uts\x00", "ns/pid_for_children\x00"}}}, + &PtrType{TypeCommon{TypeName: "ptr", FldName: "file", TypeSize: 8}, &BufferType{TypeCommon: TypeCommon{TypeName: "string", IsVarlen: true}, Kind: 2, SubKind: "procfs_namespace_file", Values: []string{"ns/cgroup\x00", "ns/ipc\x00", "ns/mnt\x00", "ns/net\x00", "ns/pid\x00", "ns/user\x00", "ns/uts\x00", "ns/pid_for_children\x00", "ns/time\x00", "ns/time_for_children\x00"}}}, }, Ret: &ResourceType{TypeCommon: TypeCommon{TypeName: "fd_namespace", FldName: "ret", TypeSize: 4, ArgDir: 1}}}, {Name: "syz_open_pts", CallName: "syz_open_pts", Args: []Type{ &ResourceType{TypeCommon: TypeCommon{TypeName: "fd_tty", FldName: "fd", TypeSize: 4}}, @@ -63045,7 +63045,7 @@ var syscalls_mips64le = []*Syscall{ &FlagsType{IntTypeCommon{TypeCommon: TypeCommon{TypeName: "unlinkat_flags", FldName: "flags", TypeSize: 8}}, []uint64{512}, true}, }}, {NR: 5262, Name: "unshare", CallName: "unshare", Args: []Type{ - &FlagsType{IntTypeCommon{TypeCommon: TypeCommon{TypeName: "unshare_flags", FldName: "flags", TypeSize: 8}}, []uint64{256, 512, 1024, 2048, 65536, 131072, 262144, 33554432, 67108864, 134217728, 268435456, 536870912, 1073741824}, true}, + &FlagsType{IntTypeCommon{TypeCommon: TypeCommon{TypeName: "unshare_flags", FldName: "flags", TypeSize: 8}}, []uint64{128, 256, 512, 1024, 2048, 65536, 131072, 262144, 33554432, 67108864, 134217728, 268435456, 536870912, 1073741824}, true}, }}, {NR: 5317, Name: "userfaultfd", CallName: "userfaultfd", Args: []Type{ &FlagsType{IntTypeCommon{TypeCommon: TypeCommon{TypeName: "userfaultfd_flags", FldName: "flags", TypeSize: 8}}, []uint64{128, 524288}, true}, @@ -64876,6 +64876,7 @@ var consts_mips64le = []ConstValue{ {"CLONE_NEWNET", 1073741824}, {"CLONE_NEWNS", 131072}, {"CLONE_NEWPID", 536870912}, + {"CLONE_NEWTIME", 128}, {"CLONE_NEWUSER", 268435456}, {"CLONE_NEWUTS", 67108864}, {"CLONE_PARENT", 32768}, @@ -72912,4 +72913,4 @@ var consts_mips64le = []ConstValue{ {"bpf_insn_load_imm_dw", 24}, } -const revision_mips64le = "b8456fc9cdd77eca4a9a660319c0656820845d5d" +const revision_mips64le = "7e5e85d0f0ca0fdeaceca9448e3154efe868ccd7" diff --git a/sys/linux/gen/ppc64le.go b/sys/linux/gen/ppc64le.go index f412e9614..d183a779f 100644 --- a/sys/linux/gen/ppc64le.go +++ b/sys/linux/gen/ppc64le.go @@ -2138,7 +2138,7 @@ var structDescs_ppc64le = []*KeyedStruct{ &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int32", FldName: "timeout", TypeSize: 4}}}, }}}, {StructKey{Name: "clone_args"}, &StructDesc{TypeCommon: TypeCommon{TypeName: "clone_args", TypeSize: 80}, Fields: []Type{ - &FlagsType{IntTypeCommon{TypeCommon: TypeCommon{TypeName: "clone_flags", FldName: "flags", TypeSize: 8}}, []uint64{256, 512, 1024, 2048, 4096, 8192, 16384, 32768, 65536, 131072, 262144, 524288, 1048576, 2097152, 8388608, 16777216, 33554432, 67108864, 134217728, 268435456, 536870912, 1073741824, 2147483648}, true}, + &FlagsType{IntTypeCommon{TypeCommon: TypeCommon{TypeName: "clone_flags", FldName: "flags", TypeSize: 8}}, []uint64{128, 256, 512, 1024, 2048, 4096, 8192, 16384, 32768, 65536, 131072, 262144, 524288, 1048576, 2097152, 8388608, 16777216, 33554432, 67108864, 134217728, 268435456, 536870912, 1073741824, 2147483648}, true}, &PtrType{TypeCommon{TypeName: "ptr64", FldName: "pidfd", TypeSize: 8}, &ResourceType{TypeCommon: TypeCommon{TypeName: "fd_pidfd", TypeSize: 4, ArgDir: 1}}}, &PtrType{TypeCommon{TypeName: "ptr64", FldName: "child_tid", TypeSize: 8}, &ResourceType{TypeCommon: TypeCommon{TypeName: "pid", TypeSize: 4, ArgDir: 1}}}, &PtrType{TypeCommon{TypeName: "ptr64", FldName: "parent_tid", TypeSize: 8}, &ResourceType{TypeCommon: TypeCommon{TypeName: "pid", TypeSize: 4, ArgDir: 1}}}, @@ -48473,7 +48473,7 @@ var syscalls_ppc64le = []*Syscall{ &PtrType{TypeCommon{TypeName: "ptr", FldName: "tp", TypeSize: 8}, &StructType{Key: StructKey{Name: "timespec"}}}, }}, {NR: 120, Name: "clone", CallName: "clone", Args: []Type{ - &FlagsType{IntTypeCommon{TypeCommon: TypeCommon{TypeName: "clone_flags", FldName: "flags", TypeSize: 8}}, []uint64{256, 512, 1024, 2048, 4096, 8192, 16384, 32768, 65536, 131072, 262144, 524288, 1048576, 2097152, 8388608, 16777216, 33554432, 67108864, 134217728, 268435456, 536870912, 1073741824, 2147483648}, true}, + &FlagsType{IntTypeCommon{TypeCommon: TypeCommon{TypeName: "clone_flags", FldName: "flags", TypeSize: 8}}, []uint64{128, 256, 512, 1024, 2048, 4096, 8192, 16384, 32768, 65536, 131072, 262144, 524288, 1048576, 2097152, 8388608, 16777216, 33554432, 67108864, 134217728, 268435456, 536870912, 1073741824, 2147483648}, true}, &PtrType{TypeCommon{TypeName: "ptr", FldName: "sp", TypeSize: 8}, &BufferType{TypeCommon: TypeCommon{TypeName: "array", IsVarlen: true}}}, &PtrType{TypeCommon{TypeName: "ptr", FldName: "parentid", TypeSize: 8}, &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int32", TypeSize: 4, ArgDir: 1}}}}, &PtrType{TypeCommon{TypeName: "ptr", FldName: "childtid", TypeSize: 8}, &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int32", TypeSize: 4, ArgDir: 1}}}}, @@ -61053,7 +61053,7 @@ var syscalls_ppc64le = []*Syscall{ }}, {NR: 350, Name: "setns", CallName: "setns", Args: []Type{ &ResourceType{TypeCommon: TypeCommon{TypeName: "fd_namespace", FldName: "fd", TypeSize: 4}}, - &FlagsType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "ns_type", FldName: "type", TypeSize: 8}}, Vals: []uint64{0, 131072, 33554432, 67108864, 134217728, 268435456, 536870912, 1073741824}}, + &FlagsType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "ns_type", FldName: "type", TypeSize: 8}}, Vals: []uint64{0, 128, 131072, 33554432, 67108864, 134217728, 268435456, 536870912, 1073741824}}, }}, {NR: 57, Name: "setpgid", CallName: "setpgid", Args: []Type{ &ResourceType{TypeCommon: TypeCommon{TypeName: "pid", FldName: "pid", TypeSize: 4}}, @@ -64204,7 +64204,7 @@ var syscalls_ppc64le = []*Syscall{ }, Ret: &ResourceType{TypeCommon: TypeCommon{TypeName: "fd", FldName: "ret", TypeSize: 4, ArgDir: 1}}}, {Name: "syz_open_procfs$namespace", CallName: "syz_open_procfs", Args: []Type{ &ResourceType{TypeCommon: TypeCommon{TypeName: "pid", FldName: "pid", TypeSize: 4}}, - &PtrType{TypeCommon{TypeName: "ptr", FldName: "file", TypeSize: 8}, &BufferType{TypeCommon: TypeCommon{TypeName: "string", IsVarlen: true}, Kind: 2, SubKind: "procfs_namespace_file", Values: []string{"ns/cgroup\x00", "ns/ipc\x00", "ns/mnt\x00", "ns/net\x00", "ns/pid\x00", "ns/user\x00", "ns/uts\x00", "ns/pid_for_children\x00"}}}, + &PtrType{TypeCommon{TypeName: "ptr", FldName: "file", TypeSize: 8}, &BufferType{TypeCommon: TypeCommon{TypeName: "string", IsVarlen: true}, Kind: 2, SubKind: "procfs_namespace_file", Values: []string{"ns/cgroup\x00", "ns/ipc\x00", "ns/mnt\x00", "ns/net\x00", "ns/pid\x00", "ns/user\x00", "ns/uts\x00", "ns/pid_for_children\x00", "ns/time\x00", "ns/time_for_children\x00"}}}, }, Ret: &ResourceType{TypeCommon: TypeCommon{TypeName: "fd_namespace", FldName: "ret", TypeSize: 4, ArgDir: 1}}}, {Name: "syz_open_pts", CallName: "syz_open_pts", Args: []Type{ &ResourceType{TypeCommon: TypeCommon{TypeName: "fd_tty", FldName: "fd", TypeSize: 4}}, @@ -64372,7 +64372,7 @@ var syscalls_ppc64le = []*Syscall{ &FlagsType{IntTypeCommon{TypeCommon: TypeCommon{TypeName: "unlinkat_flags", FldName: "flags", TypeSize: 8}}, []uint64{512}, true}, }}, {NR: 282, Name: "unshare", CallName: "unshare", Args: []Type{ - &FlagsType{IntTypeCommon{TypeCommon: TypeCommon{TypeName: "unshare_flags", FldName: "flags", TypeSize: 8}}, []uint64{256, 512, 1024, 2048, 65536, 131072, 262144, 33554432, 67108864, 134217728, 268435456, 536870912, 1073741824}, true}, + &FlagsType{IntTypeCommon{TypeCommon: TypeCommon{TypeName: "unshare_flags", FldName: "flags", TypeSize: 8}}, []uint64{128, 256, 512, 1024, 2048, 65536, 131072, 262144, 33554432, 67108864, 134217728, 268435456, 536870912, 1073741824}, true}, }}, {NR: 86, Name: "uselib", CallName: "uselib", Args: []Type{ &PtrType{TypeCommon{TypeName: "ptr", FldName: "lib", TypeSize: 8}, &BufferType{TypeCommon: TypeCommon{TypeName: "filename", IsVarlen: true}, Kind: 3}}, @@ -66206,6 +66206,7 @@ var consts_ppc64le = []ConstValue{ {"CLONE_NEWNET", 1073741824}, {"CLONE_NEWNS", 131072}, {"CLONE_NEWPID", 536870912}, + {"CLONE_NEWTIME", 128}, {"CLONE_NEWUSER", 268435456}, {"CLONE_NEWUTS", 67108864}, {"CLONE_PARENT", 32768}, @@ -75248,4 +75249,4 @@ var consts_ppc64le = []ConstValue{ {"bpf_insn_load_imm_dw", 24}, } -const revision_ppc64le = "d12b0bba68d8a2c0e1a73f9806c9b1d83bc66490" +const revision_ppc64le = "c38d5c8ad9bd45b4a797aa94364a8160c1ab91a9" diff --git a/sys/linux/namespaces.txt b/sys/linux/namespaces.txt index dfd56331f..5ae862c8f 100644 --- a/sys/linux/namespaces.txt +++ b/sys/linux/namespaces.txt @@ -16,7 +16,7 @@ ioctl$NS_GET_PARENT(fd fd_namespace, cmd const[NS_GET_PARENT], arg const[0]) fd_ ioctl$NS_GET_NSTYPE(fd fd_namespace, cmd const[NS_GET_NSTYPE], arg const[0]) ioctl$NS_GET_OWNER_UID(fd fd_namespace, cmd const[NS_GET_OWNER_UID], arg ptr[out, uid]) -procfs_namespace_file = "ns/cgroup", "ns/ipc", "ns/mnt", "ns/net", "ns/pid", "ns/user", "ns/uts", "ns/pid_for_children" +procfs_namespace_file = "ns/cgroup", "ns/ipc", "ns/mnt", "ns/net", "ns/pid", "ns/user", "ns/uts", "ns/pid_for_children", "ns/time", "ns/time_for_children" -unshare_flags = CLONE_FILES, CLONE_FS, CLONE_NEWCGROUP, CLONE_NEWIPC, CLONE_NEWNET, CLONE_NEWNS, CLONE_NEWPID, CLONE_NEWUSER, CLONE_NEWUTS, CLONE_SYSVSEM, CLONE_THREAD, CLONE_SIGHAND, CLONE_VM -ns_type = 0, CLONE_NEWIPC, CLONE_NEWNET, CLONE_NEWUTS, CLONE_NEWCGROUP, CLONE_NEWNS, CLONE_NEWPID, CLONE_NEWUSER +unshare_flags = CLONE_FILES, CLONE_FS, CLONE_NEWCGROUP, CLONE_NEWIPC, CLONE_NEWNET, CLONE_NEWNS, CLONE_NEWPID, CLONE_NEWUSER, CLONE_NEWUTS, CLONE_SYSVSEM, CLONE_THREAD, CLONE_SIGHAND, CLONE_VM, CLONE_NEWTIME +ns_type = 0, CLONE_NEWIPC, CLONE_NEWNET, CLONE_NEWUTS, CLONE_NEWCGROUP, CLONE_NEWNS, CLONE_NEWPID, CLONE_NEWUSER, CLONE_NEWTIME diff --git a/sys/linux/namespaces_386.const b/sys/linux/namespaces_386.const index 84ff644af..5e49bc0d2 100644 --- a/sys/linux/namespaces_386.const +++ b/sys/linux/namespaces_386.const @@ -6,6 +6,7 @@ CLONE_NEWIPC = 134217728 CLONE_NEWNET = 1073741824 CLONE_NEWNS = 131072 CLONE_NEWPID = 536870912 +CLONE_NEWTIME = 128 CLONE_NEWUSER = 268435456 CLONE_NEWUTS = 67108864 CLONE_SIGHAND = 2048 diff --git a/sys/linux/namespaces_amd64.const b/sys/linux/namespaces_amd64.const index 6b9901bb7..3dc2b2828 100644 --- a/sys/linux/namespaces_amd64.const +++ b/sys/linux/namespaces_amd64.const @@ -6,6 +6,7 @@ CLONE_NEWIPC = 134217728 CLONE_NEWNET = 1073741824 CLONE_NEWNS = 131072 CLONE_NEWPID = 536870912 +CLONE_NEWTIME = 128 CLONE_NEWUSER = 268435456 CLONE_NEWUTS = 67108864 CLONE_SIGHAND = 2048 diff --git a/sys/linux/namespaces_arm.const b/sys/linux/namespaces_arm.const index a579022d6..2d7632057 100644 --- a/sys/linux/namespaces_arm.const +++ b/sys/linux/namespaces_arm.const @@ -6,6 +6,7 @@ CLONE_NEWIPC = 134217728 CLONE_NEWNET = 1073741824 CLONE_NEWNS = 131072 CLONE_NEWPID = 536870912 +CLONE_NEWTIME = 128 CLONE_NEWUSER = 268435456 CLONE_NEWUTS = 67108864 CLONE_SIGHAND = 2048 diff --git a/sys/linux/namespaces_arm64.const b/sys/linux/namespaces_arm64.const index b6ffca506..ed8a30796 100644 --- a/sys/linux/namespaces_arm64.const +++ b/sys/linux/namespaces_arm64.const @@ -6,6 +6,7 @@ CLONE_NEWIPC = 134217728 CLONE_NEWNET = 1073741824 CLONE_NEWNS = 131072 CLONE_NEWPID = 536870912 +CLONE_NEWTIME = 128 CLONE_NEWUSER = 268435456 CLONE_NEWUTS = 67108864 CLONE_SIGHAND = 2048 diff --git a/sys/linux/namespaces_mips64le.const b/sys/linux/namespaces_mips64le.const index 0cad6a1cb..fbc8bc726 100644 --- a/sys/linux/namespaces_mips64le.const +++ b/sys/linux/namespaces_mips64le.const @@ -6,6 +6,7 @@ CLONE_NEWIPC = 134217728 CLONE_NEWNET = 1073741824 CLONE_NEWNS = 131072 CLONE_NEWPID = 536870912 +CLONE_NEWTIME = 128 CLONE_NEWUSER = 268435456 CLONE_NEWUTS = 67108864 CLONE_SIGHAND = 2048 diff --git a/sys/linux/namespaces_ppc64le.const b/sys/linux/namespaces_ppc64le.const index 8e9ecbce2..89ddc5f54 100644 --- a/sys/linux/namespaces_ppc64le.const +++ b/sys/linux/namespaces_ppc64le.const @@ -6,6 +6,7 @@ CLONE_NEWIPC = 134217728 CLONE_NEWNET = 1073741824 CLONE_NEWNS = 131072 CLONE_NEWPID = 536870912 +CLONE_NEWTIME = 128 CLONE_NEWUSER = 268435456 CLONE_NEWUTS = 67108864 CLONE_SIGHAND = 2048 diff --git a/sys/linux/sys.txt b/sys/linux/sys.txt index 16d3eb6a5..7fb9293ba 100644 --- a/sys/linux/sys.txt +++ b/sys/linux/sys.txt @@ -975,7 +975,7 @@ fcntl_rw_hint = RWF_WRITE_LIFE_NOT_SET, RWH_WRITE_LIFE_NONE, RWH_WRITE_LIFE_SHOR fiemap_flags = FIEMAP_FLAG_SYNC, FIEMAP_FLAG_XATTR, FIEMAP_FLAG_CACHE fiemap_extent_flags = FIEMAP_EXTENT_LAST, FIEMAP_EXTENT_UNKNOWN, FIEMAP_EXTENT_DELALLOC, FIEMAP_EXTENT_ENCODED, FIEMAP_EXTENT_DATA_ENCRYPTED, FIEMAP_EXTENT_NOT_ALIGNED, FIEMAP_EXTENT_DATA_INLINE, FIEMAP_EXTENT_DATA_TAIL, FIEMAP_EXTENT_UNWRITTEN, FIEMAP_EXTENT_MERGED, FIEMAP_EXTENT_SHARED getrandom_flags = GRND_NONBLOCK, GRND_RANDOM -clone_flags = CLONE_VM, CLONE_FS, CLONE_FILES, CLONE_SIGHAND, CLONE_PTRACE, CLONE_VFORK, CLONE_PARENT, CLONE_THREAD, CLONE_NEWNS, CLONE_SYSVSEM, CLONE_SETTLS, CLONE_PARENT_SETTID, CLONE_CHILD_CLEARTID, CLONE_UNTRACED, CLONE_CHILD_SETTID, CLONE_NEWCGROUP, CLONE_NEWUTS, CLONE_NEWIPC, CLONE_NEWUSER, CLONE_NEWPID, CLONE_NEWNET, CLONE_IO, CLONE_PIDFD +clone_flags = CLONE_VM, CLONE_FS, CLONE_FILES, CLONE_SIGHAND, CLONE_PTRACE, CLONE_VFORK, CLONE_PARENT, CLONE_THREAD, CLONE_NEWNS, CLONE_SYSVSEM, CLONE_SETTLS, CLONE_PARENT_SETTID, CLONE_CHILD_CLEARTID, CLONE_UNTRACED, CLONE_CHILD_SETTID, CLONE_NEWCGROUP, CLONE_NEWUTS, CLONE_NEWIPC, CLONE_NEWUSER, CLONE_NEWPID, CLONE_NEWNET, CLONE_IO, CLONE_PIDFD, CLONE_NEWTIME ptrace_peeksiginfo_flags = PTRACE_PEEKSIGINFO_SHARED # adjtimex flags. diff --git a/sys/linux/sys_386.const b/sys/linux/sys_386.const index fb4e20ee1..14e203414 100644 --- a/sys/linux/sys_386.const +++ b/sys/linux/sys_386.const @@ -45,6 +45,7 @@ CLONE_NEWIPC = 134217728 CLONE_NEWNET = 1073741824 CLONE_NEWNS = 131072 CLONE_NEWPID = 536870912 +CLONE_NEWTIME = 128 CLONE_NEWUSER = 268435456 CLONE_NEWUTS = 67108864 CLONE_PARENT = 32768 diff --git a/sys/linux/sys_amd64.const b/sys/linux/sys_amd64.const index 526f03bcb..111dc0ffe 100644 --- a/sys/linux/sys_amd64.const +++ b/sys/linux/sys_amd64.const @@ -45,6 +45,7 @@ CLONE_NEWIPC = 134217728 CLONE_NEWNET = 1073741824 CLONE_NEWNS = 131072 CLONE_NEWPID = 536870912 +CLONE_NEWTIME = 128 CLONE_NEWUSER = 268435456 CLONE_NEWUTS = 67108864 CLONE_PARENT = 32768 diff --git a/sys/linux/sys_arm.const b/sys/linux/sys_arm.const index ce809782d..1a8f641c4 100644 --- a/sys/linux/sys_arm.const +++ b/sys/linux/sys_arm.const @@ -45,6 +45,7 @@ CLONE_NEWIPC = 134217728 CLONE_NEWNET = 1073741824 CLONE_NEWNS = 131072 CLONE_NEWPID = 536870912 +CLONE_NEWTIME = 128 CLONE_NEWUSER = 268435456 CLONE_NEWUTS = 67108864 CLONE_PARENT = 32768 diff --git a/sys/linux/sys_arm64.const b/sys/linux/sys_arm64.const index 204b92e13..550ca9d60 100644 --- a/sys/linux/sys_arm64.const +++ b/sys/linux/sys_arm64.const @@ -45,6 +45,7 @@ CLONE_NEWIPC = 134217728 CLONE_NEWNET = 1073741824 CLONE_NEWNS = 131072 CLONE_NEWPID = 536870912 +CLONE_NEWTIME = 128 CLONE_NEWUSER = 268435456 CLONE_NEWUTS = 67108864 CLONE_PARENT = 32768 diff --git a/sys/linux/sys_mips64le.const b/sys/linux/sys_mips64le.const index 3144fb15b..62ecf4cd9 100644 --- a/sys/linux/sys_mips64le.const +++ b/sys/linux/sys_mips64le.const @@ -45,6 +45,7 @@ CLONE_NEWIPC = 134217728 CLONE_NEWNET = 1073741824 CLONE_NEWNS = 131072 CLONE_NEWPID = 536870912 +CLONE_NEWTIME = 128 CLONE_NEWUSER = 268435456 CLONE_NEWUTS = 67108864 CLONE_PARENT = 32768 diff --git a/sys/linux/sys_ppc64le.const b/sys/linux/sys_ppc64le.const index 11d7cf9de..bb944d107 100644 --- a/sys/linux/sys_ppc64le.const +++ b/sys/linux/sys_ppc64le.const @@ -45,6 +45,7 @@ CLONE_NEWIPC = 134217728 CLONE_NEWNET = 1073741824 CLONE_NEWNS = 131072 CLONE_NEWPID = 536870912 +CLONE_NEWTIME = 128 CLONE_NEWUSER = 268435456 CLONE_NEWUTS = 67108864 CLONE_PARENT = 32768 |
