sys/linux: add ioctl_ns

This commit is contained in:
Dmitry Vyukov 2019-10-25 13:41:12 +02:00
parent 2d4fab5ed1
commit c401a48c99
13 changed files with 181 additions and 10 deletions

View File

@ -70,7 +70,7 @@
#if GOARCH_386
#define GOARCH "386"
#define SYZ_REVISION "52b64a820efb04fb8758fcde46cecf7b7aa4cb3a"
#define SYZ_REVISION "f8497be4858df68263de8a8392658799673de1ce"
#define SYZ_EXECUTOR_USES_FORK_SERVER 1
#define SYZ_EXECUTOR_USES_SHMEM 1
#define SYZ_PAGE_SIZE 4096
@ -80,7 +80,7 @@
#if GOARCH_amd64
#define GOARCH "amd64"
#define SYZ_REVISION "b2356dd475ed1e8aacb5c198a29892d4d7593151"
#define SYZ_REVISION "89f749ff4b65471ffe24c278a8d76a87b4e7a9ce"
#define SYZ_EXECUTOR_USES_FORK_SERVER 1
#define SYZ_EXECUTOR_USES_SHMEM 1
#define SYZ_PAGE_SIZE 4096
@ -90,7 +90,7 @@
#if GOARCH_arm
#define GOARCH "arm"
#define SYZ_REVISION "d32f45fd2561f6716f226b939a3432ab05bdca24"
#define SYZ_REVISION "c4d4d6b1fe5360da928205e08b8dfa6f5cc09e25"
#define SYZ_EXECUTOR_USES_FORK_SERVER 1
#define SYZ_EXECUTOR_USES_SHMEM 1
#define SYZ_PAGE_SIZE 4096
@ -100,7 +100,7 @@
#if GOARCH_arm64
#define GOARCH "arm64"
#define SYZ_REVISION "c5e23e1b54a104d7c401d6a206417fa5c966b63a"
#define SYZ_REVISION "6a03eb9a94f27effa9df05bafd73335bf86497a4"
#define SYZ_EXECUTOR_USES_FORK_SERVER 1
#define SYZ_EXECUTOR_USES_SHMEM 1
#define SYZ_PAGE_SIZE 4096
@ -110,7 +110,7 @@
#if GOARCH_ppc64le
#define GOARCH "ppc64le"
#define SYZ_REVISION "6d414566deca81beac737f27edb06df2f5f2a806"
#define SYZ_REVISION "86f79785ac857fa1ea459582613469dd1c17b686"
#define SYZ_EXECUTOR_USES_FORK_SERVER 1
#define SYZ_EXECUTOR_USES_SHMEM 1
#define SYZ_PAGE_SIZE 4096

View File

