aboutsummaryrefslogtreecommitdiffstats
path: root/sys/linux/amd64.go
diff options
context:
space:
mode:
Diffstat (limited to 'sys/linux/amd64.go')
-rw-r--r--sys/linux/amd64.go161
1 files changed, 160 insertions, 1 deletions
diff --git a/sys/linux/amd64.go b/sys/linux/amd64.go
index c0db6d5c4..f249b1909 100644
--- a/sys/linux/amd64.go
+++ b/sys/linux/amd64.go
@@ -520,6 +520,38 @@ var structDescs_amd64 = []*KeyedStruct{
&ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "read_consumed", TypeSize: 8}}},
&PtrType{TypeCommon: TypeCommon{TypeName: "ptr64", FldName: "read_buffer", TypeSize: 8}, Type: &BufferType{TypeCommon: TypeCommon{TypeName: "array", IsVarlen: true}}},
}}},
+ {Key: StructKey{Name: "binfmt_aout"}, Desc: &StructDesc{TypeCommon: TypeCommon{TypeName: "binfmt_aout", IsVarlen: true}, Fields: []Type{
+ &StructType{Key: StructKey{Name: "exec"}, FldName: "exec"},
+ &BufferType{TypeCommon: TypeCommon{TypeName: "array", FldName: "data", IsVarlen: true}},
+ &ArrayType{TypeCommon: TypeCommon{TypeName: "array", FldName: "pad", IsVarlen: true}, Type: &ArrayType{TypeCommon: TypeCommon{TypeName: "array", TypeSize: 256}, Type: &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", TypeSize: 8}}}, Kind: 1, RangeBegin: 32, RangeEnd: 32}, Kind: 1, RangeEnd: 10},
+ }}},
+ {Key: StructKey{Name: "binfmt_elf[int32, elf32_phdr, ELF32_PHDR_SIZE]"}, Desc: &StructDesc{TypeCommon: TypeCommon{TypeName: "binfmt_elf[int32, elf32_phdr, ELF32_PHDR_SIZE]", IsVarlen: true}, Fields: []Type{
+ &StructType{Key: StructKey{Name: "elf_hdr[int32, ELF32_PHDR_SIZE]"}, FldName: "hdr"},
+ &ArrayType{TypeCommon: TypeCommon{TypeName: "array", FldName: "phdr", IsVarlen: true}, Type: &StructType{Key: StructKey{Name: "elf32_phdr"}}, Kind: 1, RangeBegin: 1, RangeEnd: 2},
+ &BufferType{TypeCommon: TypeCommon{TypeName: "array", FldName: "data", IsVarlen: true}},
+ &ArrayType{TypeCommon: TypeCommon{TypeName: "array", FldName: "pad", IsVarlen: true}, Type: &ArrayType{TypeCommon: TypeCommon{TypeName: "array", TypeSize: 256}, Type: &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", TypeSize: 8}}}, Kind: 1, RangeBegin: 32, RangeEnd: 32}, Kind: 1, RangeEnd: 10},
+ }}},
+ {Key: StructKey{Name: "binfmt_elf[int64, elf64_phdr, ELF64_PHDR_SIZE]"}, Desc: &StructDesc{TypeCommon: TypeCommon{TypeName: "binfmt_elf[int64, elf64_phdr, ELF64_PHDR_SIZE]", IsVarlen: true}, Fields: []Type{
+ &StructType{Key: StructKey{Name: "elf_hdr[int64, ELF64_PHDR_SIZE]"}, FldName: "hdr"},
+ &ArrayType{TypeCommon: TypeCommon{TypeName: "array", FldName: "phdr", IsVarlen: true}, Type: &StructType{Key: StructKey{Name: "elf64_phdr"}}, Kind: 1, RangeBegin: 1, RangeEnd: 2},
+ &BufferType{TypeCommon: TypeCommon{TypeName: "array", FldName: "data", IsVarlen: true}},
+ &ArrayType{TypeCommon: TypeCommon{TypeName: "array", FldName: "pad", IsVarlen: true}, Type: &ArrayType{TypeCommon: TypeCommon{TypeName: "array", TypeSize: 256}, Type: &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", TypeSize: 8}}}, Kind: 1, RangeBegin: 32, RangeEnd: 32}, Kind: 1, RangeEnd: 10},
+ }}},
+ {Key: StructKey{Name: "binfmt_misc"}, Desc: &StructDesc{TypeCommon: TypeCommon{TypeName: "binfmt_misc", IsVarlen: true}, Fields: []Type{
+ &BufferType{TypeCommon: TypeCommon{TypeName: "stringnoz", FldName: "hdr", TypeSize: 4}, Kind: 2, SubKind: "binfmt_misc_headers", Values: []string{"syz0", "syz1"}, NoZ: true},
+ &BufferType{TypeCommon: TypeCommon{TypeName: "array", FldName: "data", IsVarlen: true}},
+ }}},
+ {Key: StructKey{Name: "binfmt_script"}, Desc: &StructDesc{TypeCommon: TypeCommon{TypeName: "binfmt_script", IsVarlen: true}, Fields: []Type{
+ &BufferType{TypeCommon: TypeCommon{TypeName: "stringnoz", FldName: "hdr", TypeSize: 3}, Kind: 2, Values: []string{"#! "}, NoZ: true},
+ &BufferType{TypeCommon: TypeCommon{TypeName: "filename", FldName: "bin", IsVarlen: true}, Kind: 3, NoZ: true},
+ &ArrayType{TypeCommon: TypeCommon{TypeName: "array", FldName: "args", IsVarlen: true}, Type: &StructType{Key: StructKey{Name: "binfmt_script_arg"}}},
+ &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "nl", TypeSize: 1}}, Val: 10},
+ &BufferType{TypeCommon: TypeCommon{TypeName: "array", FldName: "data", IsVarlen: true}},
+ }}},
+ {Key: StructKey{Name: "binfmt_script_arg"}, Desc: &StructDesc{TypeCommon: TypeCommon{TypeName: "binfmt_script_arg", IsVarlen: true}, Fields: []Type{
+ &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "sp", TypeSize: 1}}, Val: 32},
+ &BufferType{TypeCommon: TypeCommon{TypeName: "stringnoz", FldName: "arg", IsVarlen: true}, Kind: 2, NoZ: true},
+ }}},
{Key: StructKey{Name: "bnep_connadd_req"}, Desc: &StructDesc{TypeCommon: TypeCommon{TypeName: "bnep_connadd_req", IsVarlen: true}, Fields: []Type{
&ResourceType{TypeCommon: TypeCommon{TypeName: "sock", FldName: "sock", TypeSize: 4}},
&IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int32", FldName: "flags", TypeSize: 4}}},
@@ -1997,6 +2029,75 @@ var structDescs_amd64 = []*KeyedStruct{
&FlagsType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "ebt_vlan_flags", FldName: "bitmask", TypeSize: 1}}, Vals: []uint64{1, 2, 4}},
&FlagsType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "ebt_vlan_flags", FldName: "invflags", TypeSize: 1}}, Vals: []uint64{1, 2, 4}},
}}},
+ {Key: StructKey{Name: "elf32_phdr"}, Desc: &StructDesc{TypeCommon: TypeCommon{TypeName: "elf32_phdr", TypeSize: 32}, Fields: []Type{
+ &FlagsType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "elf_ptypes", FldName: "p_type", TypeSize: 4}}, Vals: []uint64{1, 2, 3, 4, 5, 6, 7, 1610612736, 1879048192, 1685382481}},
+ &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int32", FldName: "p_offset", TypeSize: 4}}},
+ &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int32", FldName: "p_vaddr", TypeSize: 4}}},
+ &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int32", FldName: "p_paddr", TypeSize: 4}}},
+ &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int32", FldName: "p_filesz", TypeSize: 4}}},
+ &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int32", FldName: "p_memsz", TypeSize: 4}}},
+ &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int32", FldName: "p_flags", TypeSize: 4}}},
+ &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int32", FldName: "p_align", TypeSize: 4}}},
+ }}},
+ {Key: StructKey{Name: "elf64_phdr"}, Desc: &StructDesc{TypeCommon: TypeCommon{TypeName: "elf64_phdr", TypeSize: 56}, Fields: []Type{
+ &FlagsType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "elf_ptypes", FldName: "p_type", TypeSize: 4}}, Vals: []uint64{1, 2, 3, 4, 5, 6, 7, 1610612736, 1879048192, 1685382481}},
+ &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int32", FldName: "p_flags", TypeSize: 4}}},
+ &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int64", FldName: "p_offset", TypeSize: 8}}},
+ &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int64", FldName: "p_vaddr", TypeSize: 8}}},
+ &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int64", FldName: "p_paddr", TypeSize: 8}}},
+ &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int64", FldName: "p_filesz", TypeSize: 8}}},
+ &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int64", FldName: "p_memsz", TypeSize: 8}}},
+ &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int64", FldName: "p_align", TypeSize: 8}}},
+ }}},
+ {Key: StructKey{Name: "elf_hdr[int32, ELF32_PHDR_SIZE]"}, Desc: &StructDesc{TypeCommon: TypeCommon{TypeName: "elf_hdr[int32, ELF32_PHDR_SIZE]", TypeSize: 56}, Fields: []Type{
+ &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "e_ident0", TypeSize: 1}}, Val: 127},
+ &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "e_ident1", TypeSize: 1}}, Val: 69},
+ &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "e_ident2", TypeSize: 1}}, Val: 76},
+ &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "e_ident3", TypeSize: 1}}, Val: 70},
+ &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int8", FldName: "e_ident_class", TypeSize: 1}}},
+ &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int8", FldName: "e_ident_data", TypeSize: 1}}},
+ &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int8", FldName: "e_ident_ver", TypeSize: 1}}},
+ &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int8", FldName: "e_ident_osabi", TypeSize: 1}}},
+ &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int64", FldName: "e_ident_pad", TypeSize: 8}}},
+ &FlagsType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "elf_types", FldName: "e_type", TypeSize: 2}}, Vals: []uint64{2, 3}},
+ &FlagsType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "elf_machines", FldName: "e_machine", TypeSize: 2}}, Vals: []uint64{3, 6, 62}},
+ &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int32", FldName: "e_version", TypeSize: 4}}},
+ &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int32", FldName: "e_entry", TypeSize: 4}}, Kind: 2, RangeEnd: 1000},
+ &LenType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "bytesize", FldName: "e_phoff", TypeSize: 4}}, BitSize: 8, Buf: "parent"},
+ &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int32", FldName: "e_shoff", TypeSize: 4}}, Kind: 2, RangeEnd: 1000},
+ &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int32", FldName: "e_flags", TypeSize: 4}}},
+ &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int16", FldName: "e_ehsize", TypeSize: 2}}},
+ &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "e_phentsize", TypeSize: 2}}, Val: 32},
+ &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int16", FldName: "e_phnum", TypeSize: 2}}, Kind: 2, RangeBegin: 1, RangeEnd: 2},
+ &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int16", FldName: "e_shentsize", TypeSize: 2}}},
+ &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int16", FldName: "e_shnum", TypeSize: 2}}},
+ &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int16", FldName: "e_shstrndx", TypeSize: 2}}},
+ &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "pad", TypeSize: 4}}, IsPad: true},
+ }}},
+ {Key: StructKey{Name: "elf_hdr[int64, ELF64_PHDR_SIZE]"}, Desc: &StructDesc{TypeCommon: TypeCommon{TypeName: "elf_hdr[int64, ELF64_PHDR_SIZE]", TypeSize: 64}, Fields: []Type{
+ &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "e_ident0", TypeSize: 1}}, Val: 127},
+ &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "e_ident1", TypeSize: 1}}, Val: 69},
+ &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "e_ident2", TypeSize: 1}}, Val: 76},
+ &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "e_ident3", TypeSize: 1}}, Val: 70},
+ &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int8", FldName: "e_ident_class", TypeSize: 1}}},
+ &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int8", FldName: "e_ident_data", TypeSize: 1}}},
+ &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int8", FldName: "e_ident_ver", TypeSize: 1}}},
+ &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int8", FldName: "e_ident_osabi", TypeSize: 1}}},
+ &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int64", FldName: "e_ident_pad", TypeSize: 8}}},
+ &FlagsType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "elf_types", FldName: "e_type", TypeSize: 2}}, Vals: []uint64{2, 3}},
+ &FlagsType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "elf_machines", FldName: "e_machine", TypeSize: 2}}, Vals: []uint64{3, 6, 62}},
+ &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int32", FldName: "e_version", TypeSize: 4}}},
+ &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int64", FldName: "e_entry", TypeSize: 8}}, Kind: 2, RangeEnd: 1000},
+ &LenType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "bytesize", FldName: "e_phoff", TypeSize: 8}}, BitSize: 8, Buf: "parent"},
+ &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int64", FldName: "e_shoff", TypeSize: 8}}, Kind: 2, RangeEnd: 1000},
+ &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int32", FldName: "e_flags", TypeSize: 4}}},
+ &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int16", FldName: "e_ehsize", TypeSize: 2}}},
+ &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "e_phentsize", TypeSize: 2}}, Val: 56},
+ &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int16", FldName: "e_phnum", TypeSize: 2}}, Kind: 2, RangeBegin: 1, RangeEnd: 2},
+ &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int16", FldName: "e_shentsize", TypeSize: 2}}},
+ &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int16", FldName: "e_shnum", TypeSize: 2}}},
+ &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int16", FldName: "e_shstrndx", TypeSize: 2}}},
+ }}},
{Key: StructKey{Name: "epoll_event"}, Desc: &StructDesc{TypeCommon: TypeCommon{TypeName: "epoll_event", TypeSize: 12}, Fields: []Type{
&FlagsType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "epoll_ev", FldName: "ev", TypeSize: 4}}, Vals: []uint64{1, 4, 8192, 2, 8, 16, 2147483648, 1073741824, 268435456, 536870912}},
&ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "data", TypeSize: 8}}},
@@ -2491,6 +2592,18 @@ var structDescs_amd64 = []*KeyedStruct{
&BufferType{TypeCommon: TypeCommon{TypeName: "array", FldName: "sopass", TypeSize: 6, ArgDir: 2}, Kind: 1, RangeBegin: 6, RangeEnd: 6},
&ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "pad", TypeSize: 2}}, IsPad: true},
}}},
+ {Key: StructKey{Name: "exec"}, Desc: &StructDesc{TypeCommon: TypeCommon{TypeName: "exec", TypeSize: 32}, Fields: []Type{
+ &FlagsType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "aouthdr_magics", FldName: "magic", TypeSize: 2}}, Vals: []uint64{263, 264, 267, 204}},
+ &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int8", FldName: "machtype", TypeSize: 1}}},
+ &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int8", FldName: "flags", TypeSize: 1}}},
+ &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int32", FldName: "a_text", TypeSize: 4}}, Kind: 2, RangeEnd: 1000},
+ &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int32", FldName: "a_data", TypeSize: 4}}, Kind: 2, RangeEnd: 1000},
+ &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int32", FldName: "a_bss", TypeSize: 4}}},
+ &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int32", FldName: "a_syms", TypeSize: 4}}, Kind: 2, RangeEnd: 1000},
+ &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int32", FldName: "a_entry", TypeSize: 4}}},
+ &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "a_trsize", TypeSize: 4}}},
+ &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "a_drsize", TypeSize: 4}}},
+ }}},
{Key: StructKey{Name: "ext4_options"}, Desc: &StructDesc{TypeCommon: TypeCommon{TypeName: "ext4_options", IsVarlen: true}, Fields: []Type{
&BufferType{TypeCommon: TypeCommon{TypeName: "stringnoz", FldName: "bsddf", TypeSize: 5}, Kind: 2, Values: []string{"bsddf"}, NoZ: true},
&BufferType{TypeCommon: TypeCommon{TypeName: "stringnoz", FldName: "minixdf", TypeSize: 7}, Kind: 2, Values: []string{"minixdf"}, NoZ: true},
@@ -24019,6 +24132,31 @@ var syscalls_amd64 = []*Syscall{
&PtrType{TypeCommon: TypeCommon{TypeName: "buffer", FldName: "buf", TypeSize: 8}, Type: &BufferType{TypeCommon: TypeCommon{IsVarlen: true}}},
&LenType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "len", FldName: "count", TypeSize: 8}}, Buf: "buf"},
}},
+ {NR: 1, Name: "write$binfmt_aout", CallName: "write", Args: []Type{
+ &ResourceType{TypeCommon: TypeCommon{TypeName: "fd", FldName: "fd", TypeSize: 4}},
+ &PtrType{TypeCommon: TypeCommon{TypeName: "ptr", FldName: "data", TypeSize: 8}, Type: &StructType{Key: StructKey{Name: "binfmt_aout"}}},
+ &LenType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "bytesize", FldName: "len", TypeSize: 8}}, BitSize: 8, Buf: "data"},
+ }},
+ {NR: 1, Name: "write$binfmt_elf32", CallName: "write", Args: []Type{
+ &ResourceType{TypeCommon: TypeCommon{TypeName: "fd", FldName: "fd", TypeSize: 4}},
+ &PtrType{TypeCommon: TypeCommon{TypeName: "ptr", FldName: "data", TypeSize: 8}, Type: &StructType{Key: StructKey{Name: "binfmt_elf[int32, elf32_phdr, ELF32_PHDR_SIZE]"}}},
+ &LenType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "bytesize", FldName: "len", TypeSize: 8}}, BitSize: 8, Buf: "data"},
+ }},
+ {NR: 1, Name: "write$binfmt_elf64", CallName: "write", Args: []Type{
+ &ResourceType{TypeCommon: TypeCommon{TypeName: "fd", FldName: "fd", TypeSize: 4}},
+ &PtrType{TypeCommon: TypeCommon{TypeName: "ptr", FldName: "data", TypeSize: 8}, Type: &StructType{Key: StructKey{Name: "binfmt_elf[int64, elf64_phdr, ELF64_PHDR_SIZE]"}}},
+ &LenType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "bytesize", FldName: "len", TypeSize: 8}}, BitSize: 8, Buf: "data"},
+ }},
+ {NR: 1, Name: "write$binfmt_misc", CallName: "write", Args: []Type{
+ &ResourceType{TypeCommon: TypeCommon{TypeName: "fd", FldName: "fd", TypeSize: 4}},
+ &PtrType{TypeCommon: TypeCommon{TypeName: "ptr", FldName: "data", TypeSize: 8}, Type: &StructType{Key: StructKey{Name: "binfmt_misc"}}},
+ &LenType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "bytesize", FldName: "len", TypeSize: 8}}, BitSize: 8, Buf: "data"},
+ }},
+ {NR: 1, Name: "write$binfmt_script", CallName: "write", Args: []Type{
+ &ResourceType{TypeCommon: TypeCommon{TypeName: "fd", FldName: "fd", TypeSize: 4}},
+ &PtrType{TypeCommon: TypeCommon{TypeName: "ptr", FldName: "data", TypeSize: 8}, Type: &StructType{Key: StructKey{Name: "binfmt_script"}}},
+ &LenType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "bytesize", FldName: "len", TypeSize: 8}}, BitSize: 8, Buf: "data"},
+ }},
{NR: 1, Name: "write$cgroup_int", CallName: "write", Args: []Type{
&ResourceType{TypeCommon: TypeCommon{TypeName: "fd_cgroup_int", FldName: "fd", TypeSize: 4}},
&PtrType{TypeCommon: TypeCommon{TypeName: "ptr", FldName: "buf", TypeSize: 8}, Type: &StructType{Key: StructKey{Name: "cgroup_int"}}},
@@ -24742,6 +24880,11 @@ var consts_amd64 = []ConstValue{
{Name: "EFD_CLOEXEC", Value: 524288},
{Name: "EFD_NONBLOCK", Value: 2048},
{Name: "EFD_SEMAPHORE", Value: 1},
+ {Name: "ELF32_PHDR_SIZE", Value: 32},
+ {Name: "ELF64_PHDR_SIZE", Value: 56},
+ {Name: "EM_386", Value: 3},
+ {Name: "EM_486", Value: 6},
+ {Name: "EM_X86_64", Value: 62},
{Name: "EPOLLET", Value: 2147483648},
{Name: "EPOLLEXCLUSIVE", Value: 268435456},
{Name: "EPOLLONESHOT", Value: 1073741824},
@@ -24925,6 +25068,8 @@ var consts_amd64 = []ConstValue{
{Name: "ETH_P_X25", Value: 2053},
{Name: "ETH_P_XDSA", Value: 248},
{Name: "ETH_RX_NFC_IP4", Value: 1},
+ {Name: "ET_DYN", Value: 3},
+ {Name: "ET_EXEC", Value: 2},
{Name: "EVIOCGABS0", Value: 2149074240},
{Name: "EVIOCGABS20", Value: 2149074272},
{Name: "EVIOCGABS2F", Value: 2149074287},
@@ -26474,6 +26619,7 @@ var consts_amd64 = []ConstValue{
{Name: "NLM_F_REPLACE", Value: 256},
{Name: "NLM_F_REQUEST", Value: 1},
{Name: "NLM_F_ROOT", Value: 256},
+ {Name: "NMAGIC", Value: 264},
{Name: "NO_CLIENT"},
{Name: "NTF_EXT_LEARNED", Value: 16},
{Name: "NTF_MASTER", Value: 4},
@@ -26499,6 +26645,7 @@ var consts_amd64 = []ConstValue{
{Name: "NUD_PROBE", Value: 16},
{Name: "NUD_REACHABLE", Value: 2},
{Name: "NUD_STALE", Value: 4},
+ {Name: "OMAGIC", Value: 263},
{Name: "O_APPEND", Value: 1024},
{Name: "O_CLOEXEC", Value: 524288},
{Name: "O_CREAT", Value: 64},
@@ -26781,12 +26928,23 @@ var consts_amd64 = []ConstValue{
{Name: "PTRACE_SYSEMU", Value: 31},
{Name: "PTRACE_SYSEMU_SINGLESTEP", Value: 32},
{Name: "PTRACE_TRACEME"},
+ {Name: "PT_DYNAMIC", Value: 2},
+ {Name: "PT_GNU_STACK", Value: 1685382481},
+ {Name: "PT_INTERP", Value: 3},
+ {Name: "PT_LOAD", Value: 1},
+ {Name: "PT_LOOS", Value: 1610612736},
+ {Name: "PT_LOPROC", Value: 1879048192},
+ {Name: "PT_NOTE", Value: 4},
+ {Name: "PT_PHDR", Value: 6},
+ {Name: "PT_SHLIB", Value: 5},
+ {Name: "PT_TLS", Value: 7},
{Name: "PX_PROTO_OE"},
{Name: "PX_PROTO_OL2TP", Value: 1},
{Name: "PX_PROTO_PPTP", Value: 2},
{Name: "P_ALL"},
{Name: "P_PGID", Value: 2},
{Name: "P_PID", Value: 1},
+ {Name: "QMAGIC", Value: 204},
{Name: "RDMA_MAX_PRIVATE_DATA", Value: 256},
{Name: "RDMA_MC_JOIN_FLAG_FULLMEMBER"},
{Name: "RDMA_MC_JOIN_FLAG_SENDONLY_FULLMEMBER", Value: 1},
@@ -28141,6 +28299,7 @@ var consts_amd64 = []ConstValue{
{Name: "XT_U32_RIGHTSH", Value: 2},
{Name: "XT_UDP_INV_DSTPT", Value: 2},
{Name: "XT_UDP_INV_SRCPT", Value: 1},
+ {Name: "ZMAGIC", Value: 267},
{Name: "_DRM_AGP", Value: 3},
{Name: "_DRM_AGP_BUFFER", Value: 2},
{Name: "_DRM_CONSISTENT", Value: 5},
@@ -28486,4 +28645,4 @@ var consts_amd64 = []ConstValue{
{Name: "bpf_insn_load_imm_dw", Value: 24},
}
-const revision_amd64 = "8a54ebce3896b2b7a86248b86dc56d6072d33f4e"
+const revision_amd64 = "24932aadbb69b69118573d5840e05321919b53fa"