diff options
| author | Christian Brauner <christian.brauner@ubuntu.com> | 2020-02-06 02:57:52 +0100 |
|---|---|---|
| committer | Andrey Konovalov <andreyknvl@gmail.com> | 2020-02-06 12:38:23 +0100 |
| commit | 5be3a391ba78f7f11b725cee6783880974b9895a (patch) | |
| tree | 36937eaafa557b14a3d07f1057a57a3b7e177974 /sys/linux | |
| parent | 662cf49ae315772e243d80a1c87dcdee1a304196 (diff) | |
sys/linux: add new pidfd_getfd syscall
Signed-off-by: Christian Brauner <christian.brauner@ubuntu.com>
Diffstat (limited to 'sys/linux')
| -rw-r--r-- | sys/linux/gen/386.go | 8 | ||||
| -rw-r--r-- | sys/linux/gen/amd64.go | 8 | ||||
| -rw-r--r-- | sys/linux/gen/arm.go | 8 | ||||
| -rw-r--r-- | sys/linux/gen/arm64.go | 8 | ||||
| -rw-r--r-- | sys/linux/gen/mips64le.go | 8 | ||||
| -rw-r--r-- | sys/linux/gen/ppc64le.go | 8 | ||||
| -rw-r--r-- | sys/linux/sys.txt | 1 | ||||
| -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 |
13 files changed, 49 insertions, 6 deletions
diff --git a/sys/linux/gen/386.go b/sys/linux/gen/386.go index ff34824ad..86e7c206e 100644 --- a/sys/linux/gen/386.go +++ b/sys/linux/gen/386.go @@ -58911,6 +58911,11 @@ var syscalls_386 = []*Syscall{ {NR: 136, Name: "personality", CallName: "personality", Args: []Type{ &FlagsType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "personality_flags", FldName: "persona", TypeSize: 4}}, Vals: []uint64{0, 6, 8, 12, 15, 16, 262144, 1048576, 2097152, 4194304, 8388608, 16777216, 33554432, 67108864, 67108869, 67108873, 67108874, 67108875, 67108877, 68157441, 68157454, 83886082, 83886084, 83886087, 100663299, 134217728}}, }}, + {NR: 438, Name: "pidfd_getfd", CallName: "pidfd_getfd", Args: []Type{ + &ResourceType{TypeCommon: TypeCommon{TypeName: "fd_pidfd", FldName: "pidfd", TypeSize: 4}}, + &ResourceType{TypeCommon: TypeCommon{TypeName: "fd", FldName: "fd", TypeSize: 4}}, + &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "flags", TypeSize: 4}}}, + }, Ret: &ResourceType{TypeCommon: TypeCommon{TypeName: "fd", FldName: "ret", TypeSize: 4, ArgDir: 1}}}, {NR: 434, Name: "pidfd_open", CallName: "pidfd_open", Args: []Type{ &ResourceType{TypeCommon: TypeCommon{TypeName: "pid", FldName: "pid", TypeSize: 4}}, &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "flags", TypeSize: 4}}}, @@ -75606,6 +75611,7 @@ var consts_386 = []ConstValue{ {"__NR_pause", 29}, {"__NR_perf_event_open", 336}, {"__NR_personality", 136}, + {"__NR_pidfd_getfd", 438}, {"__NR_pidfd_open", 434}, {"__NR_pidfd_send_signal", 424}, {"__NR_pipe", 42}, @@ -75755,4 +75761,4 @@ var consts_386 = []ConstValue{ {"ethtool_per_queue_op_size", 128}, } -const revision_386 = "84c3c78eff5c3d2bec65378261b09dc0eb5dd264" +const revision_386 = "488b52dcf741754c2509508756e62a8ba3f81f2b" diff --git a/sys/linux/gen/amd64.go b/sys/linux/gen/amd64.go index 98fce959a..190702581 100644 --- a/sys/linux/gen/amd64.go +++ b/sys/linux/gen/amd64.go @@ -59856,6 +59856,11 @@ var syscalls_amd64 = []*Syscall{ {NR: 135, Name: "personality", CallName: "personality", Args: []Type{ &FlagsType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "personality_flags", FldName: "persona", TypeSize: 8}}, Vals: []uint64{0, 6, 8, 12, 15, 16, 262144, 1048576, 2097152, 4194304, 8388608, 16777216, 33554432, 67108864, 67108869, 67108873, 67108874, 67108875, 67108877, 68157441, 68157454, 83886082, 83886084, 83886087, 100663299, 134217728}}, }}, + {NR: 438, Name: "pidfd_getfd", CallName: "pidfd_getfd", Args: []Type{ + &ResourceType{TypeCommon: TypeCommon{TypeName: "fd_pidfd", FldName: "pidfd", TypeSize: 4}}, + &ResourceType{TypeCommon: TypeCommon{TypeName: "fd", FldName: "fd", TypeSize: 4}}, + &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "flags", TypeSize: 8}}}, + }, Ret: &ResourceType{TypeCommon: TypeCommon{TypeName: "fd", FldName: "ret", TypeSize: 4, ArgDir: 1}}}, {NR: 434, Name: "pidfd_open", CallName: "pidfd_open", Args: []Type{ &ResourceType{TypeCommon: TypeCommon{TypeName: "pid", FldName: "pid", TypeSize: 4}}, &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "flags", TypeSize: 8}}}, @@ -76566,6 +76571,7 @@ var consts_amd64 = []ConstValue{ {"__NR_pause", 34}, {"__NR_perf_event_open", 298}, {"__NR_personality", 135}, + {"__NR_pidfd_getfd", 438}, {"__NR_pidfd_open", 434}, {"__NR_pidfd_send_signal", 424}, {"__NR_pipe", 22}, @@ -76715,4 +76721,4 @@ var consts_amd64 = []ConstValue{ {"ethtool_per_queue_op_size", 128}, } -const revision_amd64 = "7f945156b7074aa478b8d6e3e8bdd835434bd2d1" +const revision_amd64 = "704942e7a1ea3eabb144b9435a76d907aeccdb48" diff --git a/sys/linux/gen/arm.go b/sys/linux/gen/arm.go index d9ce74672..cfec6f361 100644 --- a/sys/linux/gen/arm.go +++ b/sys/linux/gen/arm.go @@ -58649,6 +58649,11 @@ var syscalls_arm = []*Syscall{ {NR: 136, Name: "personality", CallName: "personality", Args: []Type{ &FlagsType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "personality_flags", FldName: "persona", TypeSize: 4}}, Vals: []uint64{0, 6, 8, 12, 15, 16, 262144, 1048576, 2097152, 4194304, 8388608, 16777216, 33554432, 67108864, 67108869, 67108873, 67108874, 67108875, 67108877, 68157441, 68157454, 83886082, 83886084, 83886087, 100663299, 134217728}}, }}, + {NR: 438, Name: "pidfd_getfd", CallName: "pidfd_getfd", Args: []Type{ + &ResourceType{TypeCommon: TypeCommon{TypeName: "fd_pidfd", FldName: "pidfd", TypeSize: 4}}, + &ResourceType{TypeCommon: TypeCommon{TypeName: "fd", FldName: "fd", TypeSize: 4}}, + &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "flags", TypeSize: 4}}}, + }, Ret: &ResourceType{TypeCommon: TypeCommon{TypeName: "fd", FldName: "ret", TypeSize: 4, ArgDir: 1}}}, {NR: 434, Name: "pidfd_open", CallName: "pidfd_open", Args: []Type{ &ResourceType{TypeCommon: TypeCommon{TypeName: "pid", FldName: "pid", TypeSize: 4}}, &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "flags", TypeSize: 4}}}, @@ -75261,6 +75266,7 @@ var consts_arm = []ConstValue{ {"__NR_pause", 29}, {"__NR_perf_event_open", 364}, {"__NR_personality", 136}, + {"__NR_pidfd_getfd", 438}, {"__NR_pidfd_open", 434}, {"__NR_pidfd_send_signal", 424}, {"__NR_pipe", 42}, @@ -75407,4 +75413,4 @@ var consts_arm = []ConstValue{ {"ethtool_per_queue_op_size", 128}, } -const revision_arm = "e9390fd58634699bc6a68f0f67f821bf7b0ab383" +const revision_arm = "40f992d03beb380276f0bf307364f1cf0f206c6c" diff --git a/sys/linux/gen/arm64.go b/sys/linux/gen/arm64.go index 86b25228d..76dffee22 100644 --- a/sys/linux/gen/arm64.go +++ b/sys/linux/gen/arm64.go @@ -59379,6 +59379,11 @@ var syscalls_arm64 = []*Syscall{ {NR: 92, Name: "personality", CallName: "personality", Args: []Type{ &FlagsType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "personality_flags", FldName: "persona", TypeSize: 8}}, Vals: []uint64{0, 6, 8, 12, 15, 16, 262144, 1048576, 2097152, 4194304, 8388608, 16777216, 33554432, 67108864, 67108869, 67108873, 67108874, 67108875, 67108877, 68157441, 68157454, 83886082, 83886084, 83886087, 100663299, 134217728}}, }}, + {NR: 438, Name: "pidfd_getfd", CallName: "pidfd_getfd", Args: []Type{ + &ResourceType{TypeCommon: TypeCommon{TypeName: "fd_pidfd", FldName: "pidfd", TypeSize: 4}}, + &ResourceType{TypeCommon: TypeCommon{TypeName: "fd", FldName: "fd", TypeSize: 4}}, + &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "flags", TypeSize: 8}}}, + }, Ret: &ResourceType{TypeCommon: TypeCommon{TypeName: "fd", FldName: "ret", TypeSize: 4, ArgDir: 1}}}, {NR: 434, Name: "pidfd_open", CallName: "pidfd_open", Args: []Type{ &ResourceType{TypeCommon: TypeCommon{TypeName: "pid", FldName: "pid", TypeSize: 4}}, &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "flags", TypeSize: 8}}}, @@ -75928,6 +75933,7 @@ var consts_arm64 = []ConstValue{ {"__NR_openat", 56}, {"__NR_perf_event_open", 241}, {"__NR_personality", 92}, + {"__NR_pidfd_getfd", 438}, {"__NR_pidfd_open", 434}, {"__NR_pidfd_send_signal", 424}, {"__NR_pipe2", 59}, @@ -76060,4 +76066,4 @@ var consts_arm64 = []ConstValue{ {"ethtool_per_queue_op_size", 128}, } -const revision_arm64 = "5b9531fe5418e9fec2eb6c37fdc896446e61936c" +const revision_arm64 = "75387c759f9c7815467567ed67117ab8b269e9db" diff --git a/sys/linux/gen/mips64le.go b/sys/linux/gen/mips64le.go index 7d1378919..197cc6686 100644 --- a/sys/linux/gen/mips64le.go +++ b/sys/linux/gen/mips64le.go @@ -58008,6 +58008,11 @@ var syscalls_mips64le = []*Syscall{ {NR: 5132, Name: "personality", CallName: "personality", Args: []Type{ &FlagsType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "personality_flags", FldName: "persona", TypeSize: 8}}, Vals: []uint64{0, 6, 8, 12, 15, 16, 262144, 1048576, 2097152, 4194304, 8388608, 16777216, 33554432, 67108864, 67108869, 67108873, 67108874, 67108875, 67108877, 68157441, 68157454, 83886082, 83886084, 83886087, 100663299, 134217728}}, }}, + {NR: 5438, Name: "pidfd_getfd", CallName: "pidfd_getfd", Args: []Type{ + &ResourceType{TypeCommon: TypeCommon{TypeName: "fd_pidfd", FldName: "pidfd", TypeSize: 4}}, + &ResourceType{TypeCommon: TypeCommon{TypeName: "fd", FldName: "fd", TypeSize: 4}}, + &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "flags", TypeSize: 8}}}, + }, Ret: &ResourceType{TypeCommon: TypeCommon{TypeName: "fd", FldName: "ret", TypeSize: 4, ArgDir: 1}}}, {NR: 5434, Name: "pidfd_open", CallName: "pidfd_open", Args: []Type{ &ResourceType{TypeCommon: TypeCommon{TypeName: "pid", FldName: "pid", TypeSize: 4}}, &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "flags", TypeSize: 8}}}, @@ -73575,6 +73580,7 @@ var consts_mips64le = []ConstValue{ {"__NR_pause", 5033}, {"__NR_perf_event_open", 5292}, {"__NR_personality", 5132}, + {"__NR_pidfd_getfd", 5438}, {"__NR_pidfd_open", 5434}, {"__NR_pidfd_send_signal", 5424}, {"__NR_pipe", 5021}, @@ -73721,4 +73727,4 @@ var consts_mips64le = []ConstValue{ {"ethtool_per_queue_op_size", 128}, } -const revision_mips64le = "4f29bb8b1cd8e7ff8c19ebce1809e1dba86face2" +const revision_mips64le = "5f7a5ad86058695b856977f967f602387e58d2fb" diff --git a/sys/linux/gen/ppc64le.go b/sys/linux/gen/ppc64le.go index 430a6fc7d..f22abacc6 100644 --- a/sys/linux/gen/ppc64le.go +++ b/sys/linux/gen/ppc64le.go @@ -59339,6 +59339,11 @@ var syscalls_ppc64le = []*Syscall{ {NR: 136, Name: "personality", CallName: "personality", Args: []Type{ &FlagsType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "personality_flags", FldName: "persona", TypeSize: 8}}, Vals: []uint64{0, 6, 8, 12, 15, 16, 262144, 1048576, 2097152, 4194304, 8388608, 16777216, 33554432, 67108864, 67108869, 67108873, 67108874, 67108875, 67108877, 68157441, 68157454, 83886082, 83886084, 83886087, 100663299, 134217728}}, }}, + {NR: 438, Name: "pidfd_getfd", CallName: "pidfd_getfd", Args: []Type{ + &ResourceType{TypeCommon: TypeCommon{TypeName: "fd_pidfd", FldName: "pidfd", TypeSize: 4}}, + &ResourceType{TypeCommon: TypeCommon{TypeName: "fd", FldName: "fd", TypeSize: 4}}, + &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "flags", TypeSize: 8}}}, + }, Ret: &ResourceType{TypeCommon: TypeCommon{TypeName: "fd", FldName: "ret", TypeSize: 4, ArgDir: 1}}}, {NR: 434, Name: "pidfd_open", CallName: "pidfd_open", Args: []Type{ &ResourceType{TypeCommon: TypeCommon{TypeName: "pid", FldName: "pid", TypeSize: 4}}, &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "flags", TypeSize: 8}}}, @@ -75911,6 +75916,7 @@ var consts_ppc64le = []ConstValue{ {"__NR_pause", 29}, {"__NR_perf_event_open", 319}, {"__NR_personality", 136}, + {"__NR_pidfd_getfd", 438}, {"__NR_pidfd_open", 434}, {"__NR_pidfd_send_signal", 424}, {"__NR_pipe", 42}, @@ -76057,4 +76063,4 @@ var consts_ppc64le = []ConstValue{ {"ethtool_per_queue_op_size", 128}, } -const revision_ppc64le = "ba0df3df2adef37bd095e45a87d010791519994c" +const revision_ppc64le = "41c17cb8867c35f3c9e5f1fb7f30036b4ea65b96" diff --git a/sys/linux/sys.txt b/sys/linux/sys.txt index 7fb9293ba..12ddb6900 100644 --- a/sys/linux/sys.txt +++ b/sys/linux/sys.txt @@ -478,6 +478,7 @@ openat$pidfd(fd const[AT_FDCWD], file ptr[in, string["/proc/self"]], flags flags openat$thread_pidfd(fd const[AT_FDCWD], file ptr[in, string["/proc/thread-self"]], flags flags[open_flags], mode const[0]) fd_pidfd pidfd_send_signal(fd fd_pidfd, sig signalno, info ptr[in, siginfo], flags const[0]) pidfd_open(pid pid, flags const[0]) fd_pidfd +pidfd_getfd(pidfd fd_pidfd, fd fd, flags const[0]) fd # Uncomment on your own account. #syz_open_dev$char(dev const[0xc], major intptr, minor intptr) fd diff --git a/sys/linux/sys_386.const b/sys/linux/sys_386.const index 14e203414..ff93dc441 100644 --- a/sys/linux/sys_386.const +++ b/sys/linux/sys_386.const @@ -675,6 +675,7 @@ __NR_open_by_handle_at = 342 __NR_openat = 295 __NR_pause = 29 __NR_personality = 136 +__NR_pidfd_getfd = 438 __NR_pidfd_open = 434 __NR_pidfd_send_signal = 424 __NR_pipe = 42 diff --git a/sys/linux/sys_amd64.const b/sys/linux/sys_amd64.const index 111dc0ffe..4c09a4e0d 100644 --- a/sys/linux/sys_amd64.const +++ b/sys/linux/sys_amd64.const @@ -675,6 +675,7 @@ __NR_open_by_handle_at = 304 __NR_openat = 257 __NR_pause = 34 __NR_personality = 135 +__NR_pidfd_getfd = 438 __NR_pidfd_open = 434 __NR_pidfd_send_signal = 424 __NR_pipe = 22 diff --git a/sys/linux/sys_arm.const b/sys/linux/sys_arm.const index 1a8f641c4..5f4ddac83 100644 --- a/sys/linux/sys_arm.const +++ b/sys/linux/sys_arm.const @@ -675,6 +675,7 @@ __NR_open_by_handle_at = 371 __NR_openat = 322 __NR_pause = 29 __NR_personality = 136 +__NR_pidfd_getfd = 438 __NR_pidfd_open = 434 __NR_pidfd_send_signal = 424 __NR_pipe = 42 diff --git a/sys/linux/sys_arm64.const b/sys/linux/sys_arm64.const index 550ca9d60..1ec147f65 100644 --- a/sys/linux/sys_arm64.const +++ b/sys/linux/sys_arm64.const @@ -675,6 +675,7 @@ __NR_open_by_handle_at = 265 __NR_openat = 56 # __NR_pause is not set __NR_personality = 92 +__NR_pidfd_getfd = 438 __NR_pidfd_open = 434 __NR_pidfd_send_signal = 424 # __NR_pipe is not set diff --git a/sys/linux/sys_mips64le.const b/sys/linux/sys_mips64le.const index 62ecf4cd9..728aac2ed 100644 --- a/sys/linux/sys_mips64le.const +++ b/sys/linux/sys_mips64le.const @@ -675,6 +675,7 @@ __NR_open_by_handle_at = 5299 __NR_openat = 5247 __NR_pause = 5033 __NR_personality = 5132 +__NR_pidfd_getfd = 5438 __NR_pidfd_open = 5434 __NR_pidfd_send_signal = 5424 __NR_pipe = 5021 diff --git a/sys/linux/sys_ppc64le.const b/sys/linux/sys_ppc64le.const index bb944d107..c55be9c8b 100644 --- a/sys/linux/sys_ppc64le.const +++ b/sys/linux/sys_ppc64le.const @@ -675,6 +675,7 @@ __NR_open_by_handle_at = 346 __NR_openat = 286 __NR_pause = 29 __NR_personality = 136 +__NR_pidfd_getfd = 438 __NR_pidfd_open = 434 __NR_pidfd_send_signal = 424 __NR_pipe = 42 |
