1 // AUTOGENERATED FILE 2 // +build !syz_target syz_target,syz_os_test,syz_arch_32_fork_shmem 3 4 package gen 5 6 import . "github.com/google/syzkaller/prog" 7 import . "github.com/google/syzkaller/sys/test" 8 9 func init() { 10 RegisterTarget(&Target{OS: "test", Arch: "32_fork_shmem", Revision: revision_32_fork_shmem, PtrSize: 4, PageSize: 4096, NumPages: 4096, DataOffset: 536870912, Syscalls: syscalls_32_fork_shmem, Resources: resources_32_fork_shmem, Structs: structDescs_32_fork_shmem, Consts: consts_32_fork_shmem}, InitTarget) 11 } 12 13 var resources_32_fork_shmem = []*ResourceDesc(nil) 14 15 var structDescs_32_fork_shmem = []*KeyedStruct{ 16 {Key: StructKey{Name: "align0"}, Desc: &StructDesc{TypeCommon: TypeCommon{TypeName: "align0", TypeSize: 24}, Fields: []Type{ 17 &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int16", FldName: "f0", TypeSize: 2}}}, 18 &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "pad", TypeSize: 2}}, IsPad: true}, 19 &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int32", FldName: "f1", TypeSize: 4}}}, 20 &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int8", FldName: "f2", TypeSize: 1}}}, 21 &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "pad", TypeSize: 1}}, IsPad: true}, 22 &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int16", FldName: "f3", TypeSize: 2}}}, 23 &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "pad", TypeSize: 4}}, IsPad: true}, 24 &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int64", FldName: "f4", TypeSize: 8}}}, 25 }}}, 26 {Key: StructKey{Name: "compare_data"}, Desc: &StructDesc{TypeCommon: TypeCommon{TypeName: "compare_data", IsVarlen: true}, Fields: []Type{ 27 &StructType{Key: StructKey{Name: "align0"}, FldName: "align0"}, 28 }}}, 29 } 30 31 var syscalls_32_fork_shmem = []*Syscall{ 32 {Name: "syz_compare", CallName: "syz_compare", Args: []Type{ 33 &PtrType{TypeCommon: TypeCommon{TypeName: "ptr", FldName: "want", TypeSize: 4}, Type: &BufferType{TypeCommon: TypeCommon{TypeName: "string", IsVarlen: true}, Kind: 2}}, 34 &LenType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "len", FldName: "want_len", TypeSize: 4}}, Buf: "want"}, 35 &PtrType{TypeCommon: TypeCommon{TypeName: "ptr", FldName: "got", TypeSize: 4}, Type: &UnionType{Key: StructKey{Name: "compare_data"}}}, 36 &LenType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "len", FldName: "got_len", TypeSize: 4}}, Buf: "got"}, 37 }}, 38 {Name: "syz_errno", CallName: "syz_errno", Args: []Type{ 39 &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int32", FldName: "v", TypeSize: 4}}}, 40 }}, 41 {Name: "syz_mmap", CallName: "syz_mmap", Args: []Type{ 42 &VmaType{TypeCommon: TypeCommon{TypeName: "vma", FldName: "addr", TypeSize: 4}}, 43 &LenType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "len", FldName: "len", TypeSize: 4}}, Buf: "addr"}, 44 }}, 45 } 46 47 var consts_32_fork_shmem = []ConstValue{ 48 {Name: "IPPROTO_ICMPV6", Value: 58}, 49 {Name: "IPPROTO_TCP", Value: 6}, 50 {Name: "IPPROTO_UDP", Value: 17}, 51 {Name: "ONLY_32BITS_CONST", Value: 1}, 52 } 53 54 const revision_32_fork_shmem = "d09983a8bb4f2ccd0e303191862d170b5b636bd8" 55