diff options
Diffstat (limited to 'sys/linux')
| -rw-r--r-- | sys/linux/gen/386.go | 40 | ||||
| -rw-r--r-- | sys/linux/gen/amd64.go | 40 | ||||
| -rw-r--r-- | sys/linux/prctl.txt | 10 | ||||
| -rw-r--r-- | sys/linux/prctl_386.const | 5 | ||||
| -rw-r--r-- | sys/linux/prctl_amd64.const | 5 | ||||
| -rw-r--r-- | sys/linux/prctl_arm.const | 5 | ||||
| -rw-r--r-- | sys/linux/prctl_arm64.const | 5 | ||||
| -rw-r--r-- | sys/linux/prctl_ppc64le.const | 5 |
8 files changed, 105 insertions, 10 deletions
diff --git a/sys/linux/gen/386.go b/sys/linux/gen/386.go index ae2458179..e817d8c39 100644 --- a/sys/linux/gen/386.go +++ b/sys/linux/gen/386.go @@ -22952,9 +22952,36 @@ var syscalls_386 = []*Syscall{ {NR: 27, Name: "alarm", CallName: "alarm", Args: []Type{ &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "intptr", FldName: "seconds", TypeSize: 4}}}, }}, - {NR: 384, Name: "arch_prctl", CallName: "arch_prctl", Args: []Type{ - &FlagsType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "arch_prctl_code", FldName: "code", TypeSize: 4}}, Vals: []uint64{4099, 4097, 4100}}, - &PtrType{TypeCommon: TypeCommon{TypeName: "buffer", FldName: "addr", TypeSize: 4}, Type: &BufferType{TypeCommon: TypeCommon{IsVarlen: true}}}, + {NR: 384, Name: "arch_prctl$ARCH_GET_CPUID", CallName: "arch_prctl", Args: []Type{ + &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "code", TypeSize: 4}}, Val: 4113}, + }}, + {NR: 384, Name: "arch_prctl$ARCH_GET_FS", CallName: "arch_prctl", Args: []Type{ + &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "code", TypeSize: 4}}, Val: 4099}, + &PtrType{TypeCommon: TypeCommon{TypeName: "ptr", FldName: "arg", TypeSize: 4}, Type: &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int64", TypeSize: 8, ArgDir: 1}}}}, + }}, + {NR: 384, Name: "arch_prctl$ARCH_GET_GS", CallName: "arch_prctl", Args: []Type{ + &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "code", TypeSize: 4}}, Val: 4100}, + &PtrType{TypeCommon: TypeCommon{TypeName: "ptr", FldName: "arg", TypeSize: 4}, Type: &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int64", TypeSize: 8, ArgDir: 1}}}}, + }}, + {NR: 384, Name: "arch_prctl$ARCH_MAP_VDSO_32", CallName: "arch_prctl", Args: []Type{ + &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "code", TypeSize: 4}}, Val: 8194}, + &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "intptr", FldName: "arg", TypeSize: 4}}}, + }}, + {NR: 384, Name: "arch_prctl$ARCH_MAP_VDSO_64", CallName: "arch_prctl", Args: []Type{ + &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "code", TypeSize: 4}}, Val: 8195}, + &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "intptr", FldName: "arg", TypeSize: 4}}}, + }}, + {NR: 384, Name: "arch_prctl$ARCH_MAP_VDSO_X32", CallName: "arch_prctl", Args: []Type{ + &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "code", TypeSize: 4}}, Val: 8193}, + &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "intptr", FldName: "arg", TypeSize: 4}}}, + }}, + {NR: 384, Name: "arch_prctl$ARCH_SET_CPUID", CallName: "arch_prctl", Args: []Type{ + &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "code", TypeSize: 4}}, Val: 4114}, + &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "intptr", FldName: "arg", TypeSize: 4}}, Kind: 2, RangeEnd: 1}, + }}, + {NR: 384, Name: "arch_prctl$ARCH_SET_GS", CallName: "arch_prctl", Args: []Type{ + &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "code", TypeSize: 4}}, Val: 4097}, + &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int64", FldName: "arg", TypeSize: 8}}}, }}, {NR: 361, Name: "bind", CallName: "bind", Args: []Type{ &ResourceType{TypeCommon: TypeCommon{TypeName: "sock", FldName: "fd", TypeSize: 4}}, @@ -35458,8 +35485,13 @@ var consts_386 = []ConstValue{ {Name: "ALG_SET_IV", Value: 2}, {Name: "ALG_SET_KEY", Value: 1}, {Name: "ALG_SET_OP", Value: 3}, + {Name: "ARCH_GET_CPUID", Value: 4113}, {Name: "ARCH_GET_FS", Value: 4099}, {Name: "ARCH_GET_GS", Value: 4100}, + {Name: "ARCH_MAP_VDSO_32", Value: 8194}, + {Name: "ARCH_MAP_VDSO_64", Value: 8195}, + {Name: "ARCH_MAP_VDSO_X32", Value: 8193}, + {Name: "ARCH_SET_CPUID", Value: 4114}, {Name: "ARCH_SET_FS", Value: 4098}, {Name: "ARCH_SET_GS", Value: 4097}, {Name: "ARPHRD_6LOWPAN", Value: 825}, @@ -42271,4 +42303,4 @@ var consts_386 = []ConstValue{ {Name: "bpf_insn_load_imm_dw", Value: 24}, } -const revision_386 = "a5436331465262bc66482761d656cfabd67917d1" +const revision_386 = "5be615680ac09c332170d9f080a0be530e160a4f" diff --git a/sys/linux/gen/amd64.go b/sys/linux/gen/amd64.go index 2b64c1833..7b44df637 100644 --- a/sys/linux/gen/amd64.go +++ b/sys/linux/gen/amd64.go @@ -23411,9 +23411,36 @@ var syscalls_amd64 = []*Syscall{ {NR: 37, Name: "alarm", CallName: "alarm", Args: []Type{ &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "intptr", FldName: "seconds", TypeSize: 8}}}, }}, - {NR: 158, Name: "arch_prctl", CallName: "arch_prctl", Args: []Type{ - &FlagsType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "arch_prctl_code", FldName: "code", TypeSize: 8}}, Vals: []uint64{4099, 4097, 4100}}, - &PtrType{TypeCommon: TypeCommon{TypeName: "buffer", FldName: "addr", TypeSize: 8}, Type: &BufferType{TypeCommon: TypeCommon{IsVarlen: true}}}, + {NR: 158, Name: "arch_prctl$ARCH_GET_CPUID", CallName: "arch_prctl", Args: []Type{ + &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "code", TypeSize: 8}}, Val: 4113}, + }}, + {NR: 158, Name: "arch_prctl$ARCH_GET_FS", CallName: "arch_prctl", Args: []Type{ + &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "code", TypeSize: 8}}, Val: 4099}, + &PtrType{TypeCommon: TypeCommon{TypeName: "ptr", FldName: "arg", TypeSize: 8}, Type: &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int64", TypeSize: 8, ArgDir: 1}}}}, + }}, + {NR: 158, Name: "arch_prctl$ARCH_GET_GS", CallName: "arch_prctl", Args: []Type{ + &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "code", TypeSize: 8}}, Val: 4100}, + &PtrType{TypeCommon: TypeCommon{TypeName: "ptr", FldName: "arg", TypeSize: 8}, Type: &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int64", TypeSize: 8, ArgDir: 1}}}}, + }}, + {NR: 158, Name: "arch_prctl$ARCH_MAP_VDSO_32", CallName: "arch_prctl", Args: []Type{ + &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "code", TypeSize: 8}}, Val: 8194}, + &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "intptr", FldName: "arg", TypeSize: 8}}}, + }}, + {NR: 158, Name: "arch_prctl$ARCH_MAP_VDSO_64", CallName: "arch_prctl", Args: []Type{ + &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "code", TypeSize: 8}}, Val: 8195}, + &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "intptr", FldName: "arg", TypeSize: 8}}}, + }}, + {NR: 158, Name: "arch_prctl$ARCH_MAP_VDSO_X32", CallName: "arch_prctl", Args: []Type{ + &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "code", TypeSize: 8}}, Val: 8193}, + &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "intptr", FldName: "arg", TypeSize: 8}}}, + }}, + {NR: 158, Name: "arch_prctl$ARCH_SET_CPUID", CallName: "arch_prctl", Args: []Type{ + &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "code", TypeSize: 8}}, Val: 4114}, + &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "intptr", FldName: "arg", TypeSize: 8}}, Kind: 2, RangeEnd: 1}, + }}, + {NR: 158, Name: "arch_prctl$ARCH_SET_GS", CallName: "arch_prctl", Args: []Type{ + &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "code", TypeSize: 8}}, Val: 4097}, + &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int64", FldName: "arg", TypeSize: 8}}}, }}, {NR: 49, Name: "bind", CallName: "bind", Args: []Type{ &ResourceType{TypeCommon: TypeCommon{TypeName: "sock", FldName: "fd", TypeSize: 4}}, @@ -36136,8 +36163,13 @@ var consts_amd64 = []ConstValue{ {Name: "ALG_SET_IV", Value: 2}, {Name: "ALG_SET_KEY", Value: 1}, {Name: "ALG_SET_OP", Value: 3}, + {Name: "ARCH_GET_CPUID", Value: 4113}, {Name: "ARCH_GET_FS", Value: 4099}, {Name: "ARCH_GET_GS", Value: 4100}, + {Name: "ARCH_MAP_VDSO_32", Value: 8194}, + {Name: "ARCH_MAP_VDSO_64", Value: 8195}, + {Name: "ARCH_MAP_VDSO_X32", Value: 8193}, + {Name: "ARCH_SET_CPUID", Value: 4114}, {Name: "ARCH_SET_FS", Value: 4098}, {Name: "ARCH_SET_GS", Value: 4097}, {Name: "ARPHRD_6LOWPAN", Value: 825}, @@ -42974,4 +43006,4 @@ var consts_amd64 = []ConstValue{ {Name: "bpf_insn_load_imm_dw", Value: 24}, } -const revision_amd64 = "112acfabe4e7b1b36f0fbc502605c5180d3bee7f" +const revision_amd64 = "b7f4b3d01115f65eaf273efa57f7ae10400936dc" diff --git a/sys/linux/prctl.txt b/sys/linux/prctl.txt index 4333cd5d3..20147e427 100644 --- a/sys/linux/prctl.txt +++ b/sys/linux/prctl.txt @@ -113,7 +113,13 @@ prctl$PR_SET_SPECULATION_CTRL(option const[PR_SET_SPECULATION_CTRL], arg2 const[ pr_spec_mode = PR_SPEC_ENABLE, PR_SPEC_DISABLE, PR_SPEC_FORCE_DISABLE -arch_prctl(code flags[arch_prctl_code], addr buffer[in]) +arch_prctl$ARCH_GET_FS(code const[ARCH_GET_FS], arg ptr[out, int64]) +arch_prctl$ARCH_GET_GS(code const[ARCH_GET_GS], arg ptr[out, int64]) +arch_prctl$ARCH_SET_GS(code const[ARCH_SET_GS], arg int64) +arch_prctl$ARCH_GET_CPUID(code const[ARCH_GET_CPUID]) +arch_prctl$ARCH_SET_CPUID(code const[ARCH_SET_CPUID], arg boolptr) +arch_prctl$ARCH_MAP_VDSO_X32(code const[ARCH_MAP_VDSO_X32], arg intptr) +arch_prctl$ARCH_MAP_VDSO_32(code const[ARCH_MAP_VDSO_32], arg intptr) +arch_prctl$ARCH_MAP_VDSO_64(code const[ARCH_MAP_VDSO_64], arg intptr) -arch_prctl_code = ARCH_GET_FS, ARCH_SET_GS, ARCH_GET_GS _ = ARCH_SET_FS diff --git a/sys/linux/prctl_386.const b/sys/linux/prctl_386.const index c54083162..ea3d2e1e9 100644 --- a/sys/linux/prctl_386.const +++ b/sys/linux/prctl_386.const @@ -1,6 +1,11 @@ # AUTOGENERATED FILE +ARCH_GET_CPUID = 4113 ARCH_GET_FS = 4099 ARCH_GET_GS = 4100 +ARCH_MAP_VDSO_32 = 8194 +ARCH_MAP_VDSO_64 = 8195 +ARCH_MAP_VDSO_X32 = 8193 +ARCH_SET_CPUID = 4114 ARCH_SET_FS = 4098 ARCH_SET_GS = 4097 CAP_LAST_CAP = 37 diff --git a/sys/linux/prctl_amd64.const b/sys/linux/prctl_amd64.const index 3c10268e5..e0c1f3ad2 100644 --- a/sys/linux/prctl_amd64.const +++ b/sys/linux/prctl_amd64.const @@ -1,6 +1,11 @@ # AUTOGENERATED FILE +ARCH_GET_CPUID = 4113 ARCH_GET_FS = 4099 ARCH_GET_GS = 4100 +ARCH_MAP_VDSO_32 = 8194 +ARCH_MAP_VDSO_64 = 8195 +ARCH_MAP_VDSO_X32 = 8193 +ARCH_SET_CPUID = 4114 ARCH_SET_FS = 4098 ARCH_SET_GS = 4097 CAP_LAST_CAP = 37 diff --git a/sys/linux/prctl_arm.const b/sys/linux/prctl_arm.const index 79163e917..933fb9abe 100644 --- a/sys/linux/prctl_arm.const +++ b/sys/linux/prctl_arm.const @@ -1,6 +1,11 @@ # AUTOGENERATED FILE +# ARCH_GET_CPUID is not set # ARCH_GET_FS is not set # ARCH_GET_GS is not set +# ARCH_MAP_VDSO_32 is not set +# ARCH_MAP_VDSO_64 is not set +# ARCH_MAP_VDSO_X32 is not set +# ARCH_SET_CPUID is not set # ARCH_SET_FS is not set # ARCH_SET_GS is not set CAP_LAST_CAP = 37 diff --git a/sys/linux/prctl_arm64.const b/sys/linux/prctl_arm64.const index cdffee4de..ade4c7fcf 100644 --- a/sys/linux/prctl_arm64.const +++ b/sys/linux/prctl_arm64.const @@ -1,6 +1,11 @@ # AUTOGENERATED FILE +# ARCH_GET_CPUID is not set # ARCH_GET_FS is not set # ARCH_GET_GS is not set +# ARCH_MAP_VDSO_32 is not set +# ARCH_MAP_VDSO_64 is not set +# ARCH_MAP_VDSO_X32 is not set +# ARCH_SET_CPUID is not set # ARCH_SET_FS is not set # ARCH_SET_GS is not set CAP_LAST_CAP = 37 diff --git a/sys/linux/prctl_ppc64le.const b/sys/linux/prctl_ppc64le.const index a025bcf42..ba41c856e 100644 --- a/sys/linux/prctl_ppc64le.const +++ b/sys/linux/prctl_ppc64le.const @@ -1,6 +1,11 @@ # AUTOGENERATED FILE +# ARCH_GET_CPUID is not set # ARCH_GET_FS is not set # ARCH_GET_GS is not set +# ARCH_MAP_VDSO_32 is not set +# ARCH_MAP_VDSO_64 is not set +# ARCH_MAP_VDSO_X32 is not set +# ARCH_SET_CPUID is not set # ARCH_SET_FS is not set # ARCH_SET_GS is not set CAP_LAST_CAP = 37 |