@ -2994,6 +2994,10 @@ const call_t syscalls[] = {
{"ioctl$NBD_SET_SIZE_BLOCKS", 54},
{"ioctl$NBD_SET_SOCK", 54},
{"ioctl$NBD_SET_TIMEOUT", 54},
{"ioctl$NS_GET_NSTYPE", 54},
{"ioctl$NS_GET_OWNER_UID", 54},
{"ioctl$NS_GET_PARENT", 54},
{"ioctl$NS_GET_USERNS", 54},
{"ioctl$PERF_EVENT_IOC_DISABLE", 54},
{"ioctl$PERF_EVENT_IOC_ENABLE", 54},
{"ioctl$PERF_EVENT_IOC_ID", 54},
@ -5809,6 +5813,10 @@ const call_t syscalls[] = {
{"ioctl$NBD_SET_SIZE_BLOCKS", 16},
{"ioctl$NBD_SET_SOCK", 16},
{"ioctl$NBD_SET_TIMEOUT", 16},
{"ioctl$NS_GET_NSTYPE", 16},
{"ioctl$NS_GET_OWNER_UID", 16},
{"ioctl$NS_GET_PARENT", 16},
{"ioctl$NS_GET_USERNS", 16},
{"ioctl$PERF_EVENT_IOC_DISABLE", 16},
{"ioctl$PERF_EVENT_IOC_ENABLE", 16},
{"ioctl$PERF_EVENT_IOC_ID", 16},
@ -8593,6 +8601,10 @@ const call_t syscalls[] = {
{"ioctl$NBD_SET_SIZE_BLOCKS", 54},
{"ioctl$NBD_SET_SOCK", 54},
{"ioctl$NBD_SET_TIMEOUT", 54},
{"ioctl$NS_GET_NSTYPE", 54},
{"ioctl$NS_GET_OWNER_UID", 54},
{"ioctl$NS_GET_PARENT", 54},
{"ioctl$NS_GET_USERNS", 54},
{"ioctl$PERF_EVENT_IOC_DISABLE", 54},
{"ioctl$PERF_EVENT_IOC_ENABLE", 54},
{"ioctl$PERF_EVENT_IOC_ID", 54},
@ -11355,6 +11367,10 @@ const call_t syscalls[] = {
{"ioctl$NBD_SET_SIZE_BLOCKS", 29},
{"ioctl$NBD_SET_SOCK", 29},
{"ioctl$NBD_SET_TIMEOUT", 29},
{"ioctl$NS_GET_NSTYPE", 29},
{"ioctl$NS_GET_OWNER_UID", 29},
{"ioctl$NS_GET_PARENT", 29},
{"ioctl$NS_GET_USERNS", 29},
{"ioctl$PERF_EVENT_IOC_DISABLE", 29},
{"ioctl$PERF_EVENT_IOC_ENABLE", 29},
{"ioctl$PERF_EVENT_IOC_ID", 29},
@ -14105,6 +14121,10 @@ const call_t syscalls[] = {
{"ioctl$NBD_SET_SIZE_BLOCKS", 54},
{"ioctl$NBD_SET_SOCK", 54},
{"ioctl$NBD_SET_TIMEOUT", 54},
{"ioctl$NS_GET_NSTYPE", 54},
{"ioctl$NS_GET_OWNER_UID", 54},
{"ioctl$NS_GET_PARENT", 54},
{"ioctl$NS_GET_USERNS", 54},
{"ioctl$PERF_EVENT_IOC_DISABLE", 54},
{"ioctl$PERF_EVENT_IOC_ENABLE", 54},
{"ioctl$PERF_EVENT_IOC_ID", 54},

View File

@ -36951,6 +36951,26 @@ var syscalls_386 = []*Syscall{
&ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "cmd", TypeSize: 4}}, Val: 43785},
&IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "intptr", FldName: "arg", TypeSize: 4}}},
}},
{NR: 54, Name: "ioctl$NS_GET_NSTYPE", CallName: "ioctl", Args: []Type{
&ResourceType{TypeCommon: TypeCommon{TypeName: "fd_namespace", FldName: "fd", TypeSize: 4}},
&ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "cmd", TypeSize: 4}}, Val: 46851},
&ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "arg", TypeSize: 4}}},
}},
{NR: 54, Name: "ioctl$NS_GET_OWNER_UID", CallName: "ioctl", Args: []Type{
&ResourceType{TypeCommon: TypeCommon{TypeName: "fd_namespace", FldName: "fd", TypeSize: 4}},
&ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "cmd", TypeSize: 4}}, Val: 46852},
&PtrType{TypeCommon: TypeCommon{TypeName: "ptr", FldName: "arg", TypeSize: 4}, Type: &ResourceType{TypeCommon: TypeCommon{TypeName: "uid", TypeSize: 4, ArgDir: 1}}},
}},
{NR: 54, Name: "ioctl$NS_GET_PARENT", CallName: "ioctl", Args: []Type{
&ResourceType{TypeCommon: TypeCommon{TypeName: "fd_namespace", FldName: "fd", TypeSize: 4}},
&ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "cmd", TypeSize: 4}}, Val: 46850},
&ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "arg", TypeSize: 4}}},
}, Ret: &ResourceType{TypeCommon: TypeCommon{TypeName: "fd_namespace", FldName: "ret", TypeSize: 4, ArgDir: 1}}},
{NR: 54, Name: "ioctl$NS_GET_USERNS", CallName: "ioctl", Args: []Type{
&ResourceType{TypeCommon: TypeCommon{TypeName: "fd_namespace", FldName: "fd", TypeSize: 4}},
&ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "cmd", TypeSize: 4}}, Val: 46849},
&ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "arg", TypeSize: 4}}},
}},
{NR: 54, Name: "ioctl$PERF_EVENT_IOC_DISABLE", CallName: "ioctl", Args: []Type{
&ResourceType{TypeCommon: TypeCommon{TypeName: "fd_perf", FldName: "fd", TypeSize: 4}},
&ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "cmd", TypeSize: 4}}, Val: 9217},
@ -50651,6 +50671,10 @@ var consts_386 = []ConstValue{
{Name: "NPMODE_ERROR", Value: 2},
{Name: "NPMODE_PASS"},
{Name: "NPMODE_QUEUE", Value: 3},
{Name: "NS_GET_NSTYPE", Value: 46851},
{Name: "NS_GET_OWNER_UID", Value: 46852},
{Name: "NS_GET_PARENT", Value: 46850},
{Name: "NS_GET_USERNS", Value: 46849},
{Name: "NTF_EXT_LEARNED", Value: 16},
{Name: "NTF_MASTER", Value: 4},
{Name: "NTF_OFFLOADED", Value: 32},
@ -55287,4 +55311,4 @@ var consts_386 = []ConstValue{
{Name: "bpf_insn_load_imm_dw", Value: 24},
}
const revision_386 = "52b64a820efb04fb8758fcde46cecf7b7aa4cb3a"
const revision_386 = "f8497be4858df68263de8a8392658799673de1ce"

View File

@ -37464,6 +37464,26 @@ var syscalls_amd64 = []*Syscall{
&ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "cmd", TypeSize: 8}}, Val: 43785},
&IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "intptr", FldName: "arg", TypeSize: 8}}},
}},
{NR: 16, Name: "ioctl$NS_GET_NSTYPE", CallName: "ioctl", Args: []Type{
&ResourceType{TypeCommon: TypeCommon{TypeName: "fd_namespace", FldName: "fd", TypeSize: 4}},
&ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "cmd", TypeSize: 8}}, Val: 46851},
&ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "arg", TypeSize: 8}}},
}},
{NR: 16, Name: "ioctl$NS_GET_OWNER_UID", CallName: "ioctl", Args: []Type{
&ResourceType{TypeCommon: TypeCommon{TypeName: "fd_namespace", FldName: "fd", TypeSize: 4}},
&ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "cmd", TypeSize: 8}}, Val: 46852},
&PtrType{TypeCommon: TypeCommon{TypeName: "ptr", FldName: "arg", TypeSize: 8}, Type: &ResourceType{TypeCommon: TypeCommon{TypeName: "uid", TypeSize: 4, ArgDir: 1}}},
}},
{NR: 16, Name: "ioctl$NS_GET_PARENT", CallName: "ioctl", Args: []Type{
&ResourceType{TypeCommon: TypeCommon{TypeName: "fd_namespace", FldName: "fd", TypeSize: 4}},
&ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "cmd", TypeSize: 8}}, Val: 46850},
&ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "arg", TypeSize: 8}}},
}, Ret: &ResourceType{TypeCommon: TypeCommon{TypeName: "fd_namespace", FldName: "ret", TypeSize: 4, ArgDir: 1}}},
{NR: 16, Name: "ioctl$NS_GET_USERNS", CallName: "ioctl", Args: []Type{
&ResourceType{TypeCommon: TypeCommon{TypeName: "fd_namespace", FldName: "fd", TypeSize: 4}},
&ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "cmd", TypeSize: 8}}, Val: 46849},
&ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "arg", TypeSize: 8}}},
}},
{NR: 16, Name: "ioctl$PERF_EVENT_IOC_DISABLE", CallName: "ioctl", Args: []Type{
&ResourceType{TypeCommon: TypeCommon{TypeName: "fd_perf", FldName: "fd", TypeSize: 4}},
&ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "cmd", TypeSize: 8}}, Val: 9217},
@ -51189,6 +51209,10 @@ var consts_amd64 = []ConstValue{
{Name: "NPMODE_ERROR", Value: 2},
{Name: "NPMODE_PASS"},
{Name: "NPMODE_QUEUE", Value: 3},
{Name: "NS_GET_NSTYPE", Value: 46851},
{Name: "NS_GET_OWNER_UID", Value: 46852},
{Name: "NS_GET_PARENT", Value: 46850},
{Name: "NS_GET_USERNS", Value: 46849},
{Name: "NTF_EXT_LEARNED", Value: 16},
{Name: "NTF_MASTER", Value: 4},
{Name: "NTF_OFFLOADED", Value: 32},
@ -55840,4 +55864,4 @@ var consts_amd64 = []ConstValue{
{Name: "bpf_insn_load_imm_dw", Value: 24},
}
const revision_amd64 = "b2356dd475ed1e8aacb5c198a29892d4d7593151"
const revision_amd64 = "89f749ff4b65471ffe24c278a8d76a87b4e7a9ce"

View File

@ -36640,6 +36640,26 @@ var syscalls_arm = []*Syscall{
&ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "cmd", TypeSize: 4}}, Val: 43785},
&IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "intptr", FldName: "arg", TypeSize: 4}}},
}},
{NR: 54, Name: "ioctl$NS_GET_NSTYPE", CallName: "ioctl", Args: []Type{
&ResourceType{TypeCommon: TypeCommon{TypeName: "fd_namespace", FldName: "fd", TypeSize: 4}},
&ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "cmd", TypeSize: 4}}, Val: 46851},
&ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "arg", TypeSize: 4}}},
}},
{NR: 54, Name: "ioctl$NS_GET_OWNER_UID", CallName: "ioctl", Args: []Type{
&ResourceType{TypeCommon: TypeCommon{TypeName: "fd_namespace", FldName: "fd", TypeSize: 4}},
&ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "cmd", TypeSize: 4}}, Val: 46852},
&PtrType{TypeCommon: TypeCommon{TypeName: "ptr", FldName: "arg", TypeSize: 4}, Type: &ResourceType{TypeCommon: TypeCommon{TypeName: "uid", TypeSize: 4, ArgDir: 1}}},
}},
{NR: 54, Name: "ioctl$NS_GET_PARENT", CallName: "ioctl", Args: []Type{
&ResourceType{TypeCommon: TypeCommon{TypeName: "fd_namespace", FldName: "fd", TypeSize: 4}},
&ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "cmd", TypeSize: 4}}, Val: 46850},
&ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "arg", TypeSize: 4}}},
}, Ret: &ResourceType{TypeCommon: TypeCommon{TypeName: "fd_namespace", FldName: "ret", TypeSize: 4, ArgDir: 1}}},
{NR: 54, Name: "ioctl$NS_GET_USERNS", CallName: "ioctl", Args: []Type{
&ResourceType{TypeCommon: TypeCommon{TypeName: "fd_namespace", FldName: "fd", TypeSize: 4}},
&ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "cmd", TypeSize: 4}}, Val: 46849},
&ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "arg", TypeSize: 4}}},
}},
{NR: 54, Name: "ioctl$PERF_EVENT_IOC_DISABLE", CallName: "ioctl", Args: []Type{
&ResourceType{TypeCommon: TypeCommon{TypeName: "fd_perf", FldName: "fd", TypeSize: 4}},
&ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "cmd", TypeSize: 4}}, Val: 9217},
@ -50240,6 +50260,10 @@ var consts_arm = []ConstValue{
{Name: "NPMODE_ERROR", Value: 2},
{Name: "NPMODE_PASS"},
{Name: "NPMODE_QUEUE", Value: 3},
{Name: "NS_GET_NSTYPE", Value: 46851},
{Name: "NS_GET_OWNER_UID", Value: 46852},
{Name: "NS_GET_PARENT", Value: 46850},
{Name: "NS_GET_USERNS", Value: 46849},
{Name: "NTF_EXT_LEARNED", Value: 16},
{Name: "NTF_MASTER", Value: 4},
{Name: "NTF_OFFLOADED", Value: 32},
@ -54864,4 +54888,4 @@ var consts_arm = []ConstValue{
{Name: "bpf_insn_load_imm_dw", Value: 24},
}
const revision_arm = "d32f45fd2561f6716f226b939a3432ab05bdca24"
const revision_arm = "c4d4d6b1fe5360da928205e08b8dfa6f5cc09e25"

View File

@ -37061,6 +37061,26 @@ var syscalls_arm64 = []*Syscall{
&ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "cmd", TypeSize: 8}}, Val: 43785},
&IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "intptr", FldName: "arg", TypeSize: 8}}},
}},
{NR: 29, Name: "ioctl$NS_GET_NSTYPE", CallName: "ioctl", Args: []Type{
&ResourceType{TypeCommon: TypeCommon{TypeName: "fd_namespace", FldName: "fd", TypeSize: 4}},
&ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "cmd", TypeSize: 8}}, Val: 46851},
&ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "arg", TypeSize: 8}}},
}},
{NR: 29, Name: "ioctl$NS_GET_OWNER_UID", CallName: "ioctl", Args: []Type{
&ResourceType{TypeCommon: TypeCommon{TypeName: "fd_namespace", FldName: "fd", TypeSize: 4}},
&ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "cmd", TypeSize: 8}}, Val: 46852},
&PtrType{TypeCommon: TypeCommon{TypeName: "ptr", FldName: "arg", TypeSize: 8}, Type: &ResourceType{TypeCommon: TypeCommon{TypeName: "uid", TypeSize: 4, ArgDir: 1}}},
}},
{NR: 29, Name: "ioctl$NS_GET_PARENT", CallName: "ioctl", Args: []Type{
&ResourceType{TypeCommon: TypeCommon{TypeName: "fd_namespace", FldName: "fd", TypeSize: 4}},
&ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "cmd", TypeSize: 8}}, Val: 46850},
&ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "arg", TypeSize: 8}}},
}, Ret: &ResourceType{TypeCommon: TypeCommon{TypeName: "fd_namespace", FldName: "ret", TypeSize: 4, ArgDir: 1}}},
{NR: 29, Name: "ioctl$NS_GET_USERNS", CallName: "ioctl", Args: []Type{
&ResourceType{TypeCommon: TypeCommon{TypeName: "fd_namespace", FldName: "fd", TypeSize: 4}},
&ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "cmd", TypeSize: 8}}, Val: 46849},
&ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "arg", TypeSize: 8}}},
}},
{NR: 29, Name: "ioctl$PERF_EVENT_IOC_DISABLE", CallName: "ioctl", Args: []Type{
&ResourceType{TypeCommon: TypeCommon{TypeName: "fd_perf", FldName: "fd", TypeSize: 4}},
&ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "cmd", TypeSize: 8}}, Val: 9217},
@ -50594,6 +50614,10 @@ var consts_arm64 = []ConstValue{
{Name: "NPMODE_ERROR", Value: 2},
{Name: "NPMODE_PASS"},
{Name: "NPMODE_QUEUE", Value: 3},
{Name: "NS_GET_NSTYPE", Value: 46851},
{Name: "NS_GET_OWNER_UID", Value: 46852},
{Name: "NS_GET_PARENT", Value: 46850},
{Name: "NS_GET_USERNS", Value: 46849},
{Name: "NTF_EXT_LEARNED", Value: 16},
{Name: "NTF_MASTER", Value: 4},
{Name: "NTF_OFFLOADED", Value: 32},
@ -55192,4 +55216,4 @@ var consts_arm64 = []ConstValue{
{Name: "bpf_insn_load_imm_dw", Value: 24},
}
const revision_arm64 = "c5e23e1b54a104d7c401d6a206417fa5c966b63a"
const revision_arm64 = "6a03eb9a94f27effa9df05bafd73335bf86497a4"

View File

@ -36982,6 +36982,26 @@ var syscalls_ppc64le = []*Syscall{
&ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "cmd", TypeSize: 8}}, Val: 536914697},
&IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "intptr", FldName: "arg", TypeSize: 8}}},
}},
{NR: 54, Name: "ioctl$NS_GET_NSTYPE", CallName: "ioctl", Args: []Type{
&ResourceType{TypeCommon: TypeCommon{TypeName: "fd_namespace", FldName: "fd", TypeSize: 4}},
&ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "cmd", TypeSize: 8}}, Val: 536917763},
&ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "arg", TypeSize: 8}}},
}},
{NR: 54, Name: "ioctl$NS_GET_OWNER_UID", CallName: "ioctl", Args: []Type{
&ResourceType{TypeCommon: TypeCommon{TypeName: "fd_namespace", FldName: "fd", TypeSize: 4}},
&ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "cmd", TypeSize: 8}}, Val: 536917764},
&PtrType{TypeCommon: TypeCommon{TypeName: "ptr", FldName: "arg", TypeSize: 8}, Type: &ResourceType{TypeCommon: TypeCommon{TypeName: "uid", TypeSize: 4, ArgDir: 1}}},
}},
{NR: 54, Name: "ioctl$NS_GET_PARENT", CallName: "ioctl", Args: []Type{
&ResourceType{TypeCommon: TypeCommon{TypeName: "fd_namespace", FldName: "fd", TypeSize: 4}},
&ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "cmd", TypeSize: 8}}, Val: 536917762},
&ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "arg", TypeSize: 8}}},
}, Ret: &ResourceType{TypeCommon: TypeCommon{TypeName: "fd_namespace", FldName: "ret", TypeSize: 4, ArgDir: 1}}},
{NR: 54, Name: "ioctl$NS_GET_USERNS", CallName: "ioctl", Args: []Type{
&ResourceType{TypeCommon: TypeCommon{TypeName: "fd_namespace", FldName: "fd", TypeSize: 4}},
&ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "cmd", TypeSize: 8}}, Val: 536917761},
&ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "arg", TypeSize: 8}}},
}},
{NR: 54, Name: "ioctl$PERF_EVENT_IOC_DISABLE", CallName: "ioctl", Args: []Type{
&ResourceType{TypeCommon: TypeCommon{TypeName: "fd_perf", FldName: "fd", TypeSize: 4}},
&ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "cmd", TypeSize: 8}}, Val: 536880129},
@ -50575,6 +50595,10 @@ var consts_ppc64le = []ConstValue{
{Name: "NPMODE_ERROR", Value: 2},
{Name: "NPMODE_PASS"},
{Name: "NPMODE_QUEUE", Value: 3},
{Name: "NS_GET_NSTYPE", Value: 536917763},
{Name: "NS_GET_OWNER_UID", Value: 536917764},
{Name: "NS_GET_PARENT", Value: 536917762},
{Name: "NS_GET_USERNS", Value: 536917761},
{Name: "NTF_EXT_LEARNED", Value: 16},
{Name: "NTF_MASTER", Value: 4},
{Name: "NTF_OFFLOADED", Value: 32},
@ -55157,4 +55181,4 @@ var consts_ppc64le = []ConstValue{
{Name: "bpf_insn_load_imm_dw", Value: 24},
}
const revision_ppc64le = "6d414566deca81beac737f27edb06df2f5f2a806"
const revision_ppc64le = "86f79785ac857fa1ea459582613469dd1c17b686"

View File

@ -2,6 +2,7 @@
# Use of this source code is governed by Apache 2 LICENSE that can be found in the LICENSE file.
include <uapi/linux/sched.h>
include <uapi/linux/nsfs.h>
resource fd_namespace[fd]
@ -10,6 +11,11 @@ setns(fd fd_namespace, type flags[ns_type])
syz_open_procfs$namespace(pid pid, file ptr[in, string[procfs_namespace_file]]) fd_namespace
ioctl$NS_GET_USERNS(fd fd_namespace, cmd const[NS_GET_USERNS], arg const[0])
ioctl$NS_GET_PARENT(fd fd_namespace, cmd const[NS_GET_PARENT], arg const[0]) fd_namespace
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"
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

View File

@ -12,5 +12,10 @@ CLONE_SIGHAND = 2048
CLONE_SYSVSEM = 262144
CLONE_THREAD = 65536
CLONE_VM = 256
NS_GET_NSTYPE = 46851
NS_GET_OWNER_UID = 46852
NS_GET_PARENT = 46850
NS_GET_USERNS = 46849
__NR_ioctl = 54
__NR_setns = 346
__NR_unshare = 310

View File

@ -12,5 +12,10 @@ CLONE_SIGHAND = 2048
CLONE_SYSVSEM = 262144
CLONE_THREAD = 65536
CLONE_VM = 256
NS_GET_NSTYPE = 46851
NS_GET_OWNER_UID = 46852
NS_GET_PARENT = 46850
NS_GET_USERNS = 46849
__NR_ioctl = 16
__NR_setns = 308
__NR_unshare = 272

View File

@ -12,5 +12,10 @@ CLONE_SIGHAND = 2048
CLONE_SYSVSEM = 262144
CLONE_THREAD = 65536
CLONE_VM = 256
NS_GET_NSTYPE = 46851
NS_GET_OWNER_UID = 46852
NS_GET_PARENT = 46850
NS_GET_USERNS = 46849
__NR_ioctl = 54
__NR_setns = 375
__NR_unshare = 337

View File

@ -12,5 +12,10 @@ CLONE_SIGHAND = 2048
CLONE_SYSVSEM = 262144
CLONE_THREAD = 65536
CLONE_VM = 256
NS_GET_NSTYPE = 46851
NS_GET_OWNER_UID = 46852
NS_GET_PARENT = 46850
NS_GET_USERNS = 46849
__NR_ioctl = 29
__NR_setns = 268
__NR_unshare = 97

View File

@ -12,5 +12,10 @@ CLONE_SIGHAND = 2048
CLONE_SYSVSEM = 262144
CLONE_THREAD = 65536
CLONE_VM = 256
NS_GET_NSTYPE = 536917763
NS_GET_OWNER_UID = 536917764
NS_GET_PARENT = 536917762
NS_GET_USERNS = 536917761
__NR_ioctl = 54
__NR_setns = 350
__NR_unshare = 282