diff options
32 files changed, 678 insertions, 606 deletions
diff --git a/executor/defs.h b/executor/defs.h index 98f4b3e97..377398fe0 100644 --- a/executor/defs.h +++ b/executor/defs.h @@ -70,7 +70,7 @@ #if GOARCH_386 #define GOARCH "386" -#define SYZ_REVISION "33b5499ae4ba720a5aadcf47c08c27e96fb67832" +#define SYZ_REVISION "6480754ea5878e2efb25d917123a1896b8b359cf" #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 "57e792b4f9c2dfd15302bc6d8af296a1ad069360" +#define SYZ_REVISION "a8fe352537df3c64061c651b2f9e153c9c83549f" #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 "73ab90b4fe32667fb8aeeede21c4e40d90f162f3" +#define SYZ_REVISION "3444839b3d1c062c3a509ba2db0628bda1758722" #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 "89f29368f6fde3dc0f3b6681a6a51a0e2329992c" +#define SYZ_REVISION "640aa823f49ff10cee6488cdec66c2e901f3dbba" #define SYZ_EXECUTOR_USES_FORK_SERVER 1 #define SYZ_EXECUTOR_USES_SHMEM 1 #define SYZ_PAGE_SIZE 4096 @@ -110,7 +110,7 @@ #if GOARCH_mips64le #define GOARCH "mips64le" -#define SYZ_REVISION "8587350b245052b7ccf5ed9a0302a1a9cb79afc8" +#define SYZ_REVISION "f2309786b1dffa004441418c674c98470ccb455e" #define SYZ_EXECUTOR_USES_FORK_SERVER 1 #define SYZ_EXECUTOR_USES_SHMEM 1 #define SYZ_PAGE_SIZE 4096 @@ -120,7 +120,7 @@ #if GOARCH_ppc64le #define GOARCH "ppc64le" -#define SYZ_REVISION "88f13870a768fc9d901f0b86e93664821fa28696" +#define SYZ_REVISION "cfce92797252d85d92e3aff56effff2e2e3e8c45" #define SYZ_EXECUTOR_USES_FORK_SERVER 1 #define SYZ_EXECUTOR_USES_SHMEM 1 #define SYZ_PAGE_SIZE 4096 @@ -165,7 +165,7 @@ #if GOARCH_32_fork_shmem #define GOARCH "32_fork_shmem" -#define SYZ_REVISION "c547f9f5ad5a787ba3d546567452faa30af14525" +#define SYZ_REVISION "9de9df2edf17935a28af03116105b78e58013838" #define SYZ_EXECUTOR_USES_FORK_SERVER 1 #define SYZ_EXECUTOR_USES_SHMEM 1 #define SYZ_PAGE_SIZE 4096 @@ -175,7 +175,7 @@ #if GOARCH_32_shmem #define GOARCH "32_shmem" -#define SYZ_REVISION "78cf24e0e4b13952ef5ce2921f4b41ad71693243" +#define SYZ_REVISION "b3b0c6ea907ce870e7e4b25b9308c2425d0e8cf3" #define SYZ_EXECUTOR_USES_FORK_SERVER 0 #define SYZ_EXECUTOR_USES_SHMEM 1 #define SYZ_PAGE_SIZE 8192 @@ -185,7 +185,7 @@ #if GOARCH_64 #define GOARCH "64" -#define SYZ_REVISION "11680783018363ee3ca3e0a484f2487a560a21d1" +#define SYZ_REVISION "f21fe2c3f1b0e63ded6b9ee4a51a36aa1f8b5dc0" #define SYZ_EXECUTOR_USES_FORK_SERVER 0 #define SYZ_EXECUTOR_USES_SHMEM 0 #define SYZ_PAGE_SIZE 4096 @@ -195,7 +195,7 @@ #if GOARCH_64_fork #define GOARCH "64_fork" -#define SYZ_REVISION "399d53d555b219a495bc162e62986d7cb16952d5" +#define SYZ_REVISION "647e31ffe8e7096502c33d49da123323314ec0da" #define SYZ_EXECUTOR_USES_FORK_SERVER 1 #define SYZ_EXECUTOR_USES_SHMEM 0 #define SYZ_PAGE_SIZE 8192 diff --git a/executor/syscalls.h b/executor/syscalls.h index c2af7244e..054c62f0b 100644 --- a/executor/syscalls.h +++ b/executor/syscalls.h @@ -2610,7 +2610,6 @@ const call_t syscalls[] = { {"ioctl$CAPI_NCCI_OPENCOUNT", 54}, {"ioctl$CAPI_REGISTER", 54}, {"ioctl$CAPI_SET_FLAGS", 54}, - {"ioctl$CDROMAUDIOBUFSIZ", 54}, {"ioctl$CDROMCLOSETRAY", 54}, {"ioctl$CDROMEJECT", 54}, {"ioctl$CDROMEJECT_SW", 54}, @@ -5957,7 +5956,6 @@ const call_t syscalls[] = { {"ioctl$CAPI_NCCI_OPENCOUNT", 16}, {"ioctl$CAPI_REGISTER", 16}, {"ioctl$CAPI_SET_FLAGS", 16}, - {"ioctl$CDROMAUDIOBUFSIZ", 16}, {"ioctl$CDROMCLOSETRAY", 16}, {"ioctl$CDROMEJECT", 16}, {"ioctl$CDROMEJECT_SW", 16}, @@ -9301,7 +9299,6 @@ const call_t syscalls[] = { {"ioctl$CAPI_NCCI_OPENCOUNT", 54}, {"ioctl$CAPI_REGISTER", 54}, {"ioctl$CAPI_SET_FLAGS", 54}, - {"ioctl$CDROMAUDIOBUFSIZ", 54}, {"ioctl$CDROMCLOSETRAY", 54}, {"ioctl$CDROMEJECT", 54}, {"ioctl$CDROMEJECT_SW", 54}, @@ -12594,7 +12591,6 @@ const call_t syscalls[] = { {"ioctl$CAPI_NCCI_OPENCOUNT", 29}, {"ioctl$CAPI_REGISTER", 29}, {"ioctl$CAPI_SET_FLAGS", 29}, - {"ioctl$CDROMAUDIOBUFSIZ", 29}, {"ioctl$CDROMCLOSETRAY", 29}, {"ioctl$CDROMEJECT", 29}, {"ioctl$CDROMEJECT_SW", 29}, @@ -15882,7 +15878,6 @@ const call_t syscalls[] = { {"ioctl$CAPI_NCCI_OPENCOUNT", 5015}, {"ioctl$CAPI_REGISTER", 5015}, {"ioctl$CAPI_SET_FLAGS", 5015}, - {"ioctl$CDROMAUDIOBUFSIZ", 5015}, {"ioctl$CDROMCLOSETRAY", 5015}, {"ioctl$CDROMEJECT", 5015}, {"ioctl$CDROMEJECT_SW", 5015}, @@ -19086,7 +19081,6 @@ const call_t syscalls[] = { {"ioctl$CAPI_NCCI_OPENCOUNT", 54}, {"ioctl$CAPI_REGISTER", 54}, {"ioctl$CAPI_SET_FLAGS", 54}, - {"ioctl$CDROMAUDIOBUFSIZ", 54}, {"ioctl$CDROMCLOSETRAY", 54}, {"ioctl$CDROMEJECT", 54}, {"ioctl$CDROMEJECT_SW", 54}, @@ -22424,16 +22418,6 @@ const call_t syscalls[] = { {"foo$fmt4", 0}, {"foo$fmt5", 0}, {"minimize$0", 0}, - {"mutate$array", 0}, - {"mutate$array2", 0}, - {"mutate$buffer", 0}, - {"mutate$flags", 0}, - {"mutate$flags2", 0}, - {"mutate$flags3", 0}, - {"mutate$integer", 0}, - {"mutate$integer2", 0}, - {"mutate$rangedbuffer", 0}, - {"mutate$union", 0}, {"mutate0", 0}, {"mutate1", 0}, {"mutate2", 0}, @@ -22443,6 +22427,16 @@ const call_t syscalls[] = { {"mutate6", 0}, {"mutate7", 0}, {"mutate8", 0}, + {"mutate_array", 0}, + {"mutate_array2", 0}, + {"mutate_buffer", 0}, + {"mutate_flags", 0}, + {"mutate_flags2", 0}, + {"mutate_flags3", 0}, + {"mutate_integer", 0}, + {"mutate_integer2", 0}, + {"mutate_rangedbuffer", 0}, + {"mutate_union", 0}, {"prctl$PR_SET_SECCOMP", 0}, {"seccomp", 0}, {"serialize0", 0}, @@ -22480,8 +22474,6 @@ const call_t syscalls[] = { {"test$csum_ipv6_udp", 0}, {"test$end0", 0}, {"test$end1", 0}, - {"test$excessive_args1", 0}, - {"test$excessive_args2", 0}, {"test$excessive_fields1", 0}, {"test$hint_data", 0}, {"test$int", 0}, @@ -22492,7 +22484,6 @@ const call_t syscalls[] = { {"test$length12", 0}, {"test$length13", 0}, {"test$length14", 0}, - {"test$length15", 0}, {"test$length16", 0}, {"test$length17", 0}, {"test$length18", 0}, @@ -22548,6 +22539,9 @@ const call_t syscalls[] = { {"test$union1", 0}, {"test$union2", 0}, {"test$vma0", 0}, + {"test_excessive_args1", 0}, + {"test_excessive_args2", 0}, + {"test_length15", 0}, {"unsupported$0", 0}, {"unsupported$1", 0}, @@ -22567,16 +22561,6 @@ const call_t syscalls[] = { {"foo$fmt4", 0}, {"foo$fmt5", 0}, {"minimize$0", 0}, - {"mutate$array", 0}, - {"mutate$array2", 0}, - {"mutate$buffer", 0}, - {"mutate$flags", 0}, - {"mutate$flags2", 0}, - {"mutate$flags3", 0}, - {"mutate$integer", 0}, - {"mutate$integer2", 0}, - {"mutate$rangedbuffer", 0}, - {"mutate$union", 0}, {"mutate0", 0}, {"mutate1", 0}, {"mutate2", 0}, @@ -22586,6 +22570,16 @@ const call_t syscalls[] = { {"mutate6", 0}, {"mutate7", 0}, {"mutate8", 0}, + {"mutate_array", 0}, + {"mutate_array2", 0}, + {"mutate_buffer", 0}, + {"mutate_flags", 0}, + {"mutate_flags2", 0}, + {"mutate_flags3", 0}, + {"mutate_integer", 0}, + {"mutate_integer2", 0}, + {"mutate_rangedbuffer", 0}, + {"mutate_union", 0}, {"prctl$PR_SET_SECCOMP", 0}, {"seccomp", 0}, {"serialize0", 0}, @@ -22623,8 +22617,6 @@ const call_t syscalls[] = { {"test$csum_ipv6_udp", 0}, {"test$end0", 0}, {"test$end1", 0}, - {"test$excessive_args1", 0}, - {"test$excessive_args2", 0}, {"test$excessive_fields1", 0}, {"test$hint_data", 0}, {"test$int", 0}, @@ -22635,7 +22627,6 @@ const call_t syscalls[] = { {"test$length12", 0}, {"test$length13", 0}, {"test$length14", 0}, - {"test$length15", 0}, {"test$length16", 0}, {"test$length17", 0}, {"test$length18", 0}, @@ -22691,6 +22682,9 @@ const call_t syscalls[] = { {"test$union1", 0}, {"test$union2", 0}, {"test$vma0", 0}, + {"test_excessive_args1", 0}, + {"test_excessive_args2", 0}, + {"test_length15", 0}, {"unsupported$0", 0}, {"unsupported$1", 0}, @@ -22711,16 +22705,6 @@ const call_t syscalls[] = { {"foo$fmt4", 0}, {"foo$fmt5", 0}, {"minimize$0", 0}, - {"mutate$array", 0}, - {"mutate$array2", 0}, - {"mutate$buffer", 0}, - {"mutate$flags", 0}, - {"mutate$flags2", 0}, - {"mutate$flags3", 0}, - {"mutate$integer", 0}, - {"mutate$integer2", 0}, - {"mutate$rangedbuffer", 0}, - {"mutate$union", 0}, {"mutate0", 0}, {"mutate1", 0}, {"mutate2", 0}, @@ -22730,6 +22714,16 @@ const call_t syscalls[] = { {"mutate6", 0}, {"mutate7", 0}, {"mutate8", 0}, + {"mutate_array", 0}, + {"mutate_array2", 0}, + {"mutate_buffer", 0}, + {"mutate_flags", 0}, + {"mutate_flags2", 0}, + {"mutate_flags3", 0}, + {"mutate_integer", 0}, + {"mutate_integer2", 0}, + {"mutate_rangedbuffer", 0}, + {"mutate_union", 0}, {"prctl$PR_SET_SECCOMP", 0}, {"seccomp", 0}, {"serialize0", 0}, @@ -22767,8 +22761,6 @@ const call_t syscalls[] = { {"test$csum_ipv6_udp", 0}, {"test$end0", 0}, {"test$end1", 0}, - {"test$excessive_args1", 0}, - {"test$excessive_args2", 0}, {"test$excessive_fields1", 0}, {"test$hint_data", 0}, {"test$int", 0}, @@ -22779,7 +22771,6 @@ const call_t syscalls[] = { {"test$length12", 0}, {"test$length13", 0}, {"test$length14", 0}, - {"test$length15", 0}, {"test$length16", 0}, {"test$length17", 0}, {"test$length18", 0}, @@ -22835,6 +22826,9 @@ const call_t syscalls[] = { {"test$union1", 0}, {"test$union2", 0}, {"test$vma0", 0}, + {"test_excessive_args1", 0}, + {"test_excessive_args2", 0}, + {"test_length15", 0}, {"unsupported$0", 0}, {"unsupported$1", 0}, @@ -22854,16 +22848,6 @@ const call_t syscalls[] = { {"foo$fmt4", 0}, {"foo$fmt5", 0}, {"minimize$0", 0}, - {"mutate$array", 0}, - {"mutate$array2", 0}, - {"mutate$buffer", 0}, - {"mutate$flags", 0}, - {"mutate$flags2", 0}, - {"mutate$flags3", 0}, - {"mutate$integer", 0}, - {"mutate$integer2", 0}, - {"mutate$rangedbuffer", 0}, - {"mutate$union", 0}, {"mutate0", 0}, {"mutate1", 0}, {"mutate2", 0}, @@ -22873,6 +22857,16 @@ const call_t syscalls[] = { {"mutate6", 0}, {"mutate7", 0}, {"mutate8", 0}, + {"mutate_array", 0}, + {"mutate_array2", 0}, + {"mutate_buffer", 0}, + {"mutate_flags", 0}, + {"mutate_flags2", 0}, + {"mutate_flags3", 0}, + {"mutate_integer", 0}, + {"mutate_integer2", 0}, + {"mutate_rangedbuffer", 0}, + {"mutate_union", 0}, {"prctl$PR_SET_SECCOMP", 0}, {"seccomp", 0}, {"serialize0", 0}, @@ -22910,8 +22904,6 @@ const call_t syscalls[] = { {"test$csum_ipv6_udp", 0}, {"test$end0", 0}, {"test$end1", 0}, - {"test$excessive_args1", 0}, - {"test$excessive_args2", 0}, {"test$excessive_fields1", 0}, {"test$hint_data", 0}, {"test$int", 0}, @@ -22922,7 +22914,6 @@ const call_t syscalls[] = { {"test$length12", 0}, {"test$length13", 0}, {"test$length14", 0}, - {"test$length15", 0}, {"test$length16", 0}, {"test$length17", 0}, {"test$length18", 0}, @@ -22978,6 +22969,9 @@ const call_t syscalls[] = { {"test$union1", 0}, {"test$union2", 0}, {"test$vma0", 0}, + {"test_excessive_args1", 0}, + {"test_excessive_args2", 0}, + {"test_length15", 0}, {"unsupported$0", 0}, {"unsupported$1", 0}, diff --git a/pkg/compiler/gen.go b/pkg/compiler/gen.go index 550c55c91..a82f8aab9 100644 --- a/pkg/compiler/gen.go +++ b/pkg/compiler/gen.go @@ -42,19 +42,62 @@ func (comp *compiler) genResource(n *ast.Resource) *prog.ResourceDesc { return res } -func (comp *compiler) genSyscalls() []*prog.Syscall { - var calls []*prog.Syscall - callArgs := make(map[string]int) +func (comp *compiler) collectCallArgSizes() map[string][]uint64 { + argPos := make(map[string]ast.Pos) + callArgSizes := make(map[string][]uint64) for _, decl := range comp.desc.Nodes { - if n, ok := decl.(*ast.Call); ok { - if callArgs[n.CallName] < len(n.Args) { - callArgs[n.CallName] = len(n.Args) + n, ok := decl.(*ast.Call) + if !ok { + continue + } + // Figure out number of arguments and their sizes for each syscall. + // For example, we may have: + // ioctl(fd fd, cmd int32, arg intptr) + // ioctl$FOO(fd fd, cmd const[FOO]) + // Here we will figure out that ioctl$FOO have 3 args, even that + // only 2 are specified and that size of cmd is 4 even that + // normally we would assume it's 8 (intptr). + argSizes := callArgSizes[n.CallName] + for i, arg := range n.Args { + if len(argSizes) <= i { + argSizes = append(argSizes, 0) + } + desc, _, _ := comp.getArgsBase(arg.Type, arg.Name.Name, prog.DirIn, true) + typ := comp.genField(arg, prog.DirIn, true) + // Ignore all types with base (const, flags). We don't have base in syscall args. + // Also ignore resources and pointers because fd can be 32-bits and pointer 64-bits, + // and then there is no way to fix this. + // The only relevant types left is plain int types. + if desc != typeInt { + continue + } + if !comp.target.Int64SyscallArgs && typ.Size() > comp.ptrSize { + comp.error(arg.Pos, "%v arg %v is larger than pointer size", n.Name.Name, arg.Name.Name) + continue + } + argID := fmt.Sprintf("%v|%v", n.CallName, i) + if argSizes[i] == 0 { + argSizes[i] = typ.Size() + argPos[argID] = arg.Pos + continue + } + if argSizes[i] != typ.Size() { + comp.error(arg.Pos, "%v arg %v is redeclared with size %v, previously declared with size %v at %v", + n.Name.Name, arg.Name.Name, typ.Size(), argSizes[i], argPos[argID]) + continue } } + callArgSizes[n.CallName] = argSizes } + return callArgSizes +} + +func (comp *compiler) genSyscalls() []*prog.Syscall { + callArgSizes := comp.collectCallArgSizes() + var calls []*prog.Syscall for _, decl := range comp.desc.Nodes { if n, ok := decl.(*ast.Call); ok && n.NR != ^uint64(0) { - calls = append(calls, comp.genSyscall(n, callArgs[n.CallName])) + calls = append(calls, comp.genSyscall(n, len(callArgSizes[n.CallName]))) } } sort.Slice(calls, func(i, j int) bool { diff --git a/pkg/compiler/testdata/all.txt b/pkg/compiler/testdata/all.txt index 789071964..17f2cdb2c 100644 --- a/pkg/compiler/testdata/all.txt +++ b/pkg/compiler/testdata/all.txt @@ -1,19 +1,19 @@ # Copyright 2018 syzkaller project authors. All rights reserved. # Use of this source code is governed by Apache 2 LICENSE that can be found in the LICENSE file. -foo$0(a int8) -foo$1(a int8[C1:C2]) -foo$2(a ptr[out, array[int32]]) -foo$3(a union_arg) -foo$4() r0 -foo$5(a int8['a':'z']) -foo$6(a int8[-20:-10]) -foo$7(a int8[-20:20]) -foo$8(a ptr[in, strings]) -foo$9(a ptr[out, ptr[in, string]]) -foo$10(a ptr[out, buffer[in]]) -foo$11(a int64[1:100, 2]) -foo$12(a int64[0:-1, 0x1000]) +foo_0(a int8) +foo_1(a int8[C1:C2]) +foo_2(a ptr[out, array[int32]]) +foo_3(a union_arg) +foo_4() r0 +foo_5(a int8['a':'z']) +foo_6(a int8[-20:-10]) +foo_7(a int8[-20:20]) +foo_8(a ptr[in, strings]) +foo_9(a ptr[out, ptr[in, string]]) +foo_10(a ptr[out, buffer[in]]) +foo_11(a int64[1:100, 2]) +foo_12(a int64[0:-1, 0x1000]) resource r0[intptr] @@ -57,7 +57,7 @@ proc_struct1 { f1 proc[C0, 8, int8] } -foo$proc1(a ptr[in, proc_struct1]) +foo_proc1(a ptr[in, proc_struct1]) # Len/bytesize types. @@ -71,9 +71,9 @@ type len_temp2[DATA] { len len[len_templ1, int8] } -foo$len_templ(a ptr[in, len_templ1[int8, int16]]) -foo$len_var0(a ptr[in, array[string]], b len[a]) -foo$len_var1(a ptr[in, array[string]], b ptr[in, len[a, int32]]) +foo_len_templ(a ptr[in, len_templ1[int8, int16]]) +foo_len_var0(a ptr[in, array[string]], b len[a]) +foo_len_var1(a ptr[in, array[string]], b ptr[in, len[a, int32]]) len_expr1 { f11 len_expr2 @@ -103,14 +103,14 @@ len_expr4 { f41 int32 } -foo$len_expr(a ptr[in, len_expr1], b ptr[in, array[int8, 3]]) +foo_len_expr(a ptr[in, len_expr1], b ptr[in, array[int8, 3]]) # Pointer type. -foo$ptr(a ptr[in, int64]) -foo$ptr64(a ptr64[in, int64]) -foo$vma(a vma) -foo$vma64(a vma64) +foo_ptr(a ptr[in, int64]) +foo_ptr64(a ptr64[in, int64]) +foo_vma(a vma) +foo_vma64(a vma64) # Void type. @@ -156,15 +156,15 @@ struct_with_void1 { f4 optional[int8] } -foo$void0(a ptr[in, void0]) -foo$void1(a ptr[in, void1]) -foo$void2(a ptr[in, void2]) -foo$void3(a ptr[in, void3]) -foo$void4(a ptr[in, void4]) -foo$void5(a ptr[in, void5]) -foo$void6(a ptr[in, struct_with_void0]) -foo$void7(a ptr[in, struct_with_void1]) -foo$void8(a ptr[in, void]) +foo_void0(a ptr[in, void0]) +foo_void1(a ptr[in, void1]) +foo_void2(a ptr[in, void2]) +foo_void3(a ptr[in, void3]) +foo_void4(a ptr[in, void4]) +foo_void5(a ptr[in, void5]) +foo_void6(a ptr[in, struct_with_void0]) +foo_void7(a ptr[in, struct_with_void1]) +foo_void8(a ptr[in, void]) # Bitfields. @@ -176,7 +176,7 @@ bitfield0 { f5 int64:64[-1:1] } -foo$bitfield0(a ptr[in, bitfield0]) +foo_bitfield0(a ptr[in, bitfield0]) # Type templates. @@ -236,18 +236,18 @@ type templ_base3[BASE] BASE type templ_base4[BASE] const[0, BASE] type templ_base5[VAL, BASE] const[VAL, BASE] -foo$templ0(a templ0[42, int8]) -foo$templ1(a ptr[in, templ_struct0[C2, int8]]) -foo$templ2(a ptr[in, union_with_templ_struct]) -foo$templ3(a ptr[in, templ_struct1[1]], b ptr[in, templ_struct1[2]]) -foo$templ4(a ptr[in, templ_struct1[3]]) -foo$templ5(a ptr[in, templ_struct1[3]]) -foo$templ6(a ptr[in, templ_struct4]) -foo$templ7(a ptr[in, templ_struct5], b ptr[in, templ_struct6], c ptr[in, templ_union], d ptr[in, type3]) -foo$templ8(a ptr[in, templ_templ_use]) -foo$templ9(a ptr[in, templ_base3[int64]]) -foo$templ10(a ptr[in, templ_base4[int8]]) -foo$templ11(a ptr[in, templ_base5[42, int8]]) +foo_templ0(a templ0[42, int8]) +foo_templ1(a ptr[in, templ_struct0[C2, int8]]) +foo_templ2(a ptr[in, union_with_templ_struct]) +foo_templ3(a ptr[in, templ_struct1[1]], b ptr[in, templ_struct1[2]]) +foo_templ4(a ptr[in, templ_struct1[3]]) +foo_templ5(a ptr[in, templ_struct1[3]]) +foo_templ6(a ptr[in, templ_struct4]) +foo_templ7(a ptr[in, templ_struct5], b ptr[in, templ_struct6], c ptr[in, templ_union], d ptr[in, type3]) +foo_templ8(a ptr[in, templ_templ_use]) +foo_templ9(a ptr[in, templ_base3[int64]]) +foo_templ10(a ptr[in, templ_base4[int8]]) +foo_templ11(a ptr[in, templ_base5[42, int8]]) # Structs. @@ -273,7 +273,7 @@ s4 { f2 int8 } [size[19]] -foo$s0(a ptr[in, s0], b ptr[in, s1], c ptr[in, s2], d ptr[in, s4]) +foo_s0(a ptr[in, s0], b ptr[in, s1], c ptr[in, s2], d ptr[in, s4]) # Unions. @@ -281,16 +281,16 @@ u0 [ f1 int32 ] -foo$u0(a ptr[in, u0]) +foo_u0(a ptr[in, u0]) # fmt -foo$fmt0(a ptr[in, fmt[dec, int32[1:10]]]) -foo$fmt1(a ptr[in, fmt[hex, flags[int_flags]]]) -foo$fmt2(a ptr[in, fmt[oct, len[b]]], b ptr[in, array[int8]]) -foo$fmt3(a ptr[in, fmt[dec, proc[10, 20]]]) -foo$fmt4(a ptr[in, fmt[dec, r0]]) -foo$fmt5(a ptr[in, struct$fmt0]) +foo_fmt0(a ptr[in, fmt[dec, int32[1:10]]]) +foo_fmt1(a ptr[in, fmt[hex, flags[int_flags]]]) +foo_fmt2(a ptr[in, fmt[oct, len[b]]], b ptr[in, array[int8]]) +foo_fmt3(a ptr[in, fmt[dec, proc[10, 20]]]) +foo_fmt4(a ptr[in, fmt[dec, r0]]) +foo_fmt5(a ptr[in, struct$fmt0]) struct$fmt0 { f0 fmt[dec, int8] diff --git a/prog/encoding_test.go b/prog/encoding_test.go index c62e6647f..fda0f855f 100644 --- a/prog/encoding_test.go +++ b/prog/encoding_test.go @@ -162,19 +162,19 @@ func TestDeserialize(t *testing.T) { input: `test$regression2(&(0x7f0000000000)=[0x1, 0x2, 0x3, 0x4, 0x5, 0x6])`, }, { - input: `test$excessive_args1(0x0, 0x1, {0x1, &(0x7f0000000000)=[0x1, 0x2]})`, + input: `test_excessive_args1(0x0, 0x1, {0x1, &(0x7f0000000000)=[0x1, 0x2]})`, strictErr: "excessive syscall arguments", }, { - input: `test$excessive_args2(0x0, 0x1, {0x1, &(0x7f0000000000)={0x1, 0x2}})`, + input: `test_excessive_args2(0x0, 0x1, {0x1, &(0x7f0000000000)={0x1, 0x2}})`, strictErr: "excessive syscall arguments", }, { - input: `test$excessive_args2(0x0, 0x1, {0x1, &(0x7f0000000000)=nil})`, + input: `test_excessive_args2(0x0, 0x1, {0x1, &(0x7f0000000000)=nil})`, strictErr: "excessive syscall arguments", }, { - input: `test$excessive_args2(0x0, &(0x7f0000000000), 0x0)`, + input: `test_excessive_args2(0x0, &(0x7f0000000000), 0x0)`, strictErr: "excessive syscall arguments", }, { @@ -191,38 +191,38 @@ func TestDeserialize(t *testing.T) { strictErr: "undeclared variable r0", }, { - input: `test$excessive_args2(r1)`, - output: `test$excessive_args2(0x0)`, + input: `test_excessive_args2(r1)`, + output: `test_excessive_args2(0x0)`, strictErr: "undeclared variable r1", }, { - input: `test$excessive_args2({0x0, 0x1})`, - output: `test$excessive_args2(0x0)`, + input: `test_excessive_args2({0x0, 0x1})`, + output: `test_excessive_args2(0x0)`, strictErr: "wrong struct arg", }, { - input: `test$excessive_args2([0x0], 0x0)`, - output: `test$excessive_args2(0x0)`, + input: `test_excessive_args2([0x0], 0x0)`, + output: `test_excessive_args2(0x0)`, strictErr: "wrong array arg", }, { - input: `test$excessive_args2(@foo)`, - output: `test$excessive_args2(0x0)`, + input: `test_excessive_args2(@foo)`, + output: `test_excessive_args2(0x0)`, strictErr: "wrong union arg", }, { - input: `test$excessive_args2('foo')`, - output: `test$excessive_args2(0x0)`, + input: `test_excessive_args2('foo')`, + output: `test_excessive_args2(0x0)`, strictErr: "wrong string arg", }, { - input: `test$excessive_args2(&(0x7f0000000000)={0x0, 0x1})`, - output: `test$excessive_args2(0x0)`, + input: `test_excessive_args2(&(0x7f0000000000)={0x0, 0x1})`, + output: `test_excessive_args2(0x0)`, strictErr: "wrong addr arg", }, { - input: `test$excessive_args2(nil)`, - output: `test$excessive_args2(0x0)`, + input: `test_excessive_args2(nil)`, + output: `test_excessive_args2(0x0)`, }, { input: `test$type_confusion1(&(0x7f0000000000)=@unknown)`, diff --git a/prog/mutation_test.go b/prog/mutation_test.go index 0d12699fc..d4d3f6586 100644 --- a/prog/mutation_test.go +++ b/prog/mutation_test.go @@ -16,21 +16,21 @@ func TestMutationFlags(t *testing.T) { tests := [][2]string{ // Mutate flags (bitmask = true). { - `r0 = mutate$flags(&(0x7f0000000000)="2e2f66696c653000", 0x0, 0x1, 0x1)`, - `r0 = mutate$flags(&(0x7f0000000000)="2e2f66696c653000", 0x20, 0x1, 0x9)`, + `r0 = mutate_flags(&(0x7f0000000000)="2e2f66696c653000", 0x0, 0x1, 0x1)`, + `r0 = mutate_flags(&(0x7f0000000000)="2e2f66696c653000", 0x20, 0x1, 0x9)`, }, { - `r0 = mutate$flags2(&(0x7f0000000000)="2e2f66696c653000", 0x0)`, - `r0 = mutate$flags2(&(0x7f0000000000)="2e2f66696c653000", 0xd9)`, + `r0 = mutate_flags2(&(0x7f0000000000)="2e2f66696c653000", 0x0)`, + `r0 = mutate_flags2(&(0x7f0000000000)="2e2f66696c653000", 0xd9)`, }, // Mutate flags (bitmask = false). { - `r0 = mutate$flags3(&(0x7f0000000000)="2e2f66696c653000", 0x0)`, - `r0 = mutate$flags3(&(0x7f0000000000)="2e2f66696c653000", 0xddddddddeeeeeeee)`, + `r0 = mutate_flags3(&(0x7f0000000000)="2e2f66696c653000", 0x0)`, + `r0 = mutate_flags3(&(0x7f0000000000)="2e2f66696c653000", 0xddddddddeeeeeeee)`, }, { - `r0 = mutate$flags3(&(0x7f0000000000)="2e2f66696c653000", 0xddddddddeeeeeeee)`, - `r0 = mutate$flags3(&(0x7f0000000000)="2e2f66696c653000", 0xaaaaaaaaaaaaaaaa)`, + `r0 = mutate_flags3(&(0x7f0000000000)="2e2f66696c653000", 0xddddddddeeeeeeee)`, + `r0 = mutate_flags3(&(0x7f0000000000)="2e2f66696c653000", 0xaaaaaaaaaaaaaaaa)`, }, } runMutationTests(t, tests, true) @@ -41,42 +41,42 @@ func TestChooseCall(t *testing.T) { // The call with many arguments has a higher mutation probability. { `mutate0() -mutate$integer(0x0, 0x1, 0x1, 0x1, 0x0, 0x1, 0x0, 0x0, 0x1) -mutate$integer2(0x00, 0x00, 0x20, 0x00, 0x01)`, +mutate_integer(0x0, 0x1, 0x1, 0x1, 0x0, 0x1, 0x0, 0x0, 0x1) +mutate_integer2(0x00, 0x00, 0x20, 0x00, 0x01)`, `mutate0() -mutate$integer(0x0, 0x1, 0x1, 0x1, 0x0, 0x1, 0x0, 0x0, 0xffffffff) -mutate$integer2(0x00, 0x00, 0x20, 0x00, 0x01)`, +mutate_integer(0x0, 0x1, 0x1, 0x1, 0x0, 0x1, 0x0, 0x0, 0xffffffff) +mutate_integer2(0x00, 0x00, 0x20, 0x00, 0x01)`, }, // Calls with the same probability. { - `mutate$integer(0x0, 0x1, 0x1, 0x1, 0x0, 0x1, 0x0, 0x0, 0x1) -mutate$integer(0x0, 0x1, 0x1, 0x1, 0x0, 0x1, 0x0, 0x0, 0x1) -mutate$integer(0x0, 0x1, 0x1, 0x1, 0x0, 0x1, 0x0, 0x0, 0x1) -mutate$integer(0x0, 0x1, 0x1, 0x1, 0x0, 0x1, 0x0, 0x0, 0x1) -mutate$integer(0x0, 0x1, 0x1, 0x1, 0x0, 0x1, 0x0, 0x0, 0x1)`, - `mutate$integer(0x0, 0x1, 0x1, 0x1, 0x0, 0x1, 0x0, 0x0, 0x1) -mutate$integer(0x0, 0x1, 0x1, 0x1, 0x0, 0x1, 0x0, 0x0, 0x1) -mutate$integer(0x0, 0x1, 0x1, 0x1, 0x0, 0x1, 0x0, 0x0, 0xff) -mutate$integer(0x0, 0x1, 0x1, 0x1, 0x0, 0x1, 0x0, 0x0, 0x1) -mutate$integer(0x0, 0x1, 0x1, 0x1, 0x0, 0x1, 0x0, 0x0, 0x1)`, + `mutate_integer(0x0, 0x1, 0x1, 0x1, 0x0, 0x1, 0x0, 0x0, 0x1) +mutate_integer(0x0, 0x1, 0x1, 0x1, 0x0, 0x1, 0x0, 0x0, 0x1) +mutate_integer(0x0, 0x1, 0x1, 0x1, 0x0, 0x1, 0x0, 0x0, 0x1) +mutate_integer(0x0, 0x1, 0x1, 0x1, 0x0, 0x1, 0x0, 0x0, 0x1) +mutate_integer(0x0, 0x1, 0x1, 0x1, 0x0, 0x1, 0x0, 0x0, 0x1)`, + `mutate_integer(0x0, 0x1, 0x1, 0x1, 0x0, 0x1, 0x0, 0x0, 0x1) +mutate_integer(0x0, 0x1, 0x1, 0x1, 0x0, 0x1, 0x0, 0x0, 0x1) +mutate_integer(0x0, 0x1, 0x1, 0x1, 0x0, 0x1, 0x0, 0x0, 0xff) +mutate_integer(0x0, 0x1, 0x1, 0x1, 0x0, 0x1, 0x0, 0x0, 0x1) +mutate_integer(0x0, 0x1, 0x1, 0x1, 0x0, 0x1, 0x0, 0x0, 0x1)`, }, // The call with a lower probability can be mutated. { `mutate7(&(0x7f0000000000)='123', 0x3) -mutate$integer(0x0, 0x1, 0x1, 0x1, 0x0, 0x1, 0x0, 0x0, 0x1) -r0 = mutate$flags(&(0x7f0000000000)="2e2f66696c653000", 0x0, 0x1, 0x1)`, +mutate_integer(0x0, 0x1, 0x1, 0x1, 0x0, 0x1, 0x0, 0x0, 0x1) +r0 = mutate_flags(&(0x7f0000000000)="2e2f66696c653000", 0x0, 0x1, 0x1)`, `mutate7(&(0x7f0000000000)='123', 0x2) -mutate$integer(0x0, 0x1, 0x1, 0x1, 0x0, 0x1, 0x0, 0x0, 0x1) -r0 = mutate$flags(&(0x7f0000000000)="2e2f66696c653000", 0x0, 0x1, 0x1)`, +mutate_integer(0x0, 0x1, 0x1, 0x1, 0x0, 0x1, 0x0, 0x0, 0x1) +r0 = mutate_flags(&(0x7f0000000000)="2e2f66696c653000", 0x0, 0x1, 0x1)`, }, // Complex arguments. { `test$struct(&(0x7f0000000000)={0x0, {0x0}}) test$array0(&(0x7f0000001000)={0x1, [@f0=0x2, @f1=0x3], 0x4}) -mutate$integer(0x0, 0x1, 0x1, 0x1, 0x0, 0x1, 0x0, 0x0, 0x1)`, +mutate_integer(0x0, 0x1, 0x1, 0x1, 0x0, 0x1, 0x0, 0x0, 0x1)`, `test$struct(&(0x7f0000000000)={0xff, {0x0}}) test$array0(&(0x7f0000001000)={0x1, [@f0=0x2, @f1=0x3], 0x4}) -mutate$integer(0x0, 0x1, 0x1, 0x1, 0x0, 0x1, 0x0, 0x0, 0x1)`, +mutate_integer(0x0, 0x1, 0x1, 0x1, 0x0, 0x1, 0x0, 0x0, 0x1)`, }, } runMutationTests(t, tests, true) @@ -86,38 +86,38 @@ func TestMutateArgument(t *testing.T) { tests := [][2]string{ // Mutate an integer with a higher priority than the boolean arguments. { - `mutate$integer(0x0, 0x1, 0x1, 0x1, 0x0, 0x1, 0x0, 0x0, 0x1)`, - `mutate$integer(0x0, 0x1, 0x1, 0x1, 0x0, 0x1, 0x0, 0x0, 0xffffffff)`, + `mutate_integer(0x0, 0x1, 0x1, 0x1, 0x0, 0x1, 0x0, 0x0, 0x1)`, + `mutate_integer(0x0, 0x1, 0x1, 0x1, 0x0, 0x1, 0x0, 0x0, 0xffffffff)`, }, // Mutate a boolean. { - `mutate$integer(0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0)`, - `mutate$integer(0x0, 0x0, 0x0, 0x1, 0x0, 0x0, 0x0, 0x0, 0x0)`, + `mutate_integer(0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0)`, + `mutate_integer(0x0, 0x0, 0x0, 0x1, 0x0, 0x0, 0x0, 0x0, 0x0)`, }, // Mutate flags (bitmask = true). { - `r0 = mutate$flags(&(0x7f0000000000)="2e2f66696c653000", 0x0, 0x1, 0x1)`, - `r0 = mutate$flags(&(0x7f0000000000)="2e2f66696c653000", 0x20, 0x1, 0x9)`, + `r0 = mutate_flags(&(0x7f0000000000)="2e2f66696c653000", 0x0, 0x1, 0x1)`, + `r0 = mutate_flags(&(0x7f0000000000)="2e2f66696c653000", 0x20, 0x1, 0x9)`, }, // Mutate an int8 from a set of other arguments with higher priority. { - `mutate$integer2(0x00, 0x00, 0x20, 0x00, 0x01)`, - `mutate$integer2(0x00, 0x00, 0x20, 0x00, 0x07)`, + `mutate_integer2(0x00, 0x00, 0x20, 0x00, 0x01)`, + `mutate_integer2(0x00, 0x00, 0x20, 0x00, 0x07)`, }, // Mutate an array of structs { - `mutate$array2(&(0x7f0000000000)=[{0x0}, {0x0}, {0x0}, {0x0}, {0x0}])`, - `mutate$array2(&(0x7f0000000000)=[{0x0}, {0x0}, {0x3}, {0x0}, {0x0}])`, + `mutate_array2(&(0x7f0000000000)=[{0x0}, {0x0}, {0x0}, {0x0}, {0x0}])`, + `mutate_array2(&(0x7f0000000000)=[{0x0}, {0x0}, {0x3}, {0x0}, {0x0}])`, }, // Mutate a non-special union that have more than 1 option { - `mutate$union(&(0x7f0000000000)=@f1=[0x0, 0x1, 0x2, 0x3, 0x0, 0x1, 0x2, 0x3, 0x0, 0x0])`, - `mutate$union(&(0x7f0000000000)=@f0=0x2)`, + `mutate_union(&(0x7f0000000000)=@f1=[0x0, 0x1, 0x2, 0x3, 0x0, 0x1, 0x2, 0x3, 0x0, 0x0])`, + `mutate_union(&(0x7f0000000000)=@f0=0x2)`, }, // Mutate the value of the current option in union { - `mutate$union(&(0x7f0000000000)=@f1=[0x0, 0x1, 0x2, 0x3, 0x0, 0x1, 0x2, 0x3, 0x0, 0x0])`, - `mutate$union(&(0x7f0000000000)=@f1=[0x0, 0x1, 0xff, 0x3, 0x0, 0x1, 0x2, 0x3, 0x0, 0x0])`, + `mutate_union(&(0x7f0000000000)=@f1=[0x0, 0x1, 0x2, 0x3, 0x0, 0x1, 0x2, 0x3, 0x0, 0x0])`, + `mutate_union(&(0x7f0000000000)=@f1=[0x0, 0x1, 0xff, 0x3, 0x0, 0x1, 0x2, 0x3, 0x0, 0x0])`, }, } @@ -337,9 +337,9 @@ mutate5(&(0x7f0000001000)="2e2f66696c653100", 0x22c0) `}, // Mutate the array. {` -mutate$array(0x1, 0x30, &(0x7f0000000000)=[0x1, 0x1, 0x1, 0x1, 0x1]) +mutate_array(0x1, 0x30, &(0x7f0000000000)=[0x1, 0x1, 0x1, 0x1, 0x1]) `, ` -mutate$array(0x1, 0x30, &(0x7f0000000000)=[0x1, 0x1, 0x1, 0x1]) +mutate_array(0x1, 0x30, &(0x7f0000000000)=[0x1, 0x1, 0x1, 0x1]) `}, // Extend an array. {` @@ -361,21 +361,21 @@ mutate8(0xffffffffffffffff) `}, // Increase buffer length {` -mutate$buffer(&(0x7f0000000000)=""/100) +mutate_buffer(&(0x7f0000000000)=""/100) `, ` -mutate$buffer(&(0x7f0000000000)=""/200) +mutate_buffer(&(0x7f0000000000)=""/200) `}, // Decrease buffer length {` -mutate$buffer(&(0x7f0000000000)=""/800) +mutate_buffer(&(0x7f0000000000)=""/800) `, ` -mutate$buffer(&(0x7f0000000000)=""/4) +mutate_buffer(&(0x7f0000000000)=""/4) `}, // Mutate a ranged buffer {` -mutate$rangedbuffer(&(0x7f00000000c0)=""/10) +mutate_rangedbuffer(&(0x7f00000000c0)=""/10) `, ` -mutate$rangedbuffer(&(0x7f00000000c0)=""/7) +mutate_rangedbuffer(&(0x7f00000000c0)=""/7) `}, } @@ -386,14 +386,14 @@ func TestNegativeMutations(t *testing.T) { tests := [][2]string{ // Mutate buffer size outside the range limits {` -mutate$rangedbuffer(&(0x7f00000000c0)=""/7) +mutate_rangedbuffer(&(0x7f00000000c0)=""/7) `, ` -mutate$rangedbuffer(&(0x7f00000000c0)=""/4) +mutate_rangedbuffer(&(0x7f00000000c0)=""/4) `}, {` -mutate$rangedbuffer(&(0x7f00000000c0)=""/7) +mutate_rangedbuffer(&(0x7f00000000c0)=""/7) `, ` -mutate$rangedbuffer(&(0x7f00000000c0)=""/11) +mutate_rangedbuffer(&(0x7f00000000c0)=""/11) `}, } runMutationTests(t, tests, false) diff --git a/prog/size_test.go b/prog/size_test.go index 7b248bd4f..5356c5263 100644 --- a/prog/size_test.go +++ b/prog/size_test.go @@ -96,8 +96,8 @@ func TestAssignSize(t *testing.T) { "test$length14(&(0x7f0000000000)={0xff, 0xff, [0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff]}, &(0x7f0000001000)=0x30)", }, { - "test$length15(0xff, 0x0)", - "test$length15(0xff, 0x2)", + "test_length15(0xff, 0x0)", + "test_length15(0xff, 0x2)", }, { "test$length16(&(0x7f0000000000)={[0x42, 0x42], 0xff, 0xff, 0xff, 0xff, 0xff})", diff --git a/sys/linux/dev_cdrom.txt b/sys/linux/dev_cdrom.txt index b1f268706..1eec5d0b9 100644 --- a/sys/linux/dev_cdrom.txt +++ b/sys/linux/dev_cdrom.txt @@ -49,8 +49,8 @@ ioctl$CDROMPLAYBLK(fd fd_cdrom, cmd const[CDROMPLAYBLK], arg ptr[in, cdrom_blk]) ioctl$CDROMREADALL(fd fd_cdrom, cmd const[CDROMREADALL], arg ptr[out, cdrom_output_buffer]) -ioctl$CDROMGETSPINDOWN(fd fd_cdrom, cmd const[CDROMGETSPINDOWN], arg int8) -ioctl$CDROMSETSPINDOWN(fd fd_cdrom, cmd const[CDROMSETSPINDOWN], arg int8) +ioctl$CDROMGETSPINDOWN(fd fd_cdrom, cmd const[CDROMGETSPINDOWN], arg ptr[out, int8]) +ioctl$CDROMSETSPINDOWN(fd fd_cdrom, cmd const[CDROMSETSPINDOWN], arg ptr[in, int8[0:15]]) ioctl$CDROMCLOSETRAY(fd fd_cdrom, cmd const[CDROMCLOSETRAY]) @@ -65,8 +65,6 @@ ioctl$CDROM_LOCKDOOR(fd fd_cdrom, cmd const[CDROM_LOCKDOOR], lock boolptr) ioctl$CDROM_DEBUG(fd fd_cdrom, cmd const[CDROM_DEBUG], debug boolptr) ioctl$CDROM_GET_CAPABILITY(fd fd_cdrom, cmd const[CDROM_GET_CAPABILITY]) -ioctl$CDROMAUDIOBUFSIZ(fd fd_cdrom, cmd const[CDROMAUDIOBUFSIZ], val int32) - ioctl$DVD_READ_STRUCT(fd fd_cdrom, cmd const[DVD_READ_STRUCT], arg ptr[inout, dvd_struct]) ioctl$DVD_WRITE_STRUCT(fd fd_cdrom, cmd const[DVD_READ_STRUCT], arg ptr[in, dvd_struct]) ioctl$DVD_AUTH(fd fd_cdrom, cmd const[DVD_READ_STRUCT], arg ptr[inout, dvd_authinfo]) diff --git a/sys/linux/dev_fb.txt b/sys/linux/dev_fb.txt index 28432b258..0f688a825 100644 --- a/sys/linux/dev_fb.txt +++ b/sys/linux/dev_fb.txt @@ -13,7 +13,7 @@ openat$fb1(fd const[AT_FDCWD], file ptr[in, string["/dev/fb1"]], flags flags[ope write$fb(fd fd_fb, data ptr[in, array[int8]], len bytesize[data]) read$fb(fd fd_fb, data ptr[out, array[int8]], len bytesize[data]) -mmap$fb(addr vma, len len[addr], prot flags[mmap_prot], flags flags[mmap_flags], fd fd_fb, off int64[0:0x100000, 0x1000]) +mmap$fb(addr vma, len len[addr], prot flags[mmap_prot], flags flags[mmap_flags], fd fd_fb, off intptr[0:0x100000, 0x1000]) ioctl$FBIOGET_VSCREENINFO(fd fd_fb, cmd const[FBIOGET_VSCREENINFO], arg ptr[out, array[int8, FB_VAR_SCREENINFO_SIZE]]) ioctl$FBIOPUT_VSCREENINFO(fd fd_fb, cmd const[FBIOPUT_VSCREENINFO], arg ptr[in, fb_var_screeninfo]) diff --git a/sys/linux/dev_net_tun.txt b/sys/linux/dev_net_tun.txt index 6ca577974..ce6f77fac 100644 --- a/sys/linux/dev_net_tun.txt +++ b/sys/linux/dev_net_tun.txt @@ -14,8 +14,8 @@ ioctl$TUNSETQUEUE(fd fd_tun, cmd const[TUNSETQUEUE], arg ptr[in, ifreq_t[flags[t ioctl$TUNSETIFF(fd fd_tun, cmd const[TUNSETIFF], arg ptr[in, ifreq_t[flags[tun_setiff_flags, int16]]]) ioctl$TUNSETIFINDEX(fd fd_tun, cmd const[TUNSETIFINDEX], arg ptr[in, ifindex]) ioctl$TUNGETIFF(fd fd_tun, cmd const[TUNGETIFF], arg ptr[out, ifreq_t[void]]) -ioctl$TUNSETNOCSUM(fd fd_tun, cmd const[TUNSETNOCSUM], arg bool32) -ioctl$TUNSETPERSIST(fd fd_tun, cmd const[TUNSETPERSIST], arg bool32) +ioctl$TUNSETNOCSUM(fd fd_tun, cmd const[TUNSETNOCSUM], arg boolptr) +ioctl$TUNSETPERSIST(fd fd_tun, cmd const[TUNSETPERSIST], arg boolptr) ioctl$TUNSETOWNER(fd fd_tun, cmd const[TUNSETOWNER], arg uid) ioctl$TUNSETGROUP(fd fd_tun, cmd const[TUNSETGROUP], arg gid) ioctl$TUNSETLINK(fd fd_tun, cmd const[TUNSETLINK], arg flags[dev_type_arphdr]) diff --git a/sys/linux/dev_ptmx.txt b/sys/linux/dev_ptmx.txt index bad124a58..31277fe38 100644 --- a/sys/linux/dev_ptmx.txt +++ b/sys/linux/dev_ptmx.txt @@ -111,7 +111,7 @@ ioctl$KDSKBSENT(fd fd_tty, cmd const[KDSKBSENT], arg ptr[in, kbsentry]) ioctl$KDGKBDIACR(fd fd_tty, cmd const[KDGKBDIACR], arg buffer[out]) ioctl$KDGETKEYCODE(fd fd_tty, cmd const[KDGETKEYCODE], arg ptr[in, kbkeycode]) ioctl$KDSETKEYCODE(fd fd_tty, cmd const[KDSETKEYCODE], arg ptr[in, kbkeycode]) -ioctl$KDSIGACCEPT(fd fd_tty, cmd const[KDSIGACCEPT], arg signalno) +ioctl$KDSIGACCEPT(fd fd_tty, cmd const[KDSIGACCEPT], arg signalnoptr) ioctl$VT_OPENQRY(fd fd_tty, cmd const[VT_OPENQRY], arg ptr[out, int32]) ioctl$VT_GETMODE(fd fd_tty, cmd const[VT_GETMODE], arg ptr[out, vt_mode]) ioctl$VT_SETMODE(fd fd_tty, cmd const[VT_SETMODE], arg ptr[in, vt_mode]) @@ -150,7 +150,7 @@ ioctl$TIOCSISO7816(fd fd_tty, cmd const[TIOCSISO7816], arg ptr[in, serial_iso781 ioctl$TIOCSPTLCK(fd fd_tty, cmd const[TIOCSPTLCK], arg ptr[in, bool32]) ioctl$TIOCGPTLCK(fd fd_tty, cmd const[TIOCGPTLCK], arg ptr[out, int32]) ioctl$TIOCGPKT(fd fd_tty, cmd const[TIOCGPKT], arg ptr[out, int32]) -ioctl$TIOCSIG(fd fd_tty, cmd const[TIOCSIG], arg signalno) +ioctl$TIOCSIG(fd fd_tty, cmd const[TIOCSIG], arg signalnoptr) ioctl$TIOCVHANGUP(fd fd_tty, cmd const[TIOCVHANGUP], arg const[0]) ioctl$TIOCGDEV(fd fd_tty, cmd const[TIOCGDEV], arg ptr[out, int32]) ioctl$TCGETX(fd fd_tty, cmd const[TCGETX], arg ptr[out, termiox]) diff --git a/sys/linux/dev_ptp.txt b/sys/linux/dev_ptp.txt index 60913de3f..ae74e73cb 100644 --- a/sys/linux/dev_ptp.txt +++ b/sys/linux/dev_ptp.txt @@ -19,7 +19,7 @@ ioctl$PTP_EXTTS_REQUEST(fd fd_ptp, cmd const[PTP_EXTTS_REQUEST], arg ptr[in, ptp ioctl$PTP_EXTTS_REQUEST2(fd fd_ptp, cmd const[PTP_EXTTS_REQUEST2], arg ptr[in, ptp_extts_request]) ioctl$PTP_PEROUT_REQUEST(fd fd_ptp, cmd const[PTP_PEROUT_REQUEST], arg ptr[in, ptp_perout_request]) ioctl$PTP_PEROUT_REQUEST2(fd fd_ptp, cmd const[PTP_PEROUT_REQUEST2], arg ptr[in, ptp_perout_request]) -ioctl$PTP_ENABLE_PPS(fd fd_ptp, cmd const[PTP_ENABLE_PPS], arg bool32) +ioctl$PTP_ENABLE_PPS(fd fd_ptp, cmd const[PTP_ENABLE_PPS], arg boolptr) ioctl$PTP_SYS_OFFSET(fd fd_ptp, cmd const[PTP_SYS_OFFSET], arg ptr[in, ptp_sys_offset]) ioctl$PTP_SYS_OFFSET_PRECISE(fd fd_ptp, cmd const[PTP_SYS_OFFSET_PRECISE], arg ptr[out, array[int8, PTP_SYS_OFFSET_PRECISE_SIZE]]) ioctl$PTP_SYS_OFFSET_EXTENDED(fd fd_ptp, cmd const[PTP_SYS_OFFSET_EXTENDED], arg ptr[in, ptp_sys_offset_extended]) diff --git a/sys/linux/dev_usb_hiddev.txt b/sys/linux/dev_usb_hiddev.txt index a9488d2f1..d44c2307c 100644 --- a/sys/linux/dev_usb_hiddev.txt +++ b/sys/linux/dev_usb_hiddev.txt @@ -12,7 +12,7 @@ read$hiddev(fd fd_hiddev, data buffer[out], len bytesize[data]) # https://elixir.bootlin.com/linux/v5.1.7/source/include/uapi/linux/hiddev.h#L155 ioctl$HIDIOCGVERSION(fd fd_hiddev, cmd const[HIDIOCGVERSION], arg ptr[out, int32]) -ioctl$HIDIOCAPPLICATION(fd fd_hiddev, cmd const[HIDIOCAPPLICATION], arg int32) +ioctl$HIDIOCAPPLICATION(fd fd_hiddev, cmd const[HIDIOCAPPLICATION], arg intptr) ioctl$HIDIOCGDEVINFO(fd fd_hiddev, cmd const[HIDIOCGDEVINFO], arg buffer[out]) ioctl$HIDIOCGSTRING(fd fd_hiddev, cmd const[HIDIOCGSTRING], arg ptr[inout, hiddev_ioctl_string_arg]) ioctl$HIDIOCINITREPORT(fd fd_hiddev, cmd const[HIDIOCINITREPORT], arg const[0]) diff --git a/sys/linux/dev_usbmon.txt b/sys/linux/dev_usbmon.txt index 48f098adb..5b5cf2dc4 100644 --- a/sys/linux/dev_usbmon.txt +++ b/sys/linux/dev_usbmon.txt @@ -36,8 +36,8 @@ _ = __NR_mmap2 ioctl$MON_IOCQ_URB_LEN(fd fd_usbmon, cmd const[MON_IOCQ_URB_LEN]) ioctl$MON_IOCQ_RING_SIZE(fd fd_usbmon, cmd const[MON_IOCQ_RING_SIZE]) -ioctl$MON_IOCT_RING_SIZE(fd fd_usbmon, cmd const[MON_IOCT_RING_SIZE], arg int32[BUFF_MIN:BUFF_MAX]) -ioctl$MON_IOCH_MFLUSH(fd fd_usbmon, cmd const[MON_IOCH_MFLUSH], arg int32) +ioctl$MON_IOCT_RING_SIZE(fd fd_usbmon, cmd const[MON_IOCT_RING_SIZE], arg intptr[BUFF_MIN:BUFF_MAX]) +ioctl$MON_IOCH_MFLUSH(fd fd_usbmon, cmd const[MON_IOCH_MFLUSH], arg intptr) ioctl$MON_IOCX_GET(fd fd_usbmon, cmd const[MON_IOCX_GET], arg ptr[in, mon_bin_get]) ioctl$MON_IOCX_GETX(fd fd_usbmon, cmd const[MON_IOCX_GETX], arg ptr[in, mon_bin_get]) diff --git a/sys/linux/gen/386.go b/sys/linux/gen/386.go index d31e8d394..bd8c91018 100644 --- a/sys/linux/gen/386.go +++ b/sys/linux/gen/386.go @@ -50412,7 +50412,7 @@ var syscalls_386 = []*Syscall{ {NR: 55, Name: "fcntl$setsig", CallName: "fcntl", Args: []Type{ &ResourceType{TypeCommon: TypeCommon{TypeName: "fd", FldName: "fd", TypeSize: 4}}, &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "cmd", TypeSize: 4}}, Val: 10}, - &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int32", FldName: "sig", TypeSize: 4}}, Kind: 1, RangeEnd: 65}, + &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "intptr", FldName: "sig", TypeSize: 4}}, Kind: 1, RangeEnd: 65}, }}, {NR: 55, Name: "fcntl$setstatus", CallName: "fcntl", Args: []Type{ &ResourceType{TypeCommon: TypeCommon{TypeName: "fd", FldName: "fd", TypeSize: 4}}, @@ -52448,7 +52448,7 @@ var syscalls_386 = []*Syscall{ }, Ret: &ResourceType{TypeCommon: TypeCommon{TypeName: "fd_io_uring", FldName: "ret", TypeSize: 4, ArgDir: 1}}}, {NR: 54, Name: "ioctl", CallName: "ioctl", Args: []Type{ &ResourceType{TypeCommon: TypeCommon{TypeName: "fd", FldName: "fd", TypeSize: 4}}, - &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "intptr", FldName: "cmd", TypeSize: 4}}}, + &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int32", FldName: "cmd", TypeSize: 4}}}, &PtrType{TypeCommon{TypeName: "ptr", FldName: "arg", TypeSize: 4}, &BufferType{TypeCommon: TypeCommon{TypeName: "array", IsVarlen: true}}}, }}, {NR: 54, Name: "ioctl$ASHMEM_GET_NAME", CallName: "ioctl", Args: []Type{ @@ -52715,11 +52715,6 @@ var syscalls_386 = []*Syscall{ &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "cmd", TypeSize: 4}}, Val: 2147762980}, &PtrType{TypeCommon{TypeName: "ptr", FldName: "arg", TypeSize: 4}, &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int32", TypeSize: 4}}, Kind: 1, RangeEnd: 1}}, }}, - {NR: 54, Name: "ioctl$CDROMAUDIOBUFSIZ", CallName: "ioctl", Args: []Type{ - &ResourceType{TypeCommon: TypeCommon{TypeName: "fd_cdrom", FldName: "fd", TypeSize: 4}}, - &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "cmd", TypeSize: 4}}, Val: 21378}, - &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int32", FldName: "val", TypeSize: 4}}}, - }}, {NR: 54, Name: "ioctl$CDROMCLOSETRAY", CallName: "ioctl", MissingArgs: 1, Args: []Type{ &ResourceType{TypeCommon: TypeCommon{TypeName: "fd_cdrom", FldName: "fd", TypeSize: 4}}, &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "cmd", TypeSize: 4}}, Val: 21273}, @@ -52736,7 +52731,7 @@ var syscalls_386 = []*Syscall{ {NR: 54, Name: "ioctl$CDROMGETSPINDOWN", CallName: "ioctl", Args: []Type{ &ResourceType{TypeCommon: TypeCommon{TypeName: "fd_cdrom", FldName: "fd", TypeSize: 4}}, &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "cmd", TypeSize: 4}}, Val: 21277}, - &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int8", FldName: "arg", TypeSize: 1}}}, + &PtrType{TypeCommon{TypeName: "ptr", FldName: "arg", TypeSize: 4}, &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int8", TypeSize: 1, ArgDir: 1}}}}, }}, {NR: 54, Name: "ioctl$CDROMMULTISESSION", CallName: "ioctl", Args: []Type{ &ResourceType{TypeCommon: TypeCommon{TypeName: "fd_cdrom", FldName: "fd", TypeSize: 4}}, @@ -52818,7 +52813,7 @@ var syscalls_386 = []*Syscall{ {NR: 54, Name: "ioctl$CDROMSETSPINDOWN", CallName: "ioctl", Args: []Type{ &ResourceType{TypeCommon: TypeCommon{TypeName: "fd_cdrom", FldName: "fd", TypeSize: 4}}, &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "cmd", TypeSize: 4}}, Val: 21278}, - &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int8", FldName: "arg", TypeSize: 1}}}, + &PtrType{TypeCommon{TypeName: "ptr", FldName: "arg", TypeSize: 4}, &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int8", TypeSize: 1}}, Kind: 1, RangeEnd: 15}}, }}, {NR: 54, Name: "ioctl$CDROMSTART", CallName: "ioctl", MissingArgs: 1, Args: []Type{ &ResourceType{TypeCommon: TypeCommon{TypeName: "fd_cdrom", FldName: "fd", TypeSize: 4}}, @@ -53921,7 +53916,7 @@ var syscalls_386 = []*Syscall{ {NR: 54, Name: "ioctl$HIDIOCAPPLICATION", CallName: "ioctl", Args: []Type{ &ResourceType{TypeCommon: TypeCommon{TypeName: "fd_hiddev", FldName: "fd", TypeSize: 4}}, &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "cmd", TypeSize: 4}}, Val: 18434}, - &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int32", FldName: "arg", TypeSize: 4}}}, + &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "intptr", FldName: "arg", TypeSize: 4}}}, }}, {NR: 54, Name: "ioctl$HIDIOCGCOLLECTIONINDEX", CallName: "ioctl", Args: []Type{ &ResourceType{TypeCommon: TypeCommon{TypeName: "fd_hiddev", FldName: "fd", TypeSize: 4}}, @@ -54309,7 +54304,7 @@ var syscalls_386 = []*Syscall{ {NR: 54, Name: "ioctl$KDSIGACCEPT", CallName: "ioctl", Args: []Type{ &ResourceType{TypeCommon: TypeCommon{TypeName: "fd_tty", FldName: "fd", TypeSize: 4}}, &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "cmd", TypeSize: 4}}, Val: 19278}, - &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int32", FldName: "arg", TypeSize: 4}}, Kind: 1, RangeEnd: 65}, + &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "intptr", FldName: "arg", TypeSize: 4}}, Kind: 1, RangeEnd: 65}, }}, {NR: 54, Name: "ioctl$KDSKBENT", CallName: "ioctl", Args: []Type{ &ResourceType{TypeCommon: TypeCommon{TypeName: "fd_tty", FldName: "fd", TypeSize: 4}}, @@ -54915,7 +54910,7 @@ var syscalls_386 = []*Syscall{ {NR: 54, Name: "ioctl$MON_IOCH_MFLUSH", CallName: "ioctl", Args: []Type{ &ResourceType{TypeCommon: TypeCommon{TypeName: "fd_usbmon", FldName: "fd", TypeSize: 4}}, &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "cmd", TypeSize: 4}}, Val: 37384}, - &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int32", FldName: "arg", TypeSize: 4}}}, + &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "intptr", FldName: "arg", TypeSize: 4}}}, }}, {NR: 54, Name: "ioctl$MON_IOCQ_RING_SIZE", CallName: "ioctl", MissingArgs: 1, Args: []Type{ &ResourceType{TypeCommon: TypeCommon{TypeName: "fd_usbmon", FldName: "fd", TypeSize: 4}}, @@ -54928,7 +54923,7 @@ var syscalls_386 = []*Syscall{ {NR: 54, Name: "ioctl$MON_IOCT_RING_SIZE", CallName: "ioctl", Args: []Type{ &ResourceType{TypeCommon: TypeCommon{TypeName: "fd_usbmon", FldName: "fd", TypeSize: 4}}, &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "cmd", TypeSize: 4}}, Val: 37380}, - &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int32", FldName: "arg", TypeSize: 4}}, Kind: 1, RangeBegin: 8192, RangeEnd: 1228800}, + &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "intptr", FldName: "arg", TypeSize: 4}}, Kind: 1, RangeBegin: 8192, RangeEnd: 1228800}, }}, {NR: 54, Name: "ioctl$MON_IOCX_GET", CallName: "ioctl", Args: []Type{ &ResourceType{TypeCommon: TypeCommon{TypeName: "fd_usbmon", FldName: "fd", TypeSize: 4}}, @@ -55252,7 +55247,7 @@ var syscalls_386 = []*Syscall{ {NR: 54, Name: "ioctl$PTP_ENABLE_PPS", CallName: "ioctl", Args: []Type{ &ResourceType{TypeCommon: TypeCommon{TypeName: "fd_ptp", FldName: "fd", TypeSize: 4}}, &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "cmd", TypeSize: 4}}, Val: 1074019588}, - &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int32", FldName: "arg", TypeSize: 4}}, Kind: 1, RangeEnd: 1}, + &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "intptr", FldName: "arg", TypeSize: 4}}, Kind: 1, RangeEnd: 1}, }}, {NR: 54, Name: "ioctl$PTP_EXTTS_REQUEST", CallName: "ioctl", Args: []Type{ &ResourceType{TypeCommon: TypeCommon{TypeName: "fd_ptp", FldName: "fd", TypeSize: 4}}, @@ -56821,7 +56816,7 @@ var syscalls_386 = []*Syscall{ {NR: 54, Name: "ioctl$TIOCSIG", CallName: "ioctl", Args: []Type{ &ResourceType{TypeCommon: TypeCommon{TypeName: "fd_tty", FldName: "fd", TypeSize: 4}}, &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "cmd", TypeSize: 4}}, Val: 1074025526}, - &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int32", FldName: "arg", TypeSize: 4}}, Kind: 1, RangeEnd: 65}, + &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "intptr", FldName: "arg", TypeSize: 4}}, Kind: 1, RangeEnd: 65}, }}, {NR: 54, Name: "ioctl$TIOCSISO7816", CallName: "ioctl", Args: []Type{ &ResourceType{TypeCommon: TypeCommon{TypeName: "fd_tty", FldName: "fd", TypeSize: 4}}, @@ -56986,7 +56981,7 @@ var syscalls_386 = []*Syscall{ {NR: 54, Name: "ioctl$TUNSETNOCSUM", CallName: "ioctl", Args: []Type{ &ResourceType{TypeCommon: TypeCommon{TypeName: "fd_tun", FldName: "fd", TypeSize: 4}}, &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "cmd", TypeSize: 4}}, Val: 1074025672}, - &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int32", FldName: "arg", TypeSize: 4}}, Kind: 1, RangeEnd: 1}, + &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "intptr", FldName: "arg", TypeSize: 4}}, Kind: 1, RangeEnd: 1}, }}, {NR: 54, Name: "ioctl$TUNSETOFFLOAD", CallName: "ioctl", Args: []Type{ &ResourceType{TypeCommon: TypeCommon{TypeName: "fd_tun", FldName: "fd", TypeSize: 4}}, @@ -57001,7 +56996,7 @@ var syscalls_386 = []*Syscall{ {NR: 54, Name: "ioctl$TUNSETPERSIST", CallName: "ioctl", Args: []Type{ &ResourceType{TypeCommon: TypeCommon{TypeName: "fd_tun", FldName: "fd", TypeSize: 4}}, &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "cmd", TypeSize: 4}}, Val: 1074025675}, - &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int32", FldName: "arg", TypeSize: 4}}, Kind: 1, RangeEnd: 1}, + &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "intptr", FldName: "arg", TypeSize: 4}}, Kind: 1, RangeEnd: 1}, }}, {NR: 54, Name: "ioctl$TUNSETQUEUE", CallName: "ioctl", Args: []Type{ &ResourceType{TypeCommon: TypeCommon{TypeName: "fd_tun", FldName: "fd", TypeSize: 4}}, @@ -58527,7 +58522,7 @@ var syscalls_386 = []*Syscall{ }}, {NR: 54, Name: "ioctl$sock_netdev_private", CallName: "ioctl", Args: []Type{ &ResourceType{TypeCommon: TypeCommon{TypeName: "sock", FldName: "fd", TypeSize: 4}}, - &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int16", FldName: "cmd", TypeSize: 2}}, Kind: 1, RangeBegin: 35312, RangeEnd: 35327}, + &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int32", FldName: "cmd", TypeSize: 4}}, Kind: 1, RangeBegin: 35312, RangeEnd: 35327}, &PtrType{TypeCommon{TypeName: "ptr", FldName: "arg", TypeSize: 4}, &BufferType{TypeCommon: TypeCommon{TypeName: "array", IsVarlen: true}}}, }}, {NR: 54, Name: "ioctl$sock_netrom_SIOCADDRT", CallName: "ioctl", Args: []Type{ @@ -58542,7 +58537,7 @@ var syscalls_386 = []*Syscall{ }}, {NR: 54, Name: "ioctl$sock_proto_private", CallName: "ioctl", Args: []Type{ &ResourceType{TypeCommon: TypeCommon{TypeName: "sock", FldName: "fd", TypeSize: 4}}, - &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int16", FldName: "cmd", TypeSize: 2}}, Kind: 1, RangeBegin: 35296, RangeEnd: 35311}, + &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int32", FldName: "cmd", TypeSize: 4}}, Kind: 1, RangeBegin: 35296, RangeEnd: 35311}, &PtrType{TypeCommon{TypeName: "ptr", FldName: "arg", TypeSize: 4}, &BufferType{TypeCommon: TypeCommon{TypeName: "array", IsVarlen: true}}}, }}, {NR: 54, Name: "ioctl$sock_rose_SIOCADDRT", CallName: "ioctl", Args: []Type{ @@ -58788,7 +58783,7 @@ var syscalls_386 = []*Syscall{ {NR: 288, Name: "keyctl$set_timeout", CallName: "keyctl", MissingArgs: 2, Args: []Type{ &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "code", TypeSize: 4}}, Val: 15}, &ResourceType{TypeCommon: TypeCommon{TypeName: "key", FldName: "key", TypeSize: 4}}, - &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int32", FldName: "timeout", TypeSize: 4}}}, + &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "intptr", FldName: "timeout", TypeSize: 4}}}, }}, {NR: 288, Name: "keyctl$setperm", CallName: "keyctl", MissingArgs: 2, Args: []Type{ &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "code", TypeSize: 4}}, Val: 5}, @@ -58843,7 +58838,7 @@ var syscalls_386 = []*Syscall{ &LenType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "len", FldName: "size", TypeSize: 4}}, Path: []string{"list"}}, }}, {NR: 253, Name: "lookup_dcookie", CallName: "lookup_dcookie", Args: []Type{ - &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int64", FldName: "cookie", TypeSize: 8}}}, + &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "intptr", FldName: "cookie", TypeSize: 4}}}, &PtrType{TypeCommon{TypeName: "ptr", FldName: "buf", TypeSize: 4}, &BufferType{TypeCommon: TypeCommon{TypeName: "array", ArgDir: 1, IsVarlen: true}}}, &LenType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "len", FldName: "len", TypeSize: 4}}, Path: []string{"buf"}}, }}, @@ -59040,7 +59035,7 @@ var syscalls_386 = []*Syscall{ &FlagsType{IntTypeCommon{TypeCommon: TypeCommon{TypeName: "mmap_prot", FldName: "prot", TypeSize: 4}}, []uint64{1, 2, 4, 8, 16777216, 33554432}, true}, &FlagsType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "mmap_flags", FldName: "flags", TypeSize: 4}}, Vals: []uint64{0, 1, 2, 3, 16, 32, 64, 256, 2048, 4096, 8192, 16384, 32768, 65536, 131072, 262144, 524288, 1048576, 67108864}}, &ResourceType{TypeCommon: TypeCommon{TypeName: "fd", FldName: "fd", TypeSize: 4}}, - &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int32", FldName: "offset", TypeSize: 4}}, Kind: 1, RangeEnd: 4294967295, Align: 4096}, + &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "intptr", FldName: "offset", TypeSize: 4}}, Kind: 1, RangeEnd: 4294967295, Align: 4096}, }}, {NR: 192, Name: "mmap$IORING_OFF_CQ_RING", CallName: "mmap", Args: []Type{ &VmaType{TypeCommon: TypeCommon{TypeName: "vma", FldName: "addr", TypeSize: 4}}, @@ -59088,7 +59083,7 @@ var syscalls_386 = []*Syscall{ &FlagsType{IntTypeCommon{TypeCommon: TypeCommon{TypeName: "mmap_prot", FldName: "prot", TypeSize: 4}}, []uint64{1, 2, 4, 8, 16777216, 33554432}, true}, &FlagsType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "mmap_flags", FldName: "flags", TypeSize: 4}}, Vals: []uint64{0, 1, 2, 3, 16, 32, 64, 256, 2048, 4096, 8192, 16384, 32768, 65536, 131072, 262144, 524288, 1048576, 67108864}}, &ResourceType{TypeCommon: TypeCommon{TypeName: "fd_fb", FldName: "fd", TypeSize: 4}}, - &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int64", FldName: "off", TypeSize: 8}}, Kind: 1, RangeEnd: 1048576, Align: 4096}, + &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "intptr", FldName: "off", TypeSize: 4}}, Kind: 1, RangeEnd: 1048576, Align: 4096}, }}, {NR: 192, Name: "mmap$perf", CallName: "mmap", Args: []Type{ &VmaType{TypeCommon: TypeCommon{TypeName: "vma", FldName: "addr", TypeSize: 4}}, @@ -60426,11 +60421,11 @@ var syscalls_386 = []*Syscall{ }}, {NR: 172, Name: "prctl$PR_CAPBSET_DROP", CallName: "prctl", MissingArgs: 2, Args: []Type{ &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "option", TypeSize: 4}}, Val: 24}, - &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int32", FldName: "arg", TypeSize: 4}}, Kind: 1, RangeEnd: 37}, + &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "intptr", FldName: "arg", TypeSize: 4}}, Kind: 1, RangeEnd: 37}, }}, {NR: 172, Name: "prctl$PR_CAPBSET_READ", CallName: "prctl", MissingArgs: 2, Args: []Type{ &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "option", TypeSize: 4}}, Val: 23}, - &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int32", FldName: "arg", TypeSize: 4}}, Kind: 1, RangeEnd: 37}, + &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "intptr", FldName: "arg", TypeSize: 4}}, Kind: 1, RangeEnd: 37}, }}, {NR: 172, Name: "prctl$PR_CAP_AMBIENT", CallName: "prctl", MissingArgs: 1, Args: []Type{ &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "option", TypeSize: 4}}, Val: 47}, @@ -60580,7 +60575,7 @@ var syscalls_386 = []*Syscall{ }}, {NR: 172, Name: "prctl$PR_SET_PDEATHSIG", CallName: "prctl", MissingArgs: 2, Args: []Type{ &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "option", TypeSize: 4}}, Val: 1}, - &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int32", FldName: "arg", TypeSize: 4}}, Kind: 1, RangeEnd: 65}, + &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "intptr", FldName: "arg", TypeSize: 4}}, Kind: 1, RangeEnd: 65}, }}, {NR: 172, Name: "prctl$PR_SET_PTRACER", CallName: "prctl", MissingArgs: 2, Args: []Type{ &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "option", TypeSize: 4}}, Val: 1499557217}, @@ -65248,12 +65243,12 @@ var syscalls_386 = []*Syscall{ {NR: 359, Name: "socket$caif_seqpacket", CallName: "socket", Args: []Type{ &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "domain", TypeSize: 4}}, Val: 37}, &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "type", TypeSize: 4}}, Val: 5}, - &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int32", FldName: "proto", TypeSize: 4}}, Kind: 1, RangeEnd: 5}, + &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int8", FldName: "proto", TypeSize: 1}}, Kind: 1, RangeEnd: 5}, }, Ret: &ResourceType{TypeCommon: TypeCommon{TypeName: "sock_caif", FldName: "ret", TypeSize: 4, ArgDir: 1}}}, {NR: 359, Name: "socket$caif_stream", CallName: "socket", Args: []Type{ &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "domain", TypeSize: 4}}, Val: 37}, &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "type", TypeSize: 4}}, Val: 1}, - &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int32", FldName: "proto", TypeSize: 4}}, Kind: 1, RangeEnd: 5}, + &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int8", FldName: "proto", TypeSize: 1}}, Kind: 1, RangeEnd: 5}, }, Ret: &ResourceType{TypeCommon: TypeCommon{TypeName: "sock_caif", FldName: "ret", TypeSize: 4, ArgDir: 1}}}, {NR: 359, Name: "socket$can_bcm", CallName: "socket", Args: []Type{ &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "domain", TypeSize: 4}}, Val: 29}, @@ -77597,4 +77592,4 @@ var consts_386 = []ConstValue{ {"ethtool_per_queue_op_size", 128}, } -const revision_386 = "33b5499ae4ba720a5aadcf47c08c27e96fb67832" +const revision_386 = "6480754ea5878e2efb25d917123a1896b8b359cf" diff --git a/sys/linux/gen/amd64.go b/sys/linux/gen/amd64.go index 3b1d6c14d..90c551337 100644 --- a/sys/linux/gen/amd64.go +++ b/sys/linux/gen/amd64.go @@ -51410,7 +51410,7 @@ var syscalls_amd64 = []*Syscall{ {NR: 72, Name: "fcntl$setsig", CallName: "fcntl", Args: []Type{ &ResourceType{TypeCommon: TypeCommon{TypeName: "fd", FldName: "fd", TypeSize: 4}}, &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "cmd", TypeSize: 8}}, Val: 10}, - &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int32", FldName: "sig", TypeSize: 4}}, Kind: 1, RangeEnd: 65}, + &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "intptr", FldName: "sig", TypeSize: 8}}, Kind: 1, RangeEnd: 65}, }}, {NR: 72, Name: "fcntl$setstatus", CallName: "fcntl", Args: []Type{ &ResourceType{TypeCommon: TypeCommon{TypeName: "fd", FldName: "fd", TypeSize: 4}}, @@ -53436,7 +53436,7 @@ var syscalls_amd64 = []*Syscall{ }, Ret: &ResourceType{TypeCommon: TypeCommon{TypeName: "fd_io_uring", FldName: "ret", TypeSize: 4, ArgDir: 1}}}, {NR: 16, Name: "ioctl", CallName: "ioctl", Args: []Type{ &ResourceType{TypeCommon: TypeCommon{TypeName: "fd", FldName: "fd", TypeSize: 4}}, - &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "intptr", FldName: "cmd", TypeSize: 8}}}, + &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int32", FldName: "cmd", TypeSize: 4}}}, &PtrType{TypeCommon{TypeName: "ptr", FldName: "arg", TypeSize: 8}, &BufferType{TypeCommon: TypeCommon{TypeName: "array", IsVarlen: true}}}, }}, {NR: 16, Name: "ioctl$ASHMEM_GET_NAME", CallName: "ioctl", Args: []Type{ @@ -53703,11 +53703,6 @@ var syscalls_amd64 = []*Syscall{ &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "cmd", TypeSize: 8}}, Val: 2147762980}, &PtrType{TypeCommon{TypeName: "ptr", FldName: "arg", TypeSize: 8}, &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int32", TypeSize: 4}}, Kind: 1, RangeEnd: 1}}, }}, - {NR: 16, Name: "ioctl$CDROMAUDIOBUFSIZ", CallName: "ioctl", Args: []Type{ - &ResourceType{TypeCommon: TypeCommon{TypeName: "fd_cdrom", FldName: "fd", TypeSize: 4}}, - &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "cmd", TypeSize: 8}}, Val: 21378}, - &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int32", FldName: "val", TypeSize: 4}}}, - }}, {NR: 16, Name: "ioctl$CDROMCLOSETRAY", CallName: "ioctl", MissingArgs: 1, Args: []Type{ &ResourceType{TypeCommon: TypeCommon{TypeName: "fd_cdrom", FldName: "fd", TypeSize: 4}}, &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "cmd", TypeSize: 8}}, Val: 21273}, @@ -53724,7 +53719,7 @@ var syscalls_amd64 = []*Syscall{ {NR: 16, Name: "ioctl$CDROMGETSPINDOWN", CallName: "ioctl", Args: []Type{ &ResourceType{TypeCommon: TypeCommon{TypeName: "fd_cdrom", FldName: "fd", TypeSize: 4}}, &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "cmd", TypeSize: 8}}, Val: 21277}, - &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int8", FldName: "arg", TypeSize: 1}}}, + &PtrType{TypeCommon{TypeName: "ptr", FldName: "arg", TypeSize: 8}, &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int8", TypeSize: 1, ArgDir: 1}}}}, }}, {NR: 16, Name: "ioctl$CDROMMULTISESSION", CallName: "ioctl", Args: []Type{ &ResourceType{TypeCommon: TypeCommon{TypeName: "fd_cdrom", FldName: "fd", TypeSize: 4}}, @@ -53806,7 +53801,7 @@ var syscalls_amd64 = []*Syscall{ {NR: 16, Name: "ioctl$CDROMSETSPINDOWN", CallName: "ioctl", Args: []Type{ &ResourceType{TypeCommon: TypeCommon{TypeName: "fd_cdrom", FldName: "fd", TypeSize: 4}}, &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "cmd", TypeSize: 8}}, Val: 21278}, - &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int8", FldName: "arg", TypeSize: 1}}}, + &PtrType{TypeCommon{TypeName: "ptr", FldName: "arg", TypeSize: 8}, &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int8", TypeSize: 1}}, Kind: 1, RangeEnd: 15}}, }}, {NR: 16, Name: "ioctl$CDROMSTART", CallName: "ioctl", MissingArgs: 1, Args: []Type{ &ResourceType{TypeCommon: TypeCommon{TypeName: "fd_cdrom", FldName: "fd", TypeSize: 4}}, @@ -54909,7 +54904,7 @@ var syscalls_amd64 = []*Syscall{ {NR: 16, Name: "ioctl$HIDIOCAPPLICATION", CallName: "ioctl", Args: []Type{ &ResourceType{TypeCommon: TypeCommon{TypeName: "fd_hiddev", FldName: "fd", TypeSize: 4}}, &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "cmd", TypeSize: 8}}, Val: 18434}, - &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int32", FldName: "arg", TypeSize: 4}}}, + &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "intptr", FldName: "arg", TypeSize: 8}}}, }}, {NR: 16, Name: "ioctl$HIDIOCGCOLLECTIONINDEX", CallName: "ioctl", Args: []Type{ &ResourceType{TypeCommon: TypeCommon{TypeName: "fd_hiddev", FldName: "fd", TypeSize: 4}}, @@ -55297,7 +55292,7 @@ var syscalls_amd64 = []*Syscall{ {NR: 16, Name: "ioctl$KDSIGACCEPT", CallName: "ioctl", Args: []Type{ &ResourceType{TypeCommon: TypeCommon{TypeName: "fd_tty", FldName: "fd", TypeSize: 4}}, &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "cmd", TypeSize: 8}}, Val: 19278}, - &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int32", FldName: "arg", TypeSize: 4}}, Kind: 1, RangeEnd: 65}, + &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "intptr", FldName: "arg", TypeSize: 8}}, Kind: 1, RangeEnd: 65}, }}, {NR: 16, Name: "ioctl$KDSKBENT", CallName: "ioctl", Args: []Type{ &ResourceType{TypeCommon: TypeCommon{TypeName: "fd_tty", FldName: "fd", TypeSize: 4}}, @@ -55903,7 +55898,7 @@ var syscalls_amd64 = []*Syscall{ {NR: 16, Name: "ioctl$MON_IOCH_MFLUSH", CallName: "ioctl", Args: []Type{ &ResourceType{TypeCommon: TypeCommon{TypeName: "fd_usbmon", FldName: "fd", TypeSize: 4}}, &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "cmd", TypeSize: 8}}, Val: 37384}, - &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int32", FldName: "arg", TypeSize: 4}}}, + &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "intptr", FldName: "arg", TypeSize: 8}}}, }}, {NR: 16, Name: "ioctl$MON_IOCQ_RING_SIZE", CallName: "ioctl", MissingArgs: 1, Args: []Type{ &ResourceType{TypeCommon: TypeCommon{TypeName: "fd_usbmon", FldName: "fd", TypeSize: 4}}, @@ -55916,7 +55911,7 @@ var syscalls_amd64 = []*Syscall{ {NR: 16, Name: "ioctl$MON_IOCT_RING_SIZE", CallName: "ioctl", Args: []Type{ &ResourceType{TypeCommon: TypeCommon{TypeName: "fd_usbmon", FldName: "fd", TypeSize: 4}}, &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "cmd", TypeSize: 8}}, Val: 37380}, - &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int32", FldName: "arg", TypeSize: 4}}, Kind: 1, RangeBegin: 8192, RangeEnd: 1228800}, + &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "intptr", FldName: "arg", TypeSize: 8}}, Kind: 1, RangeBegin: 8192, RangeEnd: 1228800}, }}, {NR: 16, Name: "ioctl$MON_IOCX_GET", CallName: "ioctl", Args: []Type{ &ResourceType{TypeCommon: TypeCommon{TypeName: "fd_usbmon", FldName: "fd", TypeSize: 4}}, @@ -56240,7 +56235,7 @@ var syscalls_amd64 = []*Syscall{ {NR: 16, Name: "ioctl$PTP_ENABLE_PPS", CallName: "ioctl", Args: []Type{ &ResourceType{TypeCommon: TypeCommon{TypeName: "fd_ptp", FldName: "fd", TypeSize: 4}}, &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "cmd", TypeSize: 8}}, Val: 1074019588}, - &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int32", FldName: "arg", TypeSize: 4}}, Kind: 1, RangeEnd: 1}, + &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "intptr", FldName: "arg", TypeSize: 8}}, Kind: 1, RangeEnd: 1}, }}, {NR: 16, Name: "ioctl$PTP_EXTTS_REQUEST", CallName: "ioctl", Args: []Type{ &ResourceType{TypeCommon: TypeCommon{TypeName: "fd_ptp", FldName: "fd", TypeSize: 4}}, @@ -57844,7 +57839,7 @@ var syscalls_amd64 = []*Syscall{ {NR: 16, Name: "ioctl$TIOCSIG", CallName: "ioctl", Args: []Type{ &ResourceType{TypeCommon: TypeCommon{TypeName: "fd_tty", FldName: "fd", TypeSize: 4}}, &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "cmd", TypeSize: 8}}, Val: 1074025526}, - &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int32", FldName: "arg", TypeSize: 4}}, Kind: 1, RangeEnd: 65}, + &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "intptr", FldName: "arg", TypeSize: 8}}, Kind: 1, RangeEnd: 65}, }}, {NR: 16, Name: "ioctl$TIOCSISO7816", CallName: "ioctl", Args: []Type{ &ResourceType{TypeCommon: TypeCommon{TypeName: "fd_tty", FldName: "fd", TypeSize: 4}}, @@ -58009,7 +58004,7 @@ var syscalls_amd64 = []*Syscall{ {NR: 16, Name: "ioctl$TUNSETNOCSUM", CallName: "ioctl", Args: []Type{ &ResourceType{TypeCommon: TypeCommon{TypeName: "fd_tun", FldName: "fd", TypeSize: 4}}, &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "cmd", TypeSize: 8}}, Val: 1074025672}, - &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int32", FldName: "arg", TypeSize: 4}}, Kind: 1, RangeEnd: 1}, + &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "intptr", FldName: "arg", TypeSize: 8}}, Kind: 1, RangeEnd: 1}, }}, {NR: 16, Name: "ioctl$TUNSETOFFLOAD", CallName: "ioctl", Args: []Type{ &ResourceType{TypeCommon: TypeCommon{TypeName: "fd_tun", FldName: "fd", TypeSize: 4}}, @@ -58024,7 +58019,7 @@ var syscalls_amd64 = []*Syscall{ {NR: 16, Name: "ioctl$TUNSETPERSIST", CallName: "ioctl", Args: []Type{ &ResourceType{TypeCommon: TypeCommon{TypeName: "fd_tun", FldName: "fd", TypeSize: 4}}, &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "cmd", TypeSize: 8}}, Val: 1074025675}, - &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int32", FldName: "arg", TypeSize: 4}}, Kind: 1, RangeEnd: 1}, + &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "intptr", FldName: "arg", TypeSize: 8}}, Kind: 1, RangeEnd: 1}, }}, {NR: 16, Name: "ioctl$TUNSETQUEUE", CallName: "ioctl", Args: []Type{ &ResourceType{TypeCommon: TypeCommon{TypeName: "fd_tun", FldName: "fd", TypeSize: 4}}, @@ -59550,7 +59545,7 @@ var syscalls_amd64 = []*Syscall{ }}, {NR: 16, Name: "ioctl$sock_netdev_private", CallName: "ioctl", Args: []Type{ &ResourceType{TypeCommon: TypeCommon{TypeName: "sock", FldName: "fd", TypeSize: 4}}, - &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int16", FldName: "cmd", TypeSize: 2}}, Kind: 1, RangeBegin: 35312, RangeEnd: 35327}, + &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int32", FldName: "cmd", TypeSize: 4}}, Kind: 1, RangeBegin: 35312, RangeEnd: 35327}, &PtrType{TypeCommon{TypeName: "ptr", FldName: "arg", TypeSize: 8}, &BufferType{TypeCommon: TypeCommon{TypeName: "array", IsVarlen: true}}}, }}, {NR: 16, Name: "ioctl$sock_netrom_SIOCADDRT", CallName: "ioctl", Args: []Type{ @@ -59565,7 +59560,7 @@ var syscalls_amd64 = []*Syscall{ }}, {NR: 16, Name: "ioctl$sock_proto_private", CallName: "ioctl", Args: []Type{ &ResourceType{TypeCommon: TypeCommon{TypeName: "sock", FldName: "fd", TypeSize: 4}}, - &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int16", FldName: "cmd", TypeSize: 2}}, Kind: 1, RangeBegin: 35296, RangeEnd: 35311}, + &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int32", FldName: "cmd", TypeSize: 4}}, Kind: 1, RangeBegin: 35296, RangeEnd: 35311}, &PtrType{TypeCommon{TypeName: "ptr", FldName: "arg", TypeSize: 8}, &BufferType{TypeCommon: TypeCommon{TypeName: "array", IsVarlen: true}}}, }}, {NR: 16, Name: "ioctl$sock_rose_SIOCADDRT", CallName: "ioctl", Args: []Type{ @@ -59811,7 +59806,7 @@ var syscalls_amd64 = []*Syscall{ {NR: 250, Name: "keyctl$set_timeout", CallName: "keyctl", MissingArgs: 2, Args: []Type{ &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "code", TypeSize: 8}}, Val: 15}, &ResourceType{TypeCommon: TypeCommon{TypeName: "key", FldName: "key", TypeSize: 4}}, - &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int32", FldName: "timeout", TypeSize: 4}}}, + &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "intptr", FldName: "timeout", TypeSize: 8}}}, }}, {NR: 250, Name: "keyctl$setperm", CallName: "keyctl", MissingArgs: 2, Args: []Type{ &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "code", TypeSize: 8}}, Val: 5}, @@ -59866,7 +59861,7 @@ var syscalls_amd64 = []*Syscall{ &LenType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "len", FldName: "size", TypeSize: 8}}, Path: []string{"list"}}, }}, {NR: 212, Name: "lookup_dcookie", CallName: "lookup_dcookie", Args: []Type{ - &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int64", FldName: "cookie", TypeSize: 8}}}, + &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "intptr", FldName: "cookie", TypeSize: 8}}}, &PtrType{TypeCommon{TypeName: "ptr", FldName: "buf", TypeSize: 8}, &BufferType{TypeCommon: TypeCommon{TypeName: "array", ArgDir: 1, IsVarlen: true}}}, &LenType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "len", FldName: "len", TypeSize: 8}}, Path: []string{"buf"}}, }}, @@ -60059,7 +60054,7 @@ var syscalls_amd64 = []*Syscall{ &FlagsType{IntTypeCommon{TypeCommon: TypeCommon{TypeName: "mmap_prot", FldName: "prot", TypeSize: 8}}, []uint64{1, 2, 4, 8, 16777216, 33554432}, true}, &FlagsType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "mmap_flags", FldName: "flags", TypeSize: 8}}, Vals: []uint64{0, 1, 2, 3, 16, 32, 64, 256, 2048, 4096, 8192, 16384, 32768, 65536, 131072, 262144, 524288, 1048576, 67108864}}, &ResourceType{TypeCommon: TypeCommon{TypeName: "fd", FldName: "fd", TypeSize: 4}}, - &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int32", FldName: "offset", TypeSize: 4}}, Kind: 1, RangeEnd: 4294967295, Align: 4096}, + &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "intptr", FldName: "offset", TypeSize: 8}}, Kind: 1, RangeEnd: 4294967295, Align: 4096}, }}, {NR: 9, Name: "mmap$IORING_OFF_CQ_RING", CallName: "mmap", Args: []Type{ &VmaType{TypeCommon: TypeCommon{TypeName: "vma", FldName: "addr", TypeSize: 8}}, @@ -60107,7 +60102,7 @@ var syscalls_amd64 = []*Syscall{ &FlagsType{IntTypeCommon{TypeCommon: TypeCommon{TypeName: "mmap_prot", FldName: "prot", TypeSize: 8}}, []uint64{1, 2, 4, 8, 16777216, 33554432}, true}, &FlagsType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "mmap_flags", FldName: "flags", TypeSize: 8}}, Vals: []uint64{0, 1, 2, 3, 16, 32, 64, 256, 2048, 4096, 8192, 16384, 32768, 65536, 131072, 262144, 524288, 1048576, 67108864}}, &ResourceType{TypeCommon: TypeCommon{TypeName: "fd_fb", FldName: "fd", TypeSize: 4}}, - &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int64", FldName: "off", TypeSize: 8}}, Kind: 1, RangeEnd: 1048576, Align: 4096}, + &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "intptr", FldName: "off", TypeSize: 8}}, Kind: 1, RangeEnd: 1048576, Align: 4096}, }}, {NR: 9, Name: "mmap$perf", CallName: "mmap", Args: []Type{ &VmaType{TypeCommon: TypeCommon{TypeName: "vma", FldName: "addr", TypeSize: 8}}, @@ -61451,11 +61446,11 @@ var syscalls_amd64 = []*Syscall{ }}, {NR: 157, Name: "prctl$PR_CAPBSET_DROP", CallName: "prctl", MissingArgs: 2, Args: []Type{ &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "option", TypeSize: 8}}, Val: 24}, - &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int32", FldName: "arg", TypeSize: 4}}, Kind: 1, RangeEnd: 37}, + &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "intptr", FldName: "arg", TypeSize: 8}}, Kind: 1, RangeEnd: 37}, }}, {NR: 157, Name: "prctl$PR_CAPBSET_READ", CallName: "prctl", MissingArgs: 2, Args: []Type{ &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "option", TypeSize: 8}}, Val: 23}, - &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int32", FldName: "arg", TypeSize: 4}}, Kind: 1, RangeEnd: 37}, + &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "intptr", FldName: "arg", TypeSize: 8}}, Kind: 1, RangeEnd: 37}, }}, {NR: 157, Name: "prctl$PR_CAP_AMBIENT", CallName: "prctl", MissingArgs: 1, Args: []Type{ &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "option", TypeSize: 8}}, Val: 47}, @@ -61605,7 +61600,7 @@ var syscalls_amd64 = []*Syscall{ }}, {NR: 157, Name: "prctl$PR_SET_PDEATHSIG", CallName: "prctl", MissingArgs: 2, Args: []Type{ &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "option", TypeSize: 8}}, Val: 1}, - &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int32", FldName: "arg", TypeSize: 4}}, Kind: 1, RangeEnd: 65}, + &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "intptr", FldName: "arg", TypeSize: 8}}, Kind: 1, RangeEnd: 65}, }}, {NR: 157, Name: "prctl$PR_SET_PTRACER", CallName: "prctl", MissingArgs: 2, Args: []Type{ &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "option", TypeSize: 8}}, Val: 1499557217}, @@ -66278,12 +66273,12 @@ var syscalls_amd64 = []*Syscall{ {NR: 41, Name: "socket$caif_seqpacket", CallName: "socket", Args: []Type{ &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "domain", TypeSize: 8}}, Val: 37}, &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "type", TypeSize: 8}}, Val: 5}, - &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int32", FldName: "proto", TypeSize: 4}}, Kind: 1, RangeEnd: 5}, + &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int8", FldName: "proto", TypeSize: 1}}, Kind: 1, RangeEnd: 5}, }, Ret: &ResourceType{TypeCommon: TypeCommon{TypeName: "sock_caif", FldName: "ret", TypeSize: 4, ArgDir: 1}}}, {NR: 41, Name: "socket$caif_stream", CallName: "socket", Args: []Type{ &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "domain", TypeSize: 8}}, Val: 37}, &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "type", TypeSize: 8}}, Val: 1}, - &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int32", FldName: "proto", TypeSize: 4}}, Kind: 1, RangeEnd: 5}, + &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int8", FldName: "proto", TypeSize: 1}}, Kind: 1, RangeEnd: 5}, }, Ret: &ResourceType{TypeCommon: TypeCommon{TypeName: "sock_caif", FldName: "ret", TypeSize: 4, ArgDir: 1}}}, {NR: 41, Name: "socket$can_bcm", CallName: "socket", Args: []Type{ &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "domain", TypeSize: 8}}, Val: 29}, @@ -78637,4 +78632,4 @@ var consts_amd64 = []ConstValue{ {"ethtool_per_queue_op_size", 128}, } -const revision_amd64 = "57e792b4f9c2dfd15302bc6d8af296a1ad069360" +const revision_amd64 = "a8fe352537df3c64061c651b2f9e153c9c83549f" diff --git a/sys/linux/gen/arm.go b/sys/linux/gen/arm.go index 670be8e0d..b42955fad 100644 --- a/sys/linux/gen/arm.go +++ b/sys/linux/gen/arm.go @@ -50305,7 +50305,7 @@ var syscalls_arm = []*Syscall{ {NR: 55, Name: "fcntl$setsig", CallName: "fcntl", Args: []Type{ &ResourceType{TypeCommon: TypeCommon{TypeName: "fd", FldName: "fd", TypeSize: 4}}, &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "cmd", TypeSize: 4}}, Val: 10}, - &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int32", FldName: "sig", TypeSize: 4}}, Kind: 1, RangeEnd: 65}, + &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "intptr", FldName: "sig", TypeSize: 4}}, Kind: 1, RangeEnd: 65}, }}, {NR: 55, Name: "fcntl$setstatus", CallName: "fcntl", Args: []Type{ &ResourceType{TypeCommon: TypeCommon{TypeName: "fd", FldName: "fd", TypeSize: 4}}, @@ -52334,7 +52334,7 @@ var syscalls_arm = []*Syscall{ }, Ret: &ResourceType{TypeCommon: TypeCommon{TypeName: "fd_io_uring", FldName: "ret", TypeSize: 4, ArgDir: 1}}}, {NR: 54, Name: "ioctl", CallName: "ioctl", Args: []Type{ &ResourceType{TypeCommon: TypeCommon{TypeName: "fd", FldName: "fd", TypeSize: 4}}, - &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "intptr", FldName: "cmd", TypeSize: 4}}}, + &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int32", FldName: "cmd", TypeSize: 4}}}, &PtrType{TypeCommon{TypeName: "ptr", FldName: "arg", TypeSize: 4}, &BufferType{TypeCommon: TypeCommon{TypeName: "array", IsVarlen: true}}}, }}, {NR: 54, Name: "ioctl$ASHMEM_GET_NAME", CallName: "ioctl", Args: []Type{ @@ -52601,11 +52601,6 @@ var syscalls_arm = []*Syscall{ &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "cmd", TypeSize: 4}}, Val: 2147762980}, &PtrType{TypeCommon{TypeName: "ptr", FldName: "arg", TypeSize: 4}, &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int32", TypeSize: 4}}, Kind: 1, RangeEnd: 1}}, }}, - {NR: 54, Name: "ioctl$CDROMAUDIOBUFSIZ", CallName: "ioctl", Args: []Type{ - &ResourceType{TypeCommon: TypeCommon{TypeName: "fd_cdrom", FldName: "fd", TypeSize: 4}}, - &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "cmd", TypeSize: 4}}, Val: 21378}, - &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int32", FldName: "val", TypeSize: 4}}}, - }}, {NR: 54, Name: "ioctl$CDROMCLOSETRAY", CallName: "ioctl", MissingArgs: 1, Args: []Type{ &ResourceType{TypeCommon: TypeCommon{TypeName: "fd_cdrom", FldName: "fd", TypeSize: 4}}, &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "cmd", TypeSize: 4}}, Val: 21273}, @@ -52622,7 +52617,7 @@ var syscalls_arm = []*Syscall{ {NR: 54, Name: "ioctl$CDROMGETSPINDOWN", CallName: "ioctl", Args: []Type{ &ResourceType{TypeCommon: TypeCommon{TypeName: "fd_cdrom", FldName: "fd", TypeSize: 4}}, &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "cmd", TypeSize: 4}}, Val: 21277}, - &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int8", FldName: "arg", TypeSize: 1}}}, + &PtrType{TypeCommon{TypeName: "ptr", FldName: "arg", TypeSize: 4}, &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int8", TypeSize: 1, ArgDir: 1}}}}, }}, {NR: 54, Name: "ioctl$CDROMMULTISESSION", CallName: "ioctl", Args: []Type{ &ResourceType{TypeCommon: TypeCommon{TypeName: "fd_cdrom", FldName: "fd", TypeSize: 4}}, @@ -52704,7 +52699,7 @@ var syscalls_arm = []*Syscall{ {NR: 54, Name: "ioctl$CDROMSETSPINDOWN", CallName: "ioctl", Args: []Type{ &ResourceType{TypeCommon: TypeCommon{TypeName: "fd_cdrom", FldName: "fd", TypeSize: 4}}, &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "cmd", TypeSize: 4}}, Val: 21278}, - &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int8", FldName: "arg", TypeSize: 1}}}, + &PtrType{TypeCommon{TypeName: "ptr", FldName: "arg", TypeSize: 4}, &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int8", TypeSize: 1}}, Kind: 1, RangeEnd: 15}}, }}, {NR: 54, Name: "ioctl$CDROMSTART", CallName: "ioctl", MissingArgs: 1, Args: []Type{ &ResourceType{TypeCommon: TypeCommon{TypeName: "fd_cdrom", FldName: "fd", TypeSize: 4}}, @@ -53807,7 +53802,7 @@ var syscalls_arm = []*Syscall{ {NR: 54, Name: "ioctl$HIDIOCAPPLICATION", CallName: "ioctl", Args: []Type{ &ResourceType{TypeCommon: TypeCommon{TypeName: "fd_hiddev", FldName: "fd", TypeSize: 4}}, &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "cmd", TypeSize: 4}}, Val: 18434}, - &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int32", FldName: "arg", TypeSize: 4}}}, + &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "intptr", FldName: "arg", TypeSize: 4}}}, }}, {NR: 54, Name: "ioctl$HIDIOCGCOLLECTIONINDEX", CallName: "ioctl", Args: []Type{ &ResourceType{TypeCommon: TypeCommon{TypeName: "fd_hiddev", FldName: "fd", TypeSize: 4}}, @@ -54190,7 +54185,7 @@ var syscalls_arm = []*Syscall{ {NR: 54, Name: "ioctl$KDSIGACCEPT", CallName: "ioctl", Args: []Type{ &ResourceType{TypeCommon: TypeCommon{TypeName: "fd_tty", FldName: "fd", TypeSize: 4}}, &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "cmd", TypeSize: 4}}, Val: 19278}, - &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int32", FldName: "arg", TypeSize: 4}}, Kind: 1, RangeEnd: 65}, + &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "intptr", FldName: "arg", TypeSize: 4}}, Kind: 1, RangeEnd: 65}, }}, {NR: 54, Name: "ioctl$KDSKBENT", CallName: "ioctl", Args: []Type{ &ResourceType{TypeCommon: TypeCommon{TypeName: "fd_tty", FldName: "fd", TypeSize: 4}}, @@ -54681,7 +54676,7 @@ var syscalls_arm = []*Syscall{ {NR: 54, Name: "ioctl$MON_IOCH_MFLUSH", CallName: "ioctl", Args: []Type{ &ResourceType{TypeCommon: TypeCommon{TypeName: "fd_usbmon", FldName: "fd", TypeSize: 4}}, &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "cmd", TypeSize: 4}}, Val: 37384}, - &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int32", FldName: "arg", TypeSize: 4}}}, + &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "intptr", FldName: "arg", TypeSize: 4}}}, }}, {NR: 54, Name: "ioctl$MON_IOCQ_RING_SIZE", CallName: "ioctl", MissingArgs: 1, Args: []Type{ &ResourceType{TypeCommon: TypeCommon{TypeName: "fd_usbmon", FldName: "fd", TypeSize: 4}}, @@ -54694,7 +54689,7 @@ var syscalls_arm = []*Syscall{ {NR: 54, Name: "ioctl$MON_IOCT_RING_SIZE", CallName: "ioctl", Args: []Type{ &ResourceType{TypeCommon: TypeCommon{TypeName: "fd_usbmon", FldName: "fd", TypeSize: 4}}, &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "cmd", TypeSize: 4}}, Val: 37380}, - &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int32", FldName: "arg", TypeSize: 4}}, Kind: 1, RangeBegin: 8192, RangeEnd: 1228800}, + &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "intptr", FldName: "arg", TypeSize: 4}}, Kind: 1, RangeBegin: 8192, RangeEnd: 1228800}, }}, {NR: 54, Name: "ioctl$MON_IOCX_GET", CallName: "ioctl", Args: []Type{ &ResourceType{TypeCommon: TypeCommon{TypeName: "fd_usbmon", FldName: "fd", TypeSize: 4}}, @@ -55018,7 +55013,7 @@ var syscalls_arm = []*Syscall{ {NR: 54, Name: "ioctl$PTP_ENABLE_PPS", CallName: "ioctl", Args: []Type{ &ResourceType{TypeCommon: TypeCommon{TypeName: "fd_ptp", FldName: "fd", TypeSize: 4}}, &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "cmd", TypeSize: 4}}, Val: 1074019588}, - &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int32", FldName: "arg", TypeSize: 4}}, Kind: 1, RangeEnd: 1}, + &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "intptr", FldName: "arg", TypeSize: 4}}, Kind: 1, RangeEnd: 1}, }}, {NR: 54, Name: "ioctl$PTP_EXTTS_REQUEST", CallName: "ioctl", Args: []Type{ &ResourceType{TypeCommon: TypeCommon{TypeName: "fd_ptp", FldName: "fd", TypeSize: 4}}, @@ -56587,7 +56582,7 @@ var syscalls_arm = []*Syscall{ {NR: 54, Name: "ioctl$TIOCSIG", CallName: "ioctl", Args: []Type{ &ResourceType{TypeCommon: TypeCommon{TypeName: "fd_tty", FldName: "fd", TypeSize: 4}}, &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "cmd", TypeSize: 4}}, Val: 1074025526}, - &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int32", FldName: "arg", TypeSize: 4}}, Kind: 1, RangeEnd: 65}, + &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "intptr", FldName: "arg", TypeSize: 4}}, Kind: 1, RangeEnd: 65}, }}, {NR: 54, Name: "ioctl$TIOCSISO7816", CallName: "ioctl", Args: []Type{ &ResourceType{TypeCommon: TypeCommon{TypeName: "fd_tty", FldName: "fd", TypeSize: 4}}, @@ -56752,7 +56747,7 @@ var syscalls_arm = []*Syscall{ {NR: 54, Name: "ioctl$TUNSETNOCSUM", CallName: "ioctl", Args: []Type{ &ResourceType{TypeCommon: TypeCommon{TypeName: "fd_tun", FldName: "fd", TypeSize: 4}}, &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "cmd", TypeSize: 4}}, Val: 1074025672}, - &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int32", FldName: "arg", TypeSize: 4}}, Kind: 1, RangeEnd: 1}, + &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "intptr", FldName: "arg", TypeSize: 4}}, Kind: 1, RangeEnd: 1}, }}, {NR: 54, Name: "ioctl$TUNSETOFFLOAD", CallName: "ioctl", Args: []Type{ &ResourceType{TypeCommon: TypeCommon{TypeName: "fd_tun", FldName: "fd", TypeSize: 4}}, @@ -56767,7 +56762,7 @@ var syscalls_arm = []*Syscall{ {NR: 54, Name: "ioctl$TUNSETPERSIST", CallName: "ioctl", Args: []Type{ &ResourceType{TypeCommon: TypeCommon{TypeName: "fd_tun", FldName: "fd", TypeSize: 4}}, &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "cmd", TypeSize: 4}}, Val: 1074025675}, - &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int32", FldName: "arg", TypeSize: 4}}, Kind: 1, RangeEnd: 1}, + &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "intptr", FldName: "arg", TypeSize: 4}}, Kind: 1, RangeEnd: 1}, }}, {NR: 54, Name: "ioctl$TUNSETQUEUE", CallName: "ioctl", Args: []Type{ &ResourceType{TypeCommon: TypeCommon{TypeName: "fd_tun", FldName: "fd", TypeSize: 4}}, @@ -58293,7 +58288,7 @@ var syscalls_arm = []*Syscall{ }}, {NR: 54, Name: "ioctl$sock_netdev_private", CallName: "ioctl", Args: []Type{ &ResourceType{TypeCommon: TypeCommon{TypeName: "sock", FldName: "fd", TypeSize: 4}}, - &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int16", FldName: "cmd", TypeSize: 2}}, Kind: 1, RangeBegin: 35312, RangeEnd: 35327}, + &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int32", FldName: "cmd", TypeSize: 4}}, Kind: 1, RangeBegin: 35312, RangeEnd: 35327}, &PtrType{TypeCommon{TypeName: "ptr", FldName: "arg", TypeSize: 4}, &BufferType{TypeCommon: TypeCommon{TypeName: "array", IsVarlen: true}}}, }}, {NR: 54, Name: "ioctl$sock_netrom_SIOCADDRT", CallName: "ioctl", Args: []Type{ @@ -58308,7 +58303,7 @@ var syscalls_arm = []*Syscall{ }}, {NR: 54, Name: "ioctl$sock_proto_private", CallName: "ioctl", Args: []Type{ &ResourceType{TypeCommon: TypeCommon{TypeName: "sock", FldName: "fd", TypeSize: 4}}, - &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int16", FldName: "cmd", TypeSize: 2}}, Kind: 1, RangeBegin: 35296, RangeEnd: 35311}, + &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int32", FldName: "cmd", TypeSize: 4}}, Kind: 1, RangeBegin: 35296, RangeEnd: 35311}, &PtrType{TypeCommon{TypeName: "ptr", FldName: "arg", TypeSize: 4}, &BufferType{TypeCommon: TypeCommon{TypeName: "array", IsVarlen: true}}}, }}, {NR: 54, Name: "ioctl$sock_rose_SIOCADDRT", CallName: "ioctl", Args: []Type{ @@ -58546,7 +58541,7 @@ var syscalls_arm = []*Syscall{ {NR: 311, Name: "keyctl$set_timeout", CallName: "keyctl", MissingArgs: 2, Args: []Type{ &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "code", TypeSize: 4}}, Val: 15}, &ResourceType{TypeCommon: TypeCommon{TypeName: "key", FldName: "key", TypeSize: 4}}, - &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int32", FldName: "timeout", TypeSize: 4}}}, + &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "intptr", FldName: "timeout", TypeSize: 4}}}, }}, {NR: 311, Name: "keyctl$setperm", CallName: "keyctl", MissingArgs: 2, Args: []Type{ &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "code", TypeSize: 4}}, Val: 5}, @@ -58601,7 +58596,7 @@ var syscalls_arm = []*Syscall{ &LenType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "len", FldName: "size", TypeSize: 4}}, Path: []string{"list"}}, }}, {NR: 249, Name: "lookup_dcookie", CallName: "lookup_dcookie", Args: []Type{ - &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int64", FldName: "cookie", TypeSize: 8}}}, + &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "intptr", FldName: "cookie", TypeSize: 4}}}, &PtrType{TypeCommon{TypeName: "ptr", FldName: "buf", TypeSize: 4}, &BufferType{TypeCommon: TypeCommon{TypeName: "array", ArgDir: 1, IsVarlen: true}}}, &LenType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "len", FldName: "len", TypeSize: 4}}, Path: []string{"buf"}}, }}, @@ -58798,7 +58793,7 @@ var syscalls_arm = []*Syscall{ &FlagsType{IntTypeCommon{TypeCommon: TypeCommon{TypeName: "mmap_prot", FldName: "prot", TypeSize: 4}}, []uint64{1, 2, 4, 8, 16777216, 33554432}, true}, &FlagsType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "mmap_flags", FldName: "flags", TypeSize: 4}}, Vals: []uint64{0, 0, 1, 2, 3, 16, 32, 256, 2048, 4096, 8192, 16384, 32768, 65536, 131072, 262144, 524288, 1048576, 67108864}}, &ResourceType{TypeCommon: TypeCommon{TypeName: "fd", FldName: "fd", TypeSize: 4}}, - &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int32", FldName: "offset", TypeSize: 4}}, Kind: 1, RangeEnd: 4294967295, Align: 4096}, + &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "intptr", FldName: "offset", TypeSize: 4}}, Kind: 1, RangeEnd: 4294967295, Align: 4096}, }}, {NR: 192, Name: "mmap$IORING_OFF_CQ_RING", CallName: "mmap", Args: []Type{ &VmaType{TypeCommon: TypeCommon{TypeName: "vma", FldName: "addr", TypeSize: 4}}, @@ -58846,7 +58841,7 @@ var syscalls_arm = []*Syscall{ &FlagsType{IntTypeCommon{TypeCommon: TypeCommon{TypeName: "mmap_prot", FldName: "prot", TypeSize: 4}}, []uint64{1, 2, 4, 8, 16777216, 33554432}, true}, &FlagsType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "mmap_flags", FldName: "flags", TypeSize: 4}}, Vals: []uint64{0, 0, 1, 2, 3, 16, 32, 256, 2048, 4096, 8192, 16384, 32768, 65536, 131072, 262144, 524288, 1048576, 67108864}}, &ResourceType{TypeCommon: TypeCommon{TypeName: "fd_fb", FldName: "fd", TypeSize: 4}}, - &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int64", FldName: "off", TypeSize: 8}}, Kind: 1, RangeEnd: 1048576, Align: 4096}, + &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "intptr", FldName: "off", TypeSize: 4}}, Kind: 1, RangeEnd: 1048576, Align: 4096}, }}, {NR: 192, Name: "mmap$perf", CallName: "mmap", Args: []Type{ &VmaType{TypeCommon: TypeCommon{TypeName: "vma", FldName: "addr", TypeSize: 4}}, @@ -60164,11 +60159,11 @@ var syscalls_arm = []*Syscall{ }}, {NR: 172, Name: "prctl$PR_CAPBSET_DROP", CallName: "prctl", MissingArgs: 2, Args: []Type{ &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "option", TypeSize: 4}}, Val: 24}, - &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int32", FldName: "arg", TypeSize: 4}}, Kind: 1, RangeEnd: 37}, + &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "intptr", FldName: "arg", TypeSize: 4}}, Kind: 1, RangeEnd: 37}, }}, {NR: 172, Name: "prctl$PR_CAPBSET_READ", CallName: "prctl", MissingArgs: 2, Args: []Type{ &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "option", TypeSize: 4}}, Val: 23}, - &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int32", FldName: "arg", TypeSize: 4}}, Kind: 1, RangeEnd: 37}, + &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "intptr", FldName: "arg", TypeSize: 4}}, Kind: 1, RangeEnd: 37}, }}, {NR: 172, Name: "prctl$PR_CAP_AMBIENT", CallName: "prctl", MissingArgs: 1, Args: []Type{ &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "option", TypeSize: 4}}, Val: 47}, @@ -60318,7 +60313,7 @@ var syscalls_arm = []*Syscall{ }}, {NR: 172, Name: "prctl$PR_SET_PDEATHSIG", CallName: "prctl", MissingArgs: 2, Args: []Type{ &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "option", TypeSize: 4}}, Val: 1}, - &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int32", FldName: "arg", TypeSize: 4}}, Kind: 1, RangeEnd: 65}, + &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "intptr", FldName: "arg", TypeSize: 4}}, Kind: 1, RangeEnd: 65}, }}, {NR: 172, Name: "prctl$PR_SET_PTRACER", CallName: "prctl", MissingArgs: 2, Args: []Type{ &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "option", TypeSize: 4}}, Val: 1499557217}, @@ -64987,12 +64982,12 @@ var syscalls_arm = []*Syscall{ {NR: 281, Name: "socket$caif_seqpacket", CallName: "socket", Args: []Type{ &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "domain", TypeSize: 4}}, Val: 37}, &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "type", TypeSize: 4}}, Val: 5}, - &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int32", FldName: "proto", TypeSize: 4}}, Kind: 1, RangeEnd: 5}, + &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int8", FldName: "proto", TypeSize: 1}}, Kind: 1, RangeEnd: 5}, }, Ret: &ResourceType{TypeCommon: TypeCommon{TypeName: "sock_caif", FldName: "ret", TypeSize: 4, ArgDir: 1}}}, {NR: 281, Name: "socket$caif_stream", CallName: "socket", Args: []Type{ &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "domain", TypeSize: 4}}, Val: 37}, &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "type", TypeSize: 4}}, Val: 1}, - &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int32", FldName: "proto", TypeSize: 4}}, Kind: 1, RangeEnd: 5}, + &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int8", FldName: "proto", TypeSize: 1}}, Kind: 1, RangeEnd: 5}, }, Ret: &ResourceType{TypeCommon: TypeCommon{TypeName: "sock_caif", FldName: "ret", TypeSize: 4, ArgDir: 1}}}, {NR: 281, Name: "socket$can_bcm", CallName: "socket", Args: []Type{ &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "domain", TypeSize: 4}}, Val: 29}, @@ -77249,4 +77244,4 @@ var consts_arm = []ConstValue{ {"ethtool_per_queue_op_size", 128}, } -const revision_arm = "73ab90b4fe32667fb8aeeede21c4e40d90f162f3" +const revision_arm = "3444839b3d1c062c3a509ba2db0628bda1758722" diff --git a/sys/linux/gen/arm64.go b/sys/linux/gen/arm64.go index e52b169f3..202e3d509 100644 --- a/sys/linux/gen/arm64.go +++ b/sys/linux/gen/arm64.go @@ -51131,7 +51131,7 @@ var syscalls_arm64 = []*Syscall{ {NR: 25, Name: "fcntl$setsig", CallName: "fcntl", Args: []Type{ &ResourceType{TypeCommon: TypeCommon{TypeName: "fd", FldName: "fd", TypeSize: 4}}, &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "cmd", TypeSize: 8}}, Val: 10}, - &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int32", FldName: "sig", TypeSize: 4}}, Kind: 1, RangeEnd: 65}, + &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "intptr", FldName: "sig", TypeSize: 8}}, Kind: 1, RangeEnd: 65}, }}, {NR: 25, Name: "fcntl$setstatus", CallName: "fcntl", Args: []Type{ &ResourceType{TypeCommon: TypeCommon{TypeName: "fd", FldName: "fd", TypeSize: 4}}, @@ -53140,7 +53140,7 @@ var syscalls_arm64 = []*Syscall{ }, Ret: &ResourceType{TypeCommon: TypeCommon{TypeName: "fd_io_uring", FldName: "ret", TypeSize: 4, ArgDir: 1}}}, {NR: 29, Name: "ioctl", CallName: "ioctl", Args: []Type{ &ResourceType{TypeCommon: TypeCommon{TypeName: "fd", FldName: "fd", TypeSize: 4}}, - &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "intptr", FldName: "cmd", TypeSize: 8}}}, + &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int32", FldName: "cmd", TypeSize: 4}}}, &PtrType{TypeCommon{TypeName: "ptr", FldName: "arg", TypeSize: 8}, &BufferType{TypeCommon: TypeCommon{TypeName: "array", IsVarlen: true}}}, }}, {NR: 29, Name: "ioctl$ASHMEM_GET_NAME", CallName: "ioctl", Args: []Type{ @@ -53407,11 +53407,6 @@ var syscalls_arm64 = []*Syscall{ &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "cmd", TypeSize: 8}}, Val: 2147762980}, &PtrType{TypeCommon{TypeName: "ptr", FldName: "arg", TypeSize: 8}, &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int32", TypeSize: 4}}, Kind: 1, RangeEnd: 1}}, }}, - {NR: 29, Name: "ioctl$CDROMAUDIOBUFSIZ", CallName: "ioctl", Args: []Type{ - &ResourceType{TypeCommon: TypeCommon{TypeName: "fd_cdrom", FldName: "fd", TypeSize: 4}}, - &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "cmd", TypeSize: 8}}, Val: 21378}, - &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int32", FldName: "val", TypeSize: 4}}}, - }}, {NR: 29, Name: "ioctl$CDROMCLOSETRAY", CallName: "ioctl", MissingArgs: 1, Args: []Type{ &ResourceType{TypeCommon: TypeCommon{TypeName: "fd_cdrom", FldName: "fd", TypeSize: 4}}, &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "cmd", TypeSize: 8}}, Val: 21273}, @@ -53428,7 +53423,7 @@ var syscalls_arm64 = []*Syscall{ {NR: 29, Name: "ioctl$CDROMGETSPINDOWN", CallName: "ioctl", Args: []Type{ &ResourceType{TypeCommon: TypeCommon{TypeName: "fd_cdrom", FldName: "fd", TypeSize: 4}}, &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "cmd", TypeSize: 8}}, Val: 21277}, - &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int8", FldName: "arg", TypeSize: 1}}}, + &PtrType{TypeCommon{TypeName: "ptr", FldName: "arg", TypeSize: 8}, &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int8", TypeSize: 1, ArgDir: 1}}}}, }}, {NR: 29, Name: "ioctl$CDROMMULTISESSION", CallName: "ioctl", Args: []Type{ &ResourceType{TypeCommon: TypeCommon{TypeName: "fd_cdrom", FldName: "fd", TypeSize: 4}}, @@ -53510,7 +53505,7 @@ var syscalls_arm64 = []*Syscall{ {NR: 29, Name: "ioctl$CDROMSETSPINDOWN", CallName: "ioctl", Args: []Type{ &ResourceType{TypeCommon: TypeCommon{TypeName: "fd_cdrom", FldName: "fd", TypeSize: 4}}, &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "cmd", TypeSize: 8}}, Val: 21278}, - &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int8", FldName: "arg", TypeSize: 1}}}, + &PtrType{TypeCommon{TypeName: "ptr", FldName: "arg", TypeSize: 8}, &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int8", TypeSize: 1}}, Kind: 1, RangeEnd: 15}}, }}, {NR: 29, Name: "ioctl$CDROMSTART", CallName: "ioctl", MissingArgs: 1, Args: []Type{ &ResourceType{TypeCommon: TypeCommon{TypeName: "fd_cdrom", FldName: "fd", TypeSize: 4}}, @@ -54613,7 +54608,7 @@ var syscalls_arm64 = []*Syscall{ {NR: 29, Name: "ioctl$HIDIOCAPPLICATION", CallName: "ioctl", Args: []Type{ &ResourceType{TypeCommon: TypeCommon{TypeName: "fd_hiddev", FldName: "fd", TypeSize: 4}}, &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "cmd", TypeSize: 8}}, Val: 18434}, - &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int32", FldName: "arg", TypeSize: 4}}}, + &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "intptr", FldName: "arg", TypeSize: 8}}}, }}, {NR: 29, Name: "ioctl$HIDIOCGCOLLECTIONINDEX", CallName: "ioctl", Args: []Type{ &ResourceType{TypeCommon: TypeCommon{TypeName: "fd_hiddev", FldName: "fd", TypeSize: 4}}, @@ -55001,7 +54996,7 @@ var syscalls_arm64 = []*Syscall{ {NR: 29, Name: "ioctl$KDSIGACCEPT", CallName: "ioctl", Args: []Type{ &ResourceType{TypeCommon: TypeCommon{TypeName: "fd_tty", FldName: "fd", TypeSize: 4}}, &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "cmd", TypeSize: 8}}, Val: 19278}, - &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int32", FldName: "arg", TypeSize: 4}}, Kind: 1, RangeEnd: 65}, + &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "intptr", FldName: "arg", TypeSize: 8}}, Kind: 1, RangeEnd: 65}, }}, {NR: 29, Name: "ioctl$KDSKBENT", CallName: "ioctl", Args: []Type{ &ResourceType{TypeCommon: TypeCommon{TypeName: "fd_tty", FldName: "fd", TypeSize: 4}}, @@ -55492,7 +55487,7 @@ var syscalls_arm64 = []*Syscall{ {NR: 29, Name: "ioctl$MON_IOCH_MFLUSH", CallName: "ioctl", Args: []Type{ &ResourceType{TypeCommon: TypeCommon{TypeName: "fd_usbmon", FldName: "fd", TypeSize: 4}}, &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "cmd", TypeSize: 8}}, Val: 37384}, - &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int32", FldName: "arg", TypeSize: 4}}}, + &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "intptr", FldName: "arg", TypeSize: 8}}}, }}, {NR: 29, Name: "ioctl$MON_IOCQ_RING_SIZE", CallName: "ioctl", MissingArgs: 1, Args: []Type{ &ResourceType{TypeCommon: TypeCommon{TypeName: "fd_usbmon", FldName: "fd", TypeSize: 4}}, @@ -55505,7 +55500,7 @@ var syscalls_arm64 = []*Syscall{ {NR: 29, Name: "ioctl$MON_IOCT_RING_SIZE", CallName: "ioctl", Args: []Type{ &ResourceType{TypeCommon: TypeCommon{TypeName: "fd_usbmon", FldName: "fd", TypeSize: 4}}, &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "cmd", TypeSize: 8}}, Val: 37380}, - &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int32", FldName: "arg", TypeSize: 4}}, Kind: 1, RangeBegin: 8192, RangeEnd: 1228800}, + &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "intptr", FldName: "arg", TypeSize: 8}}, Kind: 1, RangeBegin: 8192, RangeEnd: 1228800}, }}, {NR: 29, Name: "ioctl$MON_IOCX_GET", CallName: "ioctl", Args: []Type{ &ResourceType{TypeCommon: TypeCommon{TypeName: "fd_usbmon", FldName: "fd", TypeSize: 4}}, @@ -55829,7 +55824,7 @@ var syscalls_arm64 = []*Syscall{ {NR: 29, Name: "ioctl$PTP_ENABLE_PPS", CallName: "ioctl", Args: []Type{ &ResourceType{TypeCommon: TypeCommon{TypeName: "fd_ptp", FldName: "fd", TypeSize: 4}}, &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "cmd", TypeSize: 8}}, Val: 1074019588}, - &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int32", FldName: "arg", TypeSize: 4}}, Kind: 1, RangeEnd: 1}, + &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "intptr", FldName: "arg", TypeSize: 8}}, Kind: 1, RangeEnd: 1}, }}, {NR: 29, Name: "ioctl$PTP_EXTTS_REQUEST", CallName: "ioctl", Args: []Type{ &ResourceType{TypeCommon: TypeCommon{TypeName: "fd_ptp", FldName: "fd", TypeSize: 4}}, @@ -57433,7 +57428,7 @@ var syscalls_arm64 = []*Syscall{ {NR: 29, Name: "ioctl$TIOCSIG", CallName: "ioctl", Args: []Type{ &ResourceType{TypeCommon: TypeCommon{TypeName: "fd_tty", FldName: "fd", TypeSize: 4}}, &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "cmd", TypeSize: 8}}, Val: 1074025526}, - &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int32", FldName: "arg", TypeSize: 4}}, Kind: 1, RangeEnd: 65}, + &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "intptr", FldName: "arg", TypeSize: 8}}, Kind: 1, RangeEnd: 65}, }}, {NR: 29, Name: "ioctl$TIOCSISO7816", CallName: "ioctl", Args: []Type{ &ResourceType{TypeCommon: TypeCommon{TypeName: "fd_tty", FldName: "fd", TypeSize: 4}}, @@ -57598,7 +57593,7 @@ var syscalls_arm64 = []*Syscall{ {NR: 29, Name: "ioctl$TUNSETNOCSUM", CallName: "ioctl", Args: []Type{ &ResourceType{TypeCommon: TypeCommon{TypeName: "fd_tun", FldName: "fd", TypeSize: 4}}, &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "cmd", TypeSize: 8}}, Val: 1074025672}, - &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int32", FldName: "arg", TypeSize: 4}}, Kind: 1, RangeEnd: 1}, + &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "intptr", FldName: "arg", TypeSize: 8}}, Kind: 1, RangeEnd: 1}, }}, {NR: 29, Name: "ioctl$TUNSETOFFLOAD", CallName: "ioctl", Args: []Type{ &ResourceType{TypeCommon: TypeCommon{TypeName: "fd_tun", FldName: "fd", TypeSize: 4}}, @@ -57613,7 +57608,7 @@ var syscalls_arm64 = []*Syscall{ {NR: 29, Name: "ioctl$TUNSETPERSIST", CallName: "ioctl", Args: []Type{ &ResourceType{TypeCommon: TypeCommon{TypeName: "fd_tun", FldName: "fd", TypeSize: 4}}, &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "cmd", TypeSize: 8}}, Val: 1074025675}, - &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int32", FldName: "arg", TypeSize: 4}}, Kind: 1, RangeEnd: 1}, + &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "intptr", FldName: "arg", TypeSize: 8}}, Kind: 1, RangeEnd: 1}, }}, {NR: 29, Name: "ioctl$TUNSETQUEUE", CallName: "ioctl", Args: []Type{ &ResourceType{TypeCommon: TypeCommon{TypeName: "fd_tun", FldName: "fd", TypeSize: 4}}, @@ -59139,7 +59134,7 @@ var syscalls_arm64 = []*Syscall{ }}, {NR: 29, Name: "ioctl$sock_netdev_private", CallName: "ioctl", Args: []Type{ &ResourceType{TypeCommon: TypeCommon{TypeName: "sock", FldName: "fd", TypeSize: 4}}, - &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int16", FldName: "cmd", TypeSize: 2}}, Kind: 1, RangeBegin: 35312, RangeEnd: 35327}, + &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int32", FldName: "cmd", TypeSize: 4}}, Kind: 1, RangeBegin: 35312, RangeEnd: 35327}, &PtrType{TypeCommon{TypeName: "ptr", FldName: "arg", TypeSize: 8}, &BufferType{TypeCommon: TypeCommon{TypeName: "array", IsVarlen: true}}}, }}, {NR: 29, Name: "ioctl$sock_netrom_SIOCADDRT", CallName: "ioctl", Args: []Type{ @@ -59154,7 +59149,7 @@ var syscalls_arm64 = []*Syscall{ }}, {NR: 29, Name: "ioctl$sock_proto_private", CallName: "ioctl", Args: []Type{ &ResourceType{TypeCommon: TypeCommon{TypeName: "sock", FldName: "fd", TypeSize: 4}}, - &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int16", FldName: "cmd", TypeSize: 2}}, Kind: 1, RangeBegin: 35296, RangeEnd: 35311}, + &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int32", FldName: "cmd", TypeSize: 4}}, Kind: 1, RangeBegin: 35296, RangeEnd: 35311}, &PtrType{TypeCommon{TypeName: "ptr", FldName: "arg", TypeSize: 8}, &BufferType{TypeCommon: TypeCommon{TypeName: "array", IsVarlen: true}}}, }}, {NR: 29, Name: "ioctl$sock_rose_SIOCADDRT", CallName: "ioctl", Args: []Type{ @@ -59392,7 +59387,7 @@ var syscalls_arm64 = []*Syscall{ {NR: 219, Name: "keyctl$set_timeout", CallName: "keyctl", MissingArgs: 2, Args: []Type{ &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "code", TypeSize: 8}}, Val: 15}, &ResourceType{TypeCommon: TypeCommon{TypeName: "key", FldName: "key", TypeSize: 4}}, - &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int32", FldName: "timeout", TypeSize: 4}}}, + &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "intptr", FldName: "timeout", TypeSize: 8}}}, }}, {NR: 219, Name: "keyctl$setperm", CallName: "keyctl", MissingArgs: 2, Args: []Type{ &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "code", TypeSize: 8}}, Val: 5}, @@ -59438,7 +59433,7 @@ var syscalls_arm64 = []*Syscall{ &LenType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "len", FldName: "size", TypeSize: 8}}, Path: []string{"list"}}, }}, {NR: 18, Name: "lookup_dcookie", CallName: "lookup_dcookie", Args: []Type{ - &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int64", FldName: "cookie", TypeSize: 8}}}, + &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "intptr", FldName: "cookie", TypeSize: 8}}}, &PtrType{TypeCommon{TypeName: "ptr", FldName: "buf", TypeSize: 8}, &BufferType{TypeCommon: TypeCommon{TypeName: "array", ArgDir: 1, IsVarlen: true}}}, &LenType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "len", FldName: "len", TypeSize: 8}}, Path: []string{"buf"}}, }}, @@ -59613,7 +59608,7 @@ var syscalls_arm64 = []*Syscall{ &FlagsType{IntTypeCommon{TypeCommon: TypeCommon{TypeName: "mmap_prot", FldName: "prot", TypeSize: 8}}, []uint64{1, 2, 4, 8, 16777216, 33554432}, true}, &FlagsType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "mmap_flags", FldName: "flags", TypeSize: 8}}, Vals: []uint64{0, 0, 1, 2, 3, 16, 32, 256, 2048, 4096, 8192, 16384, 32768, 65536, 131072, 262144, 524288, 1048576, 67108864}}, &ResourceType{TypeCommon: TypeCommon{TypeName: "fd", FldName: "fd", TypeSize: 4}}, - &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int32", FldName: "offset", TypeSize: 4}}, Kind: 1, RangeEnd: 4294967295, Align: 4096}, + &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "intptr", FldName: "offset", TypeSize: 8}}, Kind: 1, RangeEnd: 4294967295, Align: 4096}, }}, {NR: 222, Name: "mmap$IORING_OFF_CQ_RING", CallName: "mmap", Args: []Type{ &VmaType{TypeCommon: TypeCommon{TypeName: "vma", FldName: "addr", TypeSize: 8}}, @@ -59661,7 +59656,7 @@ var syscalls_arm64 = []*Syscall{ &FlagsType{IntTypeCommon{TypeCommon: TypeCommon{TypeName: "mmap_prot", FldName: "prot", TypeSize: 8}}, []uint64{1, 2, 4, 8, 16777216, 33554432}, true}, &FlagsType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "mmap_flags", FldName: "flags", TypeSize: 8}}, Vals: []uint64{0, 0, 1, 2, 3, 16, 32, 256, 2048, 4096, 8192, 16384, 32768, 65536, 131072, 262144, 524288, 1048576, 67108864}}, &ResourceType{TypeCommon: TypeCommon{TypeName: "fd_fb", FldName: "fd", TypeSize: 4}}, - &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int64", FldName: "off", TypeSize: 8}}, Kind: 1, RangeEnd: 1048576, Align: 4096}, + &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "intptr", FldName: "off", TypeSize: 8}}, Kind: 1, RangeEnd: 1048576, Align: 4096}, }}, {NR: 222, Name: "mmap$perf", CallName: "mmap", Args: []Type{ &VmaType{TypeCommon: TypeCommon{TypeName: "vma", FldName: "addr", TypeSize: 8}}, @@ -60966,11 +60961,11 @@ var syscalls_arm64 = []*Syscall{ }}, {NR: 167, Name: "prctl$PR_CAPBSET_DROP", CallName: "prctl", MissingArgs: 2, Args: []Type{ &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "option", TypeSize: 8}}, Val: 24}, - &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int32", FldName: "arg", TypeSize: 4}}, Kind: 1, RangeEnd: 37}, + &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "intptr", FldName: "arg", TypeSize: 8}}, Kind: 1, RangeEnd: 37}, }}, {NR: 167, Name: "prctl$PR_CAPBSET_READ", CallName: "prctl", MissingArgs: 2, Args: []Type{ &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "option", TypeSize: 8}}, Val: 23}, - &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int32", FldName: "arg", TypeSize: 4}}, Kind: 1, RangeEnd: 37}, + &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "intptr", FldName: "arg", TypeSize: 8}}, Kind: 1, RangeEnd: 37}, }}, {NR: 167, Name: "prctl$PR_CAP_AMBIENT", CallName: "prctl", MissingArgs: 1, Args: []Type{ &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "option", TypeSize: 8}}, Val: 47}, @@ -61120,7 +61115,7 @@ var syscalls_arm64 = []*Syscall{ }}, {NR: 167, Name: "prctl$PR_SET_PDEATHSIG", CallName: "prctl", MissingArgs: 2, Args: []Type{ &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "option", TypeSize: 8}}, Val: 1}, - &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int32", FldName: "arg", TypeSize: 4}}, Kind: 1, RangeEnd: 65}, + &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "intptr", FldName: "arg", TypeSize: 8}}, Kind: 1, RangeEnd: 65}, }}, {NR: 167, Name: "prctl$PR_SET_PTRACER", CallName: "prctl", MissingArgs: 2, Args: []Type{ &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "option", TypeSize: 8}}, Val: 1499557217}, @@ -65766,12 +65761,12 @@ var syscalls_arm64 = []*Syscall{ {NR: 198, Name: "socket$caif_seqpacket", CallName: "socket", Args: []Type{ &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "domain", TypeSize: 8}}, Val: 37}, &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "type", TypeSize: 8}}, Val: 5}, - &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int32", FldName: "proto", TypeSize: 4}}, Kind: 1, RangeEnd: 5}, + &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int8", FldName: "proto", TypeSize: 1}}, Kind: 1, RangeEnd: 5}, }, Ret: &ResourceType{TypeCommon: TypeCommon{TypeName: "sock_caif", FldName: "ret", TypeSize: 4, ArgDir: 1}}}, {NR: 198, Name: "socket$caif_stream", CallName: "socket", Args: []Type{ &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "domain", TypeSize: 8}}, Val: 37}, &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "type", TypeSize: 8}}, Val: 1}, - &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int32", FldName: "proto", TypeSize: 4}}, Kind: 1, RangeEnd: 5}, + &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int8", FldName: "proto", TypeSize: 1}}, Kind: 1, RangeEnd: 5}, }, Ret: &ResourceType{TypeCommon: TypeCommon{TypeName: "sock_caif", FldName: "ret", TypeSize: 4, ArgDir: 1}}}, {NR: 198, Name: "socket$can_bcm", CallName: "socket", Args: []Type{ &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "domain", TypeSize: 8}}, Val: 29}, @@ -77982,4 +77977,4 @@ var consts_arm64 = []ConstValue{ {"ethtool_per_queue_op_size", 128}, } -const revision_arm64 = "89f29368f6fde3dc0f3b6681a6a51a0e2329992c" +const revision_arm64 = "640aa823f49ff10cee6488cdec66c2e901f3dbba" diff --git a/sys/linux/gen/mips64le.go b/sys/linux/gen/mips64le.go index e25b4bb50..981b7a3d0 100644 --- a/sys/linux/gen/mips64le.go +++ b/sys/linux/gen/mips64le.go @@ -50253,7 +50253,7 @@ var syscalls_mips64le = []*Syscall{ {NR: 5070, Name: "fcntl$setsig", CallName: "fcntl", Args: []Type{ &ResourceType{TypeCommon: TypeCommon{TypeName: "fd", FldName: "fd", TypeSize: 4}}, &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "cmd", TypeSize: 8}}, Val: 10}, - &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int32", FldName: "sig", TypeSize: 4}}, Kind: 1, RangeEnd: 65}, + &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "intptr", FldName: "sig", TypeSize: 8}}, Kind: 1, RangeEnd: 65}, }}, {NR: 5070, Name: "fcntl$setstatus", CallName: "fcntl", Args: []Type{ &ResourceType{TypeCommon: TypeCommon{TypeName: "fd", FldName: "fd", TypeSize: 4}}, @@ -52276,7 +52276,7 @@ var syscalls_mips64le = []*Syscall{ }, Ret: &ResourceType{TypeCommon: TypeCommon{TypeName: "fd_io_uring", FldName: "ret", TypeSize: 4, ArgDir: 1}}}, {NR: 5015, Name: "ioctl", CallName: "ioctl", Args: []Type{ &ResourceType{TypeCommon: TypeCommon{TypeName: "fd", FldName: "fd", TypeSize: 4}}, - &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "intptr", FldName: "cmd", TypeSize: 8}}}, + &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int32", FldName: "cmd", TypeSize: 4}}}, &PtrType{TypeCommon{TypeName: "ptr", FldName: "arg", TypeSize: 8}, &BufferType{TypeCommon: TypeCommon{TypeName: "array", IsVarlen: true}}}, }}, {NR: 5015, Name: "ioctl$ASHMEM_GET_NAME", CallName: "ioctl", Args: []Type{ @@ -52543,11 +52543,6 @@ var syscalls_mips64le = []*Syscall{ &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "cmd", TypeSize: 8}}, Val: 1074021156}, &PtrType{TypeCommon{TypeName: "ptr", FldName: "arg", TypeSize: 8}, &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int32", TypeSize: 4}}, Kind: 1, RangeEnd: 1}}, }}, - {NR: 5015, Name: "ioctl$CDROMAUDIOBUFSIZ", CallName: "ioctl", Args: []Type{ - &ResourceType{TypeCommon: TypeCommon{TypeName: "fd_cdrom", FldName: "fd", TypeSize: 4}}, - &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "cmd", TypeSize: 8}}, Val: 21378}, - &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int32", FldName: "val", TypeSize: 4}}}, - }}, {NR: 5015, Name: "ioctl$CDROMCLOSETRAY", CallName: "ioctl", MissingArgs: 1, Args: []Type{ &ResourceType{TypeCommon: TypeCommon{TypeName: "fd_cdrom", FldName: "fd", TypeSize: 4}}, &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "cmd", TypeSize: 8}}, Val: 21273}, @@ -52564,7 +52559,7 @@ var syscalls_mips64le = []*Syscall{ {NR: 5015, Name: "ioctl$CDROMGETSPINDOWN", CallName: "ioctl", Args: []Type{ &ResourceType{TypeCommon: TypeCommon{TypeName: "fd_cdrom", FldName: "fd", TypeSize: 4}}, &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "cmd", TypeSize: 8}}, Val: 21277}, - &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int8", FldName: "arg", TypeSize: 1}}}, + &PtrType{TypeCommon{TypeName: "ptr", FldName: "arg", TypeSize: 8}, &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int8", TypeSize: 1, ArgDir: 1}}}}, }}, {NR: 5015, Name: "ioctl$CDROMMULTISESSION", CallName: "ioctl", Args: []Type{ &ResourceType{TypeCommon: TypeCommon{TypeName: "fd_cdrom", FldName: "fd", TypeSize: 4}}, @@ -52646,7 +52641,7 @@ var syscalls_mips64le = []*Syscall{ {NR: 5015, Name: "ioctl$CDROMSETSPINDOWN", CallName: "ioctl", Args: []Type{ &ResourceType{TypeCommon: TypeCommon{TypeName: "fd_cdrom", FldName: "fd", TypeSize: 4}}, &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "cmd", TypeSize: 8}}, Val: 21278}, - &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int8", FldName: "arg", TypeSize: 1}}}, + &PtrType{TypeCommon{TypeName: "ptr", FldName: "arg", TypeSize: 8}, &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int8", TypeSize: 1}}, Kind: 1, RangeEnd: 15}}, }}, {NR: 5015, Name: "ioctl$CDROMSTART", CallName: "ioctl", MissingArgs: 1, Args: []Type{ &ResourceType{TypeCommon: TypeCommon{TypeName: "fd_cdrom", FldName: "fd", TypeSize: 4}}, @@ -53749,7 +53744,7 @@ var syscalls_mips64le = []*Syscall{ {NR: 5015, Name: "ioctl$HIDIOCAPPLICATION", CallName: "ioctl", Args: []Type{ &ResourceType{TypeCommon: TypeCommon{TypeName: "fd_hiddev", FldName: "fd", TypeSize: 4}}, &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "cmd", TypeSize: 8}}, Val: 536889346}, - &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int32", FldName: "arg", TypeSize: 4}}}, + &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "intptr", FldName: "arg", TypeSize: 8}}}, }}, {NR: 5015, Name: "ioctl$HIDIOCGCOLLECTIONINDEX", CallName: "ioctl", Args: []Type{ &ResourceType{TypeCommon: TypeCommon{TypeName: "fd_hiddev", FldName: "fd", TypeSize: 4}}, @@ -54132,7 +54127,7 @@ var syscalls_mips64le = []*Syscall{ {NR: 5015, Name: "ioctl$KDSIGACCEPT", CallName: "ioctl", Args: []Type{ &ResourceType{TypeCommon: TypeCommon{TypeName: "fd_tty", FldName: "fd", TypeSize: 4}}, &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "cmd", TypeSize: 8}}, Val: 19278}, - &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int32", FldName: "arg", TypeSize: 4}}, Kind: 1, RangeEnd: 65}, + &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "intptr", FldName: "arg", TypeSize: 8}}, Kind: 1, RangeEnd: 65}, }}, {NR: 5015, Name: "ioctl$KDSKBENT", CallName: "ioctl", Args: []Type{ &ResourceType{TypeCommon: TypeCommon{TypeName: "fd_tty", FldName: "fd", TypeSize: 4}}, @@ -54608,7 +54603,7 @@ var syscalls_mips64le = []*Syscall{ {NR: 5015, Name: "ioctl$MON_IOCH_MFLUSH", CallName: "ioctl", Args: []Type{ &ResourceType{TypeCommon: TypeCommon{TypeName: "fd_usbmon", FldName: "fd", TypeSize: 4}}, &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "cmd", TypeSize: 8}}, Val: 536908296}, - &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int32", FldName: "arg", TypeSize: 4}}}, + &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "intptr", FldName: "arg", TypeSize: 8}}}, }}, {NR: 5015, Name: "ioctl$MON_IOCQ_RING_SIZE", CallName: "ioctl", MissingArgs: 1, Args: []Type{ &ResourceType{TypeCommon: TypeCommon{TypeName: "fd_usbmon", FldName: "fd", TypeSize: 4}}, @@ -54621,7 +54616,7 @@ var syscalls_mips64le = []*Syscall{ {NR: 5015, Name: "ioctl$MON_IOCT_RING_SIZE", CallName: "ioctl", Args: []Type{ &ResourceType{TypeCommon: TypeCommon{TypeName: "fd_usbmon", FldName: "fd", TypeSize: 4}}, &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "cmd", TypeSize: 8}}, Val: 536908292}, - &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int32", FldName: "arg", TypeSize: 4}}, Kind: 1, RangeBegin: 8192, RangeEnd: 1228800}, + &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "intptr", FldName: "arg", TypeSize: 8}}, Kind: 1, RangeBegin: 8192, RangeEnd: 1228800}, }}, {NR: 5015, Name: "ioctl$MON_IOCX_GET", CallName: "ioctl", Args: []Type{ &ResourceType{TypeCommon: TypeCommon{TypeName: "fd_usbmon", FldName: "fd", TypeSize: 4}}, @@ -54945,7 +54940,7 @@ var syscalls_mips64le = []*Syscall{ {NR: 5015, Name: "ioctl$PTP_ENABLE_PPS", CallName: "ioctl", Args: []Type{ &ResourceType{TypeCommon: TypeCommon{TypeName: "fd_ptp", FldName: "fd", TypeSize: 4}}, &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "cmd", TypeSize: 8}}, Val: 2147761412}, - &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int32", FldName: "arg", TypeSize: 4}}, Kind: 1, RangeEnd: 1}, + &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "intptr", FldName: "arg", TypeSize: 8}}, Kind: 1, RangeEnd: 1}, }}, {NR: 5015, Name: "ioctl$PTP_EXTTS_REQUEST", CallName: "ioctl", Args: []Type{ &ResourceType{TypeCommon: TypeCommon{TypeName: "fd_ptp", FldName: "fd", TypeSize: 4}}, @@ -56524,7 +56519,7 @@ var syscalls_mips64le = []*Syscall{ {NR: 5015, Name: "ioctl$TIOCSIG", CallName: "ioctl", Args: []Type{ &ResourceType{TypeCommon: TypeCommon{TypeName: "fd_tty", FldName: "fd", TypeSize: 4}}, &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "cmd", TypeSize: 8}}, Val: 2147767350}, - &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int32", FldName: "arg", TypeSize: 4}}, Kind: 1, RangeEnd: 65}, + &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "intptr", FldName: "arg", TypeSize: 8}}, Kind: 1, RangeEnd: 65}, }}, {NR: 5015, Name: "ioctl$TIOCSISO7816", CallName: "ioctl", Args: []Type{ &ResourceType{TypeCommon: TypeCommon{TypeName: "fd_tty", FldName: "fd", TypeSize: 4}}, @@ -56694,7 +56689,7 @@ var syscalls_mips64le = []*Syscall{ {NR: 5015, Name: "ioctl$TUNSETNOCSUM", CallName: "ioctl", Args: []Type{ &ResourceType{TypeCommon: TypeCommon{TypeName: "fd_tun", FldName: "fd", TypeSize: 4}}, &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "cmd", TypeSize: 8}}, Val: 2147767496}, - &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int32", FldName: "arg", TypeSize: 4}}, Kind: 1, RangeEnd: 1}, + &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "intptr", FldName: "arg", TypeSize: 8}}, Kind: 1, RangeEnd: 1}, }}, {NR: 5015, Name: "ioctl$TUNSETOFFLOAD", CallName: "ioctl", Args: []Type{ &ResourceType{TypeCommon: TypeCommon{TypeName: "fd_tun", FldName: "fd", TypeSize: 4}}, @@ -56709,7 +56704,7 @@ var syscalls_mips64le = []*Syscall{ {NR: 5015, Name: "ioctl$TUNSETPERSIST", CallName: "ioctl", Args: []Type{ &ResourceType{TypeCommon: TypeCommon{TypeName: "fd_tun", FldName: "fd", TypeSize: 4}}, &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "cmd", TypeSize: 8}}, Val: 2147767499}, - &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int32", FldName: "arg", TypeSize: 4}}, Kind: 1, RangeEnd: 1}, + &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "intptr", FldName: "arg", TypeSize: 8}}, Kind: 1, RangeEnd: 1}, }}, {NR: 5015, Name: "ioctl$TUNSETQUEUE", CallName: "ioctl", Args: []Type{ &ResourceType{TypeCommon: TypeCommon{TypeName: "fd_tun", FldName: "fd", TypeSize: 4}}, @@ -57730,7 +57725,7 @@ var syscalls_mips64le = []*Syscall{ }}, {NR: 5015, Name: "ioctl$sock_netdev_private", CallName: "ioctl", Args: []Type{ &ResourceType{TypeCommon: TypeCommon{TypeName: "sock", FldName: "fd", TypeSize: 4}}, - &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int16", FldName: "cmd", TypeSize: 2}}, Kind: 1, RangeBegin: 35312, RangeEnd: 35327}, + &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int32", FldName: "cmd", TypeSize: 4}}, Kind: 1, RangeBegin: 35312, RangeEnd: 35327}, &PtrType{TypeCommon{TypeName: "ptr", FldName: "arg", TypeSize: 8}, &BufferType{TypeCommon: TypeCommon{TypeName: "array", IsVarlen: true}}}, }}, {NR: 5015, Name: "ioctl$sock_netrom_SIOCADDRT", CallName: "ioctl", Args: []Type{ @@ -57745,7 +57740,7 @@ var syscalls_mips64le = []*Syscall{ }}, {NR: 5015, Name: "ioctl$sock_proto_private", CallName: "ioctl", Args: []Type{ &ResourceType{TypeCommon: TypeCommon{TypeName: "sock", FldName: "fd", TypeSize: 4}}, - &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int16", FldName: "cmd", TypeSize: 2}}, Kind: 1, RangeBegin: 35296, RangeEnd: 35311}, + &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int32", FldName: "cmd", TypeSize: 4}}, Kind: 1, RangeBegin: 35296, RangeEnd: 35311}, &PtrType{TypeCommon{TypeName: "ptr", FldName: "arg", TypeSize: 8}, &BufferType{TypeCommon: TypeCommon{TypeName: "array", IsVarlen: true}}}, }}, {NR: 5015, Name: "ioctl$sock_rose_SIOCADDRT", CallName: "ioctl", Args: []Type{ @@ -57983,7 +57978,7 @@ var syscalls_mips64le = []*Syscall{ {NR: 5241, Name: "keyctl$set_timeout", CallName: "keyctl", MissingArgs: 2, Args: []Type{ &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "code", TypeSize: 8}}, Val: 15}, &ResourceType{TypeCommon: TypeCommon{TypeName: "key", FldName: "key", TypeSize: 4}}, - &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int32", FldName: "timeout", TypeSize: 4}}}, + &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "intptr", FldName: "timeout", TypeSize: 8}}}, }}, {NR: 5241, Name: "keyctl$setperm", CallName: "keyctl", MissingArgs: 2, Args: []Type{ &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "code", TypeSize: 8}}, Val: 5}, @@ -58038,7 +58033,7 @@ var syscalls_mips64le = []*Syscall{ &LenType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "len", FldName: "size", TypeSize: 8}}, Path: []string{"list"}}, }}, {NR: 5206, Name: "lookup_dcookie", CallName: "lookup_dcookie", Args: []Type{ - &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int64", FldName: "cookie", TypeSize: 8}}}, + &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "intptr", FldName: "cookie", TypeSize: 8}}}, &PtrType{TypeCommon{TypeName: "ptr", FldName: "buf", TypeSize: 8}, &BufferType{TypeCommon: TypeCommon{TypeName: "array", ArgDir: 1, IsVarlen: true}}}, &LenType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "len", FldName: "len", TypeSize: 8}}, Path: []string{"buf"}}, }}, @@ -58231,7 +58226,7 @@ var syscalls_mips64le = []*Syscall{ &FlagsType{IntTypeCommon{TypeCommon: TypeCommon{TypeName: "mmap_prot", FldName: "prot", TypeSize: 8}}, []uint64{1, 2, 4, 16, 16777216, 33554432}, true}, &FlagsType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "mmap_flags", FldName: "flags", TypeSize: 8}}, Vals: []uint64{0, 0, 0, 0, 1, 2, 3, 16, 1024, 2048, 4096, 8192, 16384, 32768, 65536, 131072, 262144, 524288, 1048576}}, &ResourceType{TypeCommon: TypeCommon{TypeName: "fd", FldName: "fd", TypeSize: 4}}, - &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int32", FldName: "offset", TypeSize: 4}}, Kind: 1, RangeEnd: 4294967295, Align: 4096}, + &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "intptr", FldName: "offset", TypeSize: 8}}, Kind: 1, RangeEnd: 4294967295, Align: 4096}, }}, {NR: 5009, Name: "mmap$IORING_OFF_CQ_RING", CallName: "mmap", Args: []Type{ &VmaType{TypeCommon: TypeCommon{TypeName: "vma", FldName: "addr", TypeSize: 8}}, @@ -58279,7 +58274,7 @@ var syscalls_mips64le = []*Syscall{ &FlagsType{IntTypeCommon{TypeCommon: TypeCommon{TypeName: "mmap_prot", FldName: "prot", TypeSize: 8}}, []uint64{1, 2, 4, 16, 16777216, 33554432}, true}, &FlagsType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "mmap_flags", FldName: "flags", TypeSize: 8}}, Vals: []uint64{0, 0, 0, 0, 1, 2, 3, 16, 1024, 2048, 4096, 8192, 16384, 32768, 65536, 131072, 262144, 524288, 1048576}}, &ResourceType{TypeCommon: TypeCommon{TypeName: "fd_fb", FldName: "fd", TypeSize: 4}}, - &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int64", FldName: "off", TypeSize: 8}}, Kind: 1, RangeEnd: 1048576, Align: 4096}, + &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "intptr", FldName: "off", TypeSize: 8}}, Kind: 1, RangeEnd: 1048576, Align: 4096}, }}, {NR: 5009, Name: "mmap$perf", CallName: "mmap", Args: []Type{ &VmaType{TypeCommon: TypeCommon{TypeName: "vma", FldName: "addr", TypeSize: 8}}, @@ -59603,11 +59598,11 @@ var syscalls_mips64le = []*Syscall{ }}, {NR: 5153, Name: "prctl$PR_CAPBSET_DROP", CallName: "prctl", MissingArgs: 2, Args: []Type{ &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "option", TypeSize: 8}}, Val: 24}, - &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int32", FldName: "arg", TypeSize: 4}}, Kind: 1, RangeEnd: 37}, + &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "intptr", FldName: "arg", TypeSize: 8}}, Kind: 1, RangeEnd: 37}, }}, {NR: 5153, Name: "prctl$PR_CAPBSET_READ", CallName: "prctl", MissingArgs: 2, Args: []Type{ &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "option", TypeSize: 8}}, Val: 23}, - &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int32", FldName: "arg", TypeSize: 4}}, Kind: 1, RangeEnd: 37}, + &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "intptr", FldName: "arg", TypeSize: 8}}, Kind: 1, RangeEnd: 37}, }}, {NR: 5153, Name: "prctl$PR_CAP_AMBIENT", CallName: "prctl", MissingArgs: 1, Args: []Type{ &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "option", TypeSize: 8}}, Val: 47}, @@ -59757,7 +59752,7 @@ var syscalls_mips64le = []*Syscall{ }}, {NR: 5153, Name: "prctl$PR_SET_PDEATHSIG", CallName: "prctl", MissingArgs: 2, Args: []Type{ &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "option", TypeSize: 8}}, Val: 1}, - &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int32", FldName: "arg", TypeSize: 4}}, Kind: 1, RangeEnd: 65}, + &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "intptr", FldName: "arg", TypeSize: 8}}, Kind: 1, RangeEnd: 65}, }}, {NR: 5153, Name: "prctl$PR_SET_PTRACER", CallName: "prctl", MissingArgs: 2, Args: []Type{ &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "option", TypeSize: 8}}, Val: 1499557217}, @@ -64423,12 +64418,12 @@ var syscalls_mips64le = []*Syscall{ {NR: 5040, Name: "socket$caif_seqpacket", CallName: "socket", Args: []Type{ &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "domain", TypeSize: 8}}, Val: 37}, &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "type", TypeSize: 8}}, Val: 5}, - &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int32", FldName: "proto", TypeSize: 4}}, Kind: 1, RangeEnd: 5}, + &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int8", FldName: "proto", TypeSize: 1}}, Kind: 1, RangeEnd: 5}, }, Ret: &ResourceType{TypeCommon: TypeCommon{TypeName: "sock_caif", FldName: "ret", TypeSize: 4, ArgDir: 1}}}, {NR: 5040, Name: "socket$caif_stream", CallName: "socket", Args: []Type{ &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "domain", TypeSize: 8}}, Val: 37}, &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "type", TypeSize: 8}}, Val: 2}, - &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int32", FldName: "proto", TypeSize: 4}}, Kind: 1, RangeEnd: 5}, + &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int8", FldName: "proto", TypeSize: 1}}, Kind: 1, RangeEnd: 5}, }, Ret: &ResourceType{TypeCommon: TypeCommon{TypeName: "sock_caif", FldName: "ret", TypeSize: 4, ArgDir: 1}}}, {NR: 5040, Name: "socket$can_bcm", CallName: "socket", Args: []Type{ &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "domain", TypeSize: 8}}, Val: 29}, @@ -75643,4 +75638,4 @@ var consts_mips64le = []ConstValue{ {"ethtool_per_queue_op_size", 128}, } -const revision_mips64le = "8587350b245052b7ccf5ed9a0302a1a9cb79afc8" +const revision_mips64le = "f2309786b1dffa004441418c674c98470ccb455e" diff --git a/sys/linux/gen/ppc64le.go b/sys/linux/gen/ppc64le.go index 5854a7dbd..742a97b8b 100644 --- a/sys/linux/gen/ppc64le.go +++ b/sys/linux/gen/ppc64le.go @@ -51066,7 +51066,7 @@ var syscalls_ppc64le = []*Syscall{ {NR: 55, Name: "fcntl$setsig", CallName: "fcntl", Args: []Type{ &ResourceType{TypeCommon: TypeCommon{TypeName: "fd", FldName: "fd", TypeSize: 4}}, &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "cmd", TypeSize: 8}}, Val: 10}, - &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int32", FldName: "sig", TypeSize: 4}}, Kind: 1, RangeEnd: 65}, + &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "intptr", FldName: "sig", TypeSize: 8}}, Kind: 1, RangeEnd: 65}, }}, {NR: 55, Name: "fcntl$setstatus", CallName: "fcntl", Args: []Type{ &ResourceType{TypeCommon: TypeCommon{TypeName: "fd", FldName: "fd", TypeSize: 4}}, @@ -53089,7 +53089,7 @@ var syscalls_ppc64le = []*Syscall{ }, Ret: &ResourceType{TypeCommon: TypeCommon{TypeName: "fd_io_uring", FldName: "ret", TypeSize: 4, ArgDir: 1}}}, {NR: 54, Name: "ioctl", CallName: "ioctl", Args: []Type{ &ResourceType{TypeCommon: TypeCommon{TypeName: "fd", FldName: "fd", TypeSize: 4}}, - &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "intptr", FldName: "cmd", TypeSize: 8}}}, + &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int32", FldName: "cmd", TypeSize: 4}}}, &PtrType{TypeCommon{TypeName: "ptr", FldName: "arg", TypeSize: 8}, &BufferType{TypeCommon: TypeCommon{TypeName: "array", IsVarlen: true}}}, }}, {NR: 54, Name: "ioctl$ASHMEM_GET_NAME", CallName: "ioctl", Args: []Type{ @@ -53356,11 +53356,6 @@ var syscalls_ppc64le = []*Syscall{ &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "cmd", TypeSize: 8}}, Val: 1074021156}, &PtrType{TypeCommon{TypeName: "ptr", FldName: "arg", TypeSize: 8}, &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int32", TypeSize: 4}}, Kind: 1, RangeEnd: 1}}, }}, - {NR: 54, Name: "ioctl$CDROMAUDIOBUFSIZ", CallName: "ioctl", Args: []Type{ - &ResourceType{TypeCommon: TypeCommon{TypeName: "fd_cdrom", FldName: "fd", TypeSize: 4}}, - &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "cmd", TypeSize: 8}}, Val: 21378}, - &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int32", FldName: "val", TypeSize: 4}}}, - }}, {NR: 54, Name: "ioctl$CDROMCLOSETRAY", CallName: "ioctl", MissingArgs: 1, Args: []Type{ &ResourceType{TypeCommon: TypeCommon{TypeName: "fd_cdrom", FldName: "fd", TypeSize: 4}}, &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "cmd", TypeSize: 8}}, Val: 21273}, @@ -53377,7 +53372,7 @@ var syscalls_ppc64le = []*Syscall{ {NR: 54, Name: "ioctl$CDROMGETSPINDOWN", CallName: "ioctl", Args: []Type{ &ResourceType{TypeCommon: TypeCommon{TypeName: "fd_cdrom", FldName: "fd", TypeSize: 4}}, &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "cmd", TypeSize: 8}}, Val: 21277}, - &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int8", FldName: "arg", TypeSize: 1}}}, + &PtrType{TypeCommon{TypeName: "ptr", FldName: "arg", TypeSize: 8}, &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int8", TypeSize: 1, ArgDir: 1}}}}, }}, {NR: 54, Name: "ioctl$CDROMMULTISESSION", CallName: "ioctl", Args: []Type{ &ResourceType{TypeCommon: TypeCommon{TypeName: "fd_cdrom", FldName: "fd", TypeSize: 4}}, @@ -53459,7 +53454,7 @@ var syscalls_ppc64le = []*Syscall{ {NR: 54, Name: "ioctl$CDROMSETSPINDOWN", CallName: "ioctl", Args: []Type{ &ResourceType{TypeCommon: TypeCommon{TypeName: "fd_cdrom", FldName: "fd", TypeSize: 4}}, &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "cmd", TypeSize: 8}}, Val: 21278}, - &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int8", FldName: "arg", TypeSize: 1}}}, + &PtrType{TypeCommon{TypeName: "ptr", FldName: "arg", TypeSize: 8}, &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int8", TypeSize: 1}}, Kind: 1, RangeEnd: 15}}, }}, {NR: 54, Name: "ioctl$CDROMSTART", CallName: "ioctl", MissingArgs: 1, Args: []Type{ &ResourceType{TypeCommon: TypeCommon{TypeName: "fd_cdrom", FldName: "fd", TypeSize: 4}}, @@ -54562,7 +54557,7 @@ var syscalls_ppc64le = []*Syscall{ {NR: 54, Name: "ioctl$HIDIOCAPPLICATION", CallName: "ioctl", Args: []Type{ &ResourceType{TypeCommon: TypeCommon{TypeName: "fd_hiddev", FldName: "fd", TypeSize: 4}}, &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "cmd", TypeSize: 8}}, Val: 536889346}, - &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int32", FldName: "arg", TypeSize: 4}}}, + &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "intptr", FldName: "arg", TypeSize: 8}}}, }}, {NR: 54, Name: "ioctl$HIDIOCGCOLLECTIONINDEX", CallName: "ioctl", Args: []Type{ &ResourceType{TypeCommon: TypeCommon{TypeName: "fd_hiddev", FldName: "fd", TypeSize: 4}}, @@ -54945,7 +54940,7 @@ var syscalls_ppc64le = []*Syscall{ {NR: 54, Name: "ioctl$KDSIGACCEPT", CallName: "ioctl", Args: []Type{ &ResourceType{TypeCommon: TypeCommon{TypeName: "fd_tty", FldName: "fd", TypeSize: 4}}, &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "cmd", TypeSize: 8}}, Val: 19278}, - &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int32", FldName: "arg", TypeSize: 4}}, Kind: 1, RangeEnd: 65}, + &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "intptr", FldName: "arg", TypeSize: 8}}, Kind: 1, RangeEnd: 65}, }}, {NR: 54, Name: "ioctl$KDSKBENT", CallName: "ioctl", Args: []Type{ &ResourceType{TypeCommon: TypeCommon{TypeName: "fd_tty", FldName: "fd", TypeSize: 4}}, @@ -55421,7 +55416,7 @@ var syscalls_ppc64le = []*Syscall{ {NR: 54, Name: "ioctl$MON_IOCH_MFLUSH", CallName: "ioctl", Args: []Type{ &ResourceType{TypeCommon: TypeCommon{TypeName: "fd_usbmon", FldName: "fd", TypeSize: 4}}, &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "cmd", TypeSize: 8}}, Val: 536908296}, - &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int32", FldName: "arg", TypeSize: 4}}}, + &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "intptr", FldName: "arg", TypeSize: 8}}}, }}, {NR: 54, Name: "ioctl$MON_IOCQ_RING_SIZE", CallName: "ioctl", MissingArgs: 1, Args: []Type{ &ResourceType{TypeCommon: TypeCommon{TypeName: "fd_usbmon", FldName: "fd", TypeSize: 4}}, @@ -55434,7 +55429,7 @@ var syscalls_ppc64le = []*Syscall{ {NR: 54, Name: "ioctl$MON_IOCT_RING_SIZE", CallName: "ioctl", Args: []Type{ &ResourceType{TypeCommon: TypeCommon{TypeName: "fd_usbmon", FldName: "fd", TypeSize: 4}}, &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "cmd", TypeSize: 8}}, Val: 536908292}, - &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int32", FldName: "arg", TypeSize: 4}}, Kind: 1, RangeBegin: 65536, RangeEnd: 1245184}, + &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "intptr", FldName: "arg", TypeSize: 8}}, Kind: 1, RangeBegin: 65536, RangeEnd: 1245184}, }}, {NR: 54, Name: "ioctl$MON_IOCX_GET", CallName: "ioctl", Args: []Type{ &ResourceType{TypeCommon: TypeCommon{TypeName: "fd_usbmon", FldName: "fd", TypeSize: 4}}, @@ -55758,7 +55753,7 @@ var syscalls_ppc64le = []*Syscall{ {NR: 54, Name: "ioctl$PTP_ENABLE_PPS", CallName: "ioctl", Args: []Type{ &ResourceType{TypeCommon: TypeCommon{TypeName: "fd_ptp", FldName: "fd", TypeSize: 4}}, &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "cmd", TypeSize: 8}}, Val: 2147761412}, - &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int32", FldName: "arg", TypeSize: 4}}, Kind: 1, RangeEnd: 1}, + &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "intptr", FldName: "arg", TypeSize: 8}}, Kind: 1, RangeEnd: 1}, }}, {NR: 54, Name: "ioctl$PTP_EXTTS_REQUEST", CallName: "ioctl", Args: []Type{ &ResourceType{TypeCommon: TypeCommon{TypeName: "fd_ptp", FldName: "fd", TypeSize: 4}}, @@ -57327,7 +57322,7 @@ var syscalls_ppc64le = []*Syscall{ {NR: 54, Name: "ioctl$TIOCSIG", CallName: "ioctl", Args: []Type{ &ResourceType{TypeCommon: TypeCommon{TypeName: "fd_tty", FldName: "fd", TypeSize: 4}}, &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "cmd", TypeSize: 8}}, Val: 2147767350}, - &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int32", FldName: "arg", TypeSize: 4}}, Kind: 1, RangeEnd: 65}, + &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "intptr", FldName: "arg", TypeSize: 8}}, Kind: 1, RangeEnd: 65}, }}, {NR: 54, Name: "ioctl$TIOCSISO7816", CallName: "ioctl", Args: []Type{ &ResourceType{TypeCommon: TypeCommon{TypeName: "fd_tty", FldName: "fd", TypeSize: 4}}, @@ -57497,7 +57492,7 @@ var syscalls_ppc64le = []*Syscall{ {NR: 54, Name: "ioctl$TUNSETNOCSUM", CallName: "ioctl", Args: []Type{ &ResourceType{TypeCommon: TypeCommon{TypeName: "fd_tun", FldName: "fd", TypeSize: 4}}, &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "cmd", TypeSize: 8}}, Val: 2147767496}, - &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int32", FldName: "arg", TypeSize: 4}}, Kind: 1, RangeEnd: 1}, + &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "intptr", FldName: "arg", TypeSize: 8}}, Kind: 1, RangeEnd: 1}, }}, {NR: 54, Name: "ioctl$TUNSETOFFLOAD", CallName: "ioctl", Args: []Type{ &ResourceType{TypeCommon: TypeCommon{TypeName: "fd_tun", FldName: "fd", TypeSize: 4}}, @@ -57512,7 +57507,7 @@ var syscalls_ppc64le = []*Syscall{ {NR: 54, Name: "ioctl$TUNSETPERSIST", CallName: "ioctl", Args: []Type{ &ResourceType{TypeCommon: TypeCommon{TypeName: "fd_tun", FldName: "fd", TypeSize: 4}}, &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "cmd", TypeSize: 8}}, Val: 2147767499}, - &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int32", FldName: "arg", TypeSize: 4}}, Kind: 1, RangeEnd: 1}, + &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "intptr", FldName: "arg", TypeSize: 8}}, Kind: 1, RangeEnd: 1}, }}, {NR: 54, Name: "ioctl$TUNSETQUEUE", CallName: "ioctl", Args: []Type{ &ResourceType{TypeCommon: TypeCommon{TypeName: "fd_tun", FldName: "fd", TypeSize: 4}}, @@ -59033,7 +59028,7 @@ var syscalls_ppc64le = []*Syscall{ }}, {NR: 54, Name: "ioctl$sock_netdev_private", CallName: "ioctl", Args: []Type{ &ResourceType{TypeCommon: TypeCommon{TypeName: "sock", FldName: "fd", TypeSize: 4}}, - &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int16", FldName: "cmd", TypeSize: 2}}, Kind: 1, RangeBegin: 35312, RangeEnd: 35327}, + &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int32", FldName: "cmd", TypeSize: 4}}, Kind: 1, RangeBegin: 35312, RangeEnd: 35327}, &PtrType{TypeCommon{TypeName: "ptr", FldName: "arg", TypeSize: 8}, &BufferType{TypeCommon: TypeCommon{TypeName: "array", IsVarlen: true}}}, }}, {NR: 54, Name: "ioctl$sock_netrom_SIOCADDRT", CallName: "ioctl", Args: []Type{ @@ -59048,7 +59043,7 @@ var syscalls_ppc64le = []*Syscall{ }}, {NR: 54, Name: "ioctl$sock_proto_private", CallName: "ioctl", Args: []Type{ &ResourceType{TypeCommon: TypeCommon{TypeName: "sock", FldName: "fd", TypeSize: 4}}, - &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int16", FldName: "cmd", TypeSize: 2}}, Kind: 1, RangeBegin: 35296, RangeEnd: 35311}, + &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int32", FldName: "cmd", TypeSize: 4}}, Kind: 1, RangeBegin: 35296, RangeEnd: 35311}, &PtrType{TypeCommon{TypeName: "ptr", FldName: "arg", TypeSize: 8}, &BufferType{TypeCommon: TypeCommon{TypeName: "array", IsVarlen: true}}}, }}, {NR: 54, Name: "ioctl$sock_rose_SIOCADDRT", CallName: "ioctl", Args: []Type{ @@ -59294,7 +59289,7 @@ var syscalls_ppc64le = []*Syscall{ {NR: 271, Name: "keyctl$set_timeout", CallName: "keyctl", MissingArgs: 2, Args: []Type{ &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "code", TypeSize: 8}}, Val: 15}, &ResourceType{TypeCommon: TypeCommon{TypeName: "key", FldName: "key", TypeSize: 4}}, - &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int32", FldName: "timeout", TypeSize: 4}}}, + &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "intptr", FldName: "timeout", TypeSize: 8}}}, }}, {NR: 271, Name: "keyctl$setperm", CallName: "keyctl", MissingArgs: 2, Args: []Type{ &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "code", TypeSize: 8}}, Val: 5}, @@ -59349,7 +59344,7 @@ var syscalls_ppc64le = []*Syscall{ &LenType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "len", FldName: "size", TypeSize: 8}}, Path: []string{"list"}}, }}, {NR: 235, Name: "lookup_dcookie", CallName: "lookup_dcookie", Args: []Type{ - &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int64", FldName: "cookie", TypeSize: 8}}}, + &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "intptr", FldName: "cookie", TypeSize: 8}}}, &PtrType{TypeCommon{TypeName: "ptr", FldName: "buf", TypeSize: 8}, &BufferType{TypeCommon: TypeCommon{TypeName: "array", ArgDir: 1, IsVarlen: true}}}, &LenType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "len", FldName: "len", TypeSize: 8}}, Path: []string{"buf"}}, }}, @@ -59542,7 +59537,7 @@ var syscalls_ppc64le = []*Syscall{ &FlagsType{IntTypeCommon{TypeCommon: TypeCommon{TypeName: "mmap_prot", FldName: "prot", TypeSize: 8}}, []uint64{1, 2, 4, 8, 16777216, 33554432}, true}, &FlagsType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "mmap_flags", FldName: "flags", TypeSize: 8}}, Vals: []uint64{0, 0, 1, 2, 3, 16, 32, 64, 128, 256, 2048, 4096, 32768, 65536, 131072, 262144, 524288, 1048576, 67108864}}, &ResourceType{TypeCommon: TypeCommon{TypeName: "fd", FldName: "fd", TypeSize: 4}}, - &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int32", FldName: "offset", TypeSize: 4}}, Kind: 1, RangeEnd: 4294967295, Align: 4096}, + &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "intptr", FldName: "offset", TypeSize: 8}}, Kind: 1, RangeEnd: 4294967295, Align: 4096}, }}, {NR: 90, Name: "mmap$IORING_OFF_CQ_RING", CallName: "mmap", Args: []Type{ &VmaType{TypeCommon: TypeCommon{TypeName: "vma", FldName: "addr", TypeSize: 8}}, @@ -59590,7 +59585,7 @@ var syscalls_ppc64le = []*Syscall{ &FlagsType{IntTypeCommon{TypeCommon: TypeCommon{TypeName: "mmap_prot", FldName: "prot", TypeSize: 8}}, []uint64{1, 2, 4, 8, 16777216, 33554432}, true}, &FlagsType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "mmap_flags", FldName: "flags", TypeSize: 8}}, Vals: []uint64{0, 0, 1, 2, 3, 16, 32, 64, 128, 256, 2048, 4096, 32768, 65536, 131072, 262144, 524288, 1048576, 67108864}}, &ResourceType{TypeCommon: TypeCommon{TypeName: "fd_fb", FldName: "fd", TypeSize: 4}}, - &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int64", FldName: "off", TypeSize: 8}}, Kind: 1, RangeEnd: 1048576, Align: 4096}, + &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "intptr", FldName: "off", TypeSize: 8}}, Kind: 1, RangeEnd: 1048576, Align: 4096}, }}, {NR: 90, Name: "mmap$perf", CallName: "mmap", Args: []Type{ &VmaType{TypeCommon: TypeCommon{TypeName: "vma", FldName: "addr", TypeSize: 8}}, @@ -60934,11 +60929,11 @@ var syscalls_ppc64le = []*Syscall{ }}, {NR: 171, Name: "prctl$PR_CAPBSET_DROP", CallName: "prctl", MissingArgs: 2, Args: []Type{ &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "option", TypeSize: 8}}, Val: 24}, - &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int32", FldName: "arg", TypeSize: 4}}, Kind: 1, RangeEnd: 37}, + &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "intptr", FldName: "arg", TypeSize: 8}}, Kind: 1, RangeEnd: 37}, }}, {NR: 171, Name: "prctl$PR_CAPBSET_READ", CallName: "prctl", MissingArgs: 2, Args: []Type{ &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "option", TypeSize: 8}}, Val: 23}, - &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int32", FldName: "arg", TypeSize: 4}}, Kind: 1, RangeEnd: 37}, + &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "intptr", FldName: "arg", TypeSize: 8}}, Kind: 1, RangeEnd: 37}, }}, {NR: 171, Name: "prctl$PR_CAP_AMBIENT", CallName: "prctl", MissingArgs: 1, Args: []Type{ &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "option", TypeSize: 8}}, Val: 47}, @@ -61088,7 +61083,7 @@ var syscalls_ppc64le = []*Syscall{ }}, {NR: 171, Name: "prctl$PR_SET_PDEATHSIG", CallName: "prctl", MissingArgs: 2, Args: []Type{ &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "option", TypeSize: 8}}, Val: 1}, - &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int32", FldName: "arg", TypeSize: 4}}, Kind: 1, RangeEnd: 65}, + &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "intptr", FldName: "arg", TypeSize: 8}}, Kind: 1, RangeEnd: 65}, }}, {NR: 171, Name: "prctl$PR_SET_PTRACER", CallName: "prctl", MissingArgs: 2, Args: []Type{ &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "option", TypeSize: 8}}, Val: 1499557217}, @@ -65753,12 +65748,12 @@ var syscalls_ppc64le = []*Syscall{ {NR: 326, Name: "socket$caif_seqpacket", CallName: "socket", Args: []Type{ &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "domain", TypeSize: 8}}, Val: 37}, &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "type", TypeSize: 8}}, Val: 5}, - &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int32", FldName: "proto", TypeSize: 4}}, Kind: 1, RangeEnd: 5}, + &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int8", FldName: "proto", TypeSize: 1}}, Kind: 1, RangeEnd: 5}, }, Ret: &ResourceType{TypeCommon: TypeCommon{TypeName: "sock_caif", FldName: "ret", TypeSize: 4, ArgDir: 1}}}, {NR: 326, Name: "socket$caif_stream", CallName: "socket", Args: []Type{ &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "domain", TypeSize: 8}}, Val: 37}, &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "type", TypeSize: 8}}, Val: 1}, - &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int32", FldName: "proto", TypeSize: 4}}, Kind: 1, RangeEnd: 5}, + &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int8", FldName: "proto", TypeSize: 1}}, Kind: 1, RangeEnd: 5}, }, Ret: &ResourceType{TypeCommon: TypeCommon{TypeName: "sock_caif", FldName: "ret", TypeSize: 4, ArgDir: 1}}}, {NR: 326, Name: "socket$can_bcm", CallName: "socket", Args: []Type{ &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "domain", TypeSize: 8}}, Val: 29}, @@ -77979,4 +77974,4 @@ var consts_ppc64le = []ConstValue{ {"ethtool_per_queue_op_size", 128}, } -const revision_ppc64le = "88f13870a768fc9d901f0b86e93664821fa28696" +const revision_ppc64le = "cfce92797252d85d92e3aff56effff2e2e3e8c45" diff --git a/sys/linux/key.txt b/sys/linux/key.txt index 25e1cb4c6..8cb29fff2 100644 --- a/sys/linux/key.txt +++ b/sys/linux/key.txt @@ -35,7 +35,7 @@ keyctl$setperm(code const[KEYCTL_SETPERM], key key, perm flags[key_perm]) keyctl$instantiate(code const[KEYCTL_INSTANTIATE], key key, payload ptr[in, key_instantiate_payload, opt], paylen len[payload], keyring keyring[opt]) keyctl$negate(code const[KEYCTL_NEGATE], key key, timeout intptr, keyring keyring) keyctl$set_reqkey_keyring(code const[KEYCTL_SET_REQKEY_KEYRING], reqkey flags[reqkey_keyring]) -keyctl$set_timeout(code const[KEYCTL_SET_TIMEOUT], key key, timeout int32) +keyctl$set_timeout(code const[KEYCTL_SET_TIMEOUT], key key, timeout intptr) keyctl$assume_authority(code const[KEYCTL_ASSUME_AUTHORITY], key key) keyctl$get_security(code const[KEYCTL_GET_SECURITY], key key, label buffer[out], len len[label]) keyctl$session_to_parent(code const[KEYCTL_SESSION_TO_PARENT]) diff --git a/sys/linux/prctl.txt b/sys/linux/prctl.txt index 0c62da866..0b7440d27 100644 --- a/sys/linux/prctl.txt +++ b/sys/linux/prctl.txt @@ -9,7 +9,7 @@ include <uapi/linux/capability.h> include <uapi/linux/securebits.h> include <asm/prctl.h> -prctl$PR_SET_PDEATHSIG(option const[PR_SET_PDEATHSIG], arg signalno) +prctl$PR_SET_PDEATHSIG(option const[PR_SET_PDEATHSIG], arg signalnoptr) prctl$PR_GET_PDEATHSIG(option const[PR_GET_PDEATHSIG], arg ptr[out, int32]) prctl$PR_GET_DUMPABLE(option const[PR_GET_DUMPABLE]) @@ -51,8 +51,8 @@ prctl$PR_SET_SECCOMP(option const[PR_SET_SECCOMP], mode flags[prctl_seccomp_mode prctl_seccomp_mode = SECCOMP_MODE_DISABLED, SECCOMP_MODE_STRICT, SECCOMP_MODE_FILTER -prctl$PR_CAPBSET_READ(option const[PR_CAPBSET_READ], arg int32[0:CAP_LAST_CAP]) -prctl$PR_CAPBSET_DROP(option const[PR_CAPBSET_DROP], arg int32[0:CAP_LAST_CAP]) +prctl$PR_CAPBSET_READ(option const[PR_CAPBSET_READ], arg intptr[0:CAP_LAST_CAP]) +prctl$PR_CAPBSET_DROP(option const[PR_CAPBSET_DROP], arg intptr[0:CAP_LAST_CAP]) prctl$PR_GET_TSC(option const[PR_GET_TSC], arg ptr[out, int32]) prctl$PR_SET_TSC(option const[PR_SET_TSC], arg flags[prctl_tsc_mode]) diff --git a/sys/linux/socket.txt b/sys/linux/socket.txt index 7270f6401..298480efb 100644 --- a/sys/linux/socket.txt +++ b/sys/linux/socket.txt @@ -303,8 +303,8 @@ define SIOCDEVPRIVATE_END (SIOCDEVPRIVATE + 15) define SIOCPROTOPRIVATE_BEG (SIOCPROTOPRIVATE) define SIOCPROTOPRIVATE_END (SIOCPROTOPRIVATE + 15) -ioctl$sock_netdev_private(fd sock, cmd int16[SIOCDEVPRIVATE_BEG:SIOCDEVPRIVATE_END], arg ptr[in, array[int8]]) -ioctl$sock_proto_private(fd sock, cmd int16[SIOCPROTOPRIVATE_BEG:SIOCPROTOPRIVATE_END], arg ptr[in, array[int8]]) +ioctl$sock_netdev_private(fd sock, cmd int32[SIOCDEVPRIVATE_BEG:SIOCDEVPRIVATE_END], arg ptr[in, array[int8]]) +ioctl$sock_proto_private(fd sock, cmd int32[SIOCPROTOPRIVATE_BEG:SIOCPROTOPRIVATE_END], arg ptr[in, array[int8]]) ioctl$sock_FIOSETOWN(fd sock, cmd const[FIOSETOWN], arg ptr[in, pid]) ioctl$sock_SIOCSPGRP(fd sock, cmd const[SIOCSPGRP], arg ptr[in, pid]) diff --git a/sys/linux/socket_caif.txt b/sys/linux/socket_caif.txt index f867b29fc..bbecaa670 100644 --- a/sys/linux/socket_caif.txt +++ b/sys/linux/socket_caif.txt @@ -7,8 +7,8 @@ include <uapi/linux/caif/caif_socket.h> resource sock_caif[sock] -socket$caif_seqpacket(domain const[AF_CAIF], type const[SOCK_SEQPACKET], proto int32[CAIFPROTO_AT:CAIFPROTO_DEBUG]) sock_caif -socket$caif_stream(domain const[AF_CAIF], type const[SOCK_STREAM], proto int32[CAIFPROTO_AT:CAIFPROTO_DEBUG]) sock_caif +socket$caif_seqpacket(domain const[AF_CAIF], type const[SOCK_SEQPACKET], proto int8[CAIFPROTO_AT:CAIFPROTO_DEBUG]) sock_caif +socket$caif_stream(domain const[AF_CAIF], type const[SOCK_STREAM], proto int8[CAIFPROTO_AT:CAIFPROTO_DEBUG]) sock_caif connect$caif(fd sock_caif, addr ptr[in, sockaddr_caif], addrlen len[addr]) setsockopt$CAIFSO_LINK_SELECT(fd sock_caif, level const[SOL_CAIF], opt const[CAIFSO_LINK_SELECT], arg ptr[in, int32], arglen len[arg]) setsockopt$CAIFSO_REQ_PARAM(fd sock_caif, level const[SOL_CAIF], opt const[CAIFSO_REQ_PARAM], arg ptr[in, array[int8, 0:256]], arglen len[arg]) diff --git a/sys/linux/sys.txt b/sys/linux/sys.txt index ee875ad48..d59d2b5b3 100644 --- a/sys/linux/sys.txt +++ b/sys/linux/sys.txt @@ -71,6 +71,7 @@ type align64[T] { } [align_8] type signalno int32[0:65] +type signalnoptr intptr[0:65] syz_execute_func(text ptr[in, text[target]]) @@ -142,7 +143,7 @@ eventfd2(initval int32, flags flags[eventfd_flags]) fd_event read$eventfd(fd fd_event, val ptr[out, int64], len len[val]) write$eventfd(fd fd_event, val ptr[in, int64], len len[val]) -mmap(addr vma, len len[addr], prot flags[mmap_prot], flags flags[mmap_flags], fd fd, offset int32[0:0xffffffff, 0x1000]) +mmap(addr vma, len len[addr], prot flags[mmap_prot], flags flags[mmap_flags], fd fd, offset intptr[0:0xffffffff, 0x1000]) munmap(addr vma, len len[addr]) mremap(addr vma, len len[addr], newlen len[newaddr], flags flags[mremap_flags], newaddr vma) remap_file_pages(addr vma, size len[addr], prot flags[mmap_prot], pgoff intptr, flags flags[mmap_flags]) @@ -179,7 +180,7 @@ pkey_flags = PKEY_DISABLE_ACCESS, PKEY_DISABLE_WRITE restart_syscall() # Almighty! -ioctl(fd fd, cmd intptr, arg buffer[in]) +ioctl(fd fd, cmd int32, arg buffer[in]) ioctl$void(fd fd, cmd flags[ioctl_void]) ioctl$int_in(fd fd, cmd flags[ioctl_int_in], v ptr[in, int64]) @@ -194,7 +195,7 @@ fcntl$getown(fd fd, cmd const[F_GETOWN]) pid fcntl$setown(fd fd, cmd const[F_SETOWN], pid pid) fcntl$getownex(fd fd, cmd const[F_GETOWN_EX], arg ptr[out, f_owner_ex]) fcntl$setownex(fd fd, cmd const[F_SETOWN_EX], arg ptr[in, f_owner_ex]) -fcntl$setsig(fd fd, cmd const[F_SETSIG], sig signalno) +fcntl$setsig(fd fd, cmd const[F_SETSIG], sig signalnoptr) fcntl$setlease(fd fd, cmd const[F_SETLEASE], typ flags[flock_type]) fcntl$notify(fd fd, cmd const[F_NOTIFY], typ flags[fcntl_notify]) fcntl$setpipe(fd fd, cmd const[F_SETPIPE_SZ], sz intptr) @@ -332,7 +333,7 @@ fdatasync(fd fd) sync() syncfs(fd fd) sync_file_range(fd fd, off intptr, nbytes intptr, flags flags[sync_file_flags]) -lookup_dcookie(cookie int64, buf buffer[out], len len[buf]) +lookup_dcookie(cookie intptr, buf buffer[out], len len[buf]) getdents(fd fd_dir, ent buffer[out], count len[ent]) getdents64(fd fd_dir, ent buffer[out], count len[ent]) name_to_handle_at(fd fd_dir, file ptr[in, filename], handle ptr[in, file_handle], mnt ptr[out, int32], flags flags[name_to_handle_at_flags]) diff --git a/sys/syz-sysgen/sysgen.go b/sys/syz-sysgen/sysgen.go index 1737e4544..6a89a1428 100644 --- a/sys/syz-sysgen/sysgen.go +++ b/sys/syz-sysgen/sysgen.go @@ -58,14 +58,26 @@ type OSData struct { func main() { flag.Parse() + var OSList []string + for OS := range targets.List { + OSList = append(OSList, OS) + } + sort.Strings(OSList) + var oses []OSData - for OS, archs := range targets.List { + for _, OS := range OSList { top := ast.ParseGlob(filepath.Join("sys", OS, "*.txt"), nil) if top == nil { os.Exit(1) } osutil.MkdirAll(filepath.Join("sys", OS, "gen")) + var archs []string + for arch := range targets.List[OS] { + archs = append(archs, arch) + } + sort.Strings(archs) + type Job struct { Target *targets.Target OK bool @@ -74,9 +86,9 @@ func main() { ArchData ArchData } var jobs []*Job - for _, target := range archs { + for _, arch := range archs { jobs = append(jobs, &Job{ - Target: target, + Target: targets.List[OS][arch], }) } sort.Slice(jobs, func(i, j int) bool { diff --git a/sys/targets/targets.go b/sys/targets/targets.go index 47dfb965c..698b749dd 100644 --- a/sys/targets/targets.go +++ b/sys/targets/targets.go @@ -40,6 +40,8 @@ type osCommon struct { BuildOS string // Does the OS use syscall numbers (e.g. Linux) or has interface based on functions (e.g. fuchsia). SyscallNumbers bool + // Syscalls accept int64 arguments (>sizeof(void*)). + Int64SyscallArgs bool // E.g. "__NR_" or "SYS_". SyscallPrefix string // ipc<->executor communication tuning. @@ -113,6 +115,7 @@ var List = map[string]map[string]*Target{ CrossCFlags: []string{"-m32", "-static"}, osCommon: osCommon{ SyscallNumbers: true, + Int64SyscallArgs: true, SyscallPrefix: "SYS_", ExecutorUsesShmem: true, ExecutorUsesForkServer: false, @@ -126,6 +129,7 @@ var List = map[string]map[string]*Target{ CrossCFlags: []string{"-m32", "-static"}, osCommon: osCommon{ SyscallNumbers: true, + Int64SyscallArgs: true, SyscallPrefix: "SYS_", ExecutorUsesShmem: true, ExecutorUsesForkServer: true, @@ -352,6 +356,7 @@ var oses = map[string]osCommon{ }, "freebsd": { SyscallNumbers: true, + Int64SyscallArgs: true, SyscallPrefix: "SYS_", ExecutorUsesShmem: true, ExecutorUsesForkServer: true, @@ -400,8 +405,9 @@ var oses = map[string]osCommon{ KernelObject: "akaros-kernel-64b", }, "trusty": { - SyscallNumbers: true, - SyscallPrefix: "__NR_", + SyscallNumbers: true, + Int64SyscallArgs: true, + SyscallPrefix: "__NR_", }, } diff --git a/sys/test/gen/32_fork_shmem.go b/sys/test/gen/32_fork_shmem.go index e201c2be6..552e023b3 100644 --- a/sys/test/gen/32_fork_shmem.go +++ b/sys/test/gen/32_fork_shmem.go @@ -979,32 +979,59 @@ var syscalls_32_fork_shmem = []*Syscall{ &ProcType{IntTypeCommon{TypeCommon: TypeCommon{TypeName: "proc", FldName: "a0", TypeSize: 4}}, 10, 2}, &ProcType{IntTypeCommon{TypeCommon: TypeCommon{TypeName: "proc", FldName: "a1", TypeSize: 4, IsOptional: true}}, 10, 2}, }}, - {Name: "mutate$array", CallName: "mutate", MissingArgs: 6, Args: []Type{ + {Name: "mutate0", CallName: "mutate0"}, + {Name: "mutate1", CallName: "mutate1"}, + {Name: "mutate2", CallName: "mutate2"}, + {Name: "mutate3", CallName: "mutate3", Args: []Type{ + &PtrType{TypeCommon{TypeName: "ptr", FldName: "vec", TypeSize: 4}, &ArrayType{TypeCommon: TypeCommon{TypeName: "array", IsVarlen: true}, Type: &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int32", TypeSize: 4}}, Kind: 1, RangeEnd: 1}}}, + &LenType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "len", FldName: "vlen", TypeSize: 4}}, Path: []string{"vec"}}, + }}, + {Name: "mutate4", CallName: "mutate4", Args: []Type{ + &PtrType{TypeCommon{TypeName: "ptr", FldName: "data", TypeSize: 4}, &BufferType{TypeCommon: TypeCommon{TypeName: "array", IsVarlen: true}}}, + &LenType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "bytesize", FldName: "size", TypeSize: 4}}, BitSize: 8, Path: []string{"data"}}, + }}, + {Name: "mutate5", CallName: "mutate5", Args: []Type{ + &PtrType{TypeCommon{TypeName: "ptr", FldName: "filename", TypeSize: 4}, &BufferType{TypeCommon: TypeCommon{TypeName: "filename", IsVarlen: true}, Kind: 3}}, + &FlagsType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "open_flags", FldName: "flags", TypeSize: 4}}, Vals: []uint64{12370169555311111083, 14829735431805717965}}, + }, Ret: &ResourceType{TypeCommon: TypeCommon{TypeName: "fd", FldName: "ret", TypeSize: 4, ArgDir: 1}}}, + {Name: "mutate6", CallName: "mutate6", Args: []Type{ + &ResourceType{TypeCommon: TypeCommon{TypeName: "fd", FldName: "fd", TypeSize: 4}}, + &PtrType{TypeCommon{TypeName: "ptr", FldName: "data", TypeSize: 4}, &BufferType{TypeCommon: TypeCommon{TypeName: "array", IsVarlen: true}}}, + &LenType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "bytesize", FldName: "size", TypeSize: 4}}, BitSize: 8, Path: []string{"data"}}, + }}, + {Name: "mutate7", CallName: "mutate7", Args: []Type{ + &PtrType{TypeCommon{TypeName: "ptr", FldName: "a0", TypeSize: 4}, &BufferType{TypeCommon: TypeCommon{TypeName: "string", IsVarlen: true}, Kind: 2}}, + &LenType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "len", FldName: "a1", TypeSize: 4}}, Path: []string{"a0"}}, + }}, + {Name: "mutate8", CallName: "mutate8", Args: []Type{ + &ProcType{IntTypeCommon{TypeCommon: TypeCommon{TypeName: "proc", FldName: "a0", TypeSize: 4, IsOptional: true}}, 100, 4}, + }}, + {Name: "mutate_array", CallName: "mutate_array", Args: []Type{ &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int64", FldName: "i1", TypeSize: 8}}}, &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int64", FldName: "i2", TypeSize: 8}}, Kind: 1, RangeEnd: 536870911}, &PtrType{TypeCommon{TypeName: "ptr", FldName: "vec", TypeSize: 4}, &ArrayType{TypeCommon: TypeCommon{TypeName: "array", IsVarlen: true}, Type: &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int32", TypeSize: 4}}, Kind: 1, RangeEnd: 1}}}, }}, - {Name: "mutate$array2", CallName: "mutate", MissingArgs: 8, Args: []Type{ + {Name: "mutate_array2", CallName: "mutate_array2", Args: []Type{ &PtrType{TypeCommon{TypeName: "ptr", FldName: "vec", TypeSize: 4}, &ArrayType{TypeCommon: TypeCommon{TypeName: "array", IsVarlen: true}, Type: &StructType{Key: StructKey{Name: "syz_struct1"}}}}, }}, - {Name: "mutate$buffer", CallName: "mutate", MissingArgs: 8, Args: []Type{ + {Name: "mutate_buffer", CallName: "mutate_buffer", Args: []Type{ &PtrType{TypeCommon{TypeName: "ptr", FldName: "p", TypeSize: 4}, &BufferType{TypeCommon: TypeCommon{TypeName: "array", ArgDir: 1, IsVarlen: true}}}, }}, - {Name: "mutate$flags", CallName: "mutate", MissingArgs: 5, Args: []Type{ + {Name: "mutate_flags", CallName: "mutate_flags", Args: []Type{ &PtrType{TypeCommon{TypeName: "ptr", FldName: "filename", TypeSize: 4}, &BufferType{TypeCommon: TypeCommon{TypeName: "filename", IsVarlen: true}, Kind: 3}}, &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int64", FldName: "i1", TypeSize: 8}}}, &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int16", FldName: "b1", TypeSize: 2}}, Kind: 1, RangeEnd: 1}, &FlagsType{IntTypeCommon{TypeCommon: TypeCommon{TypeName: "bitmask_flags", FldName: "flags", TypeSize: 4}}, []uint64{1, 8, 16}, true}, }}, - {Name: "mutate$flags2", CallName: "mutate", MissingArgs: 7, Args: []Type{ + {Name: "mutate_flags2", CallName: "mutate_flags2", Args: []Type{ &PtrType{TypeCommon{TypeName: "ptr", FldName: "filename", TypeSize: 4}, &BufferType{TypeCommon: TypeCommon{TypeName: "filename", IsVarlen: true}, Kind: 3}}, &FlagsType{IntTypeCommon{TypeCommon: TypeCommon{TypeName: "bitmask_flags2", FldName: "flags", TypeSize: 4}}, []uint64{1, 2, 4, 8, 16, 32, 64, 128}, true}, }}, - {Name: "mutate$flags3", CallName: "mutate", MissingArgs: 7, Args: []Type{ + {Name: "mutate_flags3", CallName: "mutate_flags3", Args: []Type{ &PtrType{TypeCommon{TypeName: "ptr", FldName: "filename", TypeSize: 4}, &BufferType{TypeCommon: TypeCommon{TypeName: "filename", IsVarlen: true}, Kind: 3}}, &FlagsType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "open_flags2", FldName: "flags", TypeSize: 4}}, Vals: []uint64{12297829382473034410, 12297829382759365563, 13527612320720337851, 13527612321006669004, 14757395258967641292, 14757395259253972445, 15987178197214944733, 15987178197501275886, 17216961135462248174, 17216961135748579327, 18446744073709551615}}, }}, - {Name: "mutate$integer", CallName: "mutate", Args: []Type{ + {Name: "mutate_integer", CallName: "mutate_integer", Args: []Type{ &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int8", FldName: "b1", TypeSize: 1}}, Kind: 1, RangeEnd: 1}, &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int8", FldName: "b2", TypeSize: 1}}, Kind: 1, RangeEnd: 1}, &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int8", FldName: "b3", TypeSize: 1}}, Kind: 1, RangeEnd: 1}, @@ -1015,46 +1042,19 @@ var syscalls_32_fork_shmem = []*Syscall{ &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int8", FldName: "b8", TypeSize: 1}}, Kind: 1, RangeEnd: 1}, &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int64", FldName: "i9", TypeSize: 8}}}, }}, - {Name: "mutate$integer2", CallName: "mutate", MissingArgs: 4, Args: []Type{ + {Name: "mutate_integer2", CallName: "mutate_integer2", Args: []Type{ &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int64", FldName: "b1", TypeSize: 8}}, Kind: 1, RangeEnd: 1}, &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int64", FldName: "i1", TypeSize: 8}}}, &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int32", FldName: "i2", TypeSize: 4}}}, &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int16", FldName: "i3", TypeSize: 2}}, Kind: 1, RangeEnd: 8}, &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int8", FldName: "i4", TypeSize: 1}}, Kind: 1, RangeEnd: 8}, }}, - {Name: "mutate$rangedbuffer", CallName: "mutate", MissingArgs: 8, Args: []Type{ + {Name: "mutate_rangedbuffer", CallName: "mutate_rangedbuffer", Args: []Type{ &PtrType{TypeCommon{TypeName: "ptr", FldName: "p", TypeSize: 4}, &BufferType{TypeCommon: TypeCommon{TypeName: "array", ArgDir: 1, IsVarlen: true}, Kind: 1, RangeBegin: 5, RangeEnd: 10}}, }}, - {Name: "mutate$union", CallName: "mutate", MissingArgs: 8, Args: []Type{ + {Name: "mutate_union", CallName: "mutate_union", Args: []Type{ &PtrType{TypeCommon{TypeName: "ptr", FldName: "p", TypeSize: 4}, &UnionType{Key: StructKey{Name: "syz_union0"}}}, }}, - {Name: "mutate0", CallName: "mutate0"}, - {Name: "mutate1", CallName: "mutate1"}, - {Name: "mutate2", CallName: "mutate2"}, - {Name: "mutate3", CallName: "mutate3", Args: []Type{ - &PtrType{TypeCommon{TypeName: "ptr", FldName: "vec", TypeSize: 4}, &ArrayType{TypeCommon: TypeCommon{TypeName: "array", IsVarlen: true}, Type: &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int32", TypeSize: 4}}, Kind: 1, RangeEnd: 1}}}, - &LenType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "len", FldName: "vlen", TypeSize: 4}}, Path: []string{"vec"}}, - }}, - {Name: "mutate4", CallName: "mutate4", Args: []Type{ - &PtrType{TypeCommon{TypeName: "ptr", FldName: "data", TypeSize: 4}, &BufferType{TypeCommon: TypeCommon{TypeName: "array", IsVarlen: true}}}, - &LenType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "bytesize", FldName: "size", TypeSize: 4}}, BitSize: 8, Path: []string{"data"}}, - }}, - {Name: "mutate5", CallName: "mutate5", Args: []Type{ - &PtrType{TypeCommon{TypeName: "ptr", FldName: "filename", TypeSize: 4}, &BufferType{TypeCommon: TypeCommon{TypeName: "filename", IsVarlen: true}, Kind: 3}}, - &FlagsType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "open_flags", FldName: "flags", TypeSize: 4}}, Vals: []uint64{12370169555311111083, 14829735431805717965}}, - }, Ret: &ResourceType{TypeCommon: TypeCommon{TypeName: "fd", FldName: "ret", TypeSize: 4, ArgDir: 1}}}, - {Name: "mutate6", CallName: "mutate6", Args: []Type{ - &ResourceType{TypeCommon: TypeCommon{TypeName: "fd", FldName: "fd", TypeSize: 4}}, - &PtrType{TypeCommon{TypeName: "ptr", FldName: "data", TypeSize: 4}, &BufferType{TypeCommon: TypeCommon{TypeName: "array", IsVarlen: true}}}, - &LenType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "bytesize", FldName: "size", TypeSize: 4}}, BitSize: 8, Path: []string{"data"}}, - }}, - {Name: "mutate7", CallName: "mutate7", Args: []Type{ - &PtrType{TypeCommon{TypeName: "ptr", FldName: "a0", TypeSize: 4}, &BufferType{TypeCommon: TypeCommon{TypeName: "string", IsVarlen: true}, Kind: 2}}, - &LenType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "len", FldName: "a1", TypeSize: 4}}, Path: []string{"a0"}}, - }}, - {Name: "mutate8", CallName: "mutate8", Args: []Type{ - &ProcType{IntTypeCommon{TypeCommon: TypeCommon{TypeName: "proc", FldName: "a0", TypeSize: 4, IsOptional: true}}, 100, 4}, - }}, {Name: "prctl$PR_SET_SECCOMP", CallName: "prctl"}, {Name: "seccomp", CallName: "seccomp"}, {Name: "serialize0", CallName: "serialize0", Args: []Type{ @@ -1177,10 +1177,6 @@ var syscalls_32_fork_shmem = []*Syscall{ {Name: "test$end1", CallName: "test", MissingArgs: 5, Args: []Type{ &PtrType{TypeCommon{TypeName: "ptr", FldName: "a0", TypeSize: 4}, &StructType{Key: StructKey{Name: "syz_end_var_struct"}}}, }}, - {Name: "test$excessive_args1", CallName: "test", MissingArgs: 6}, - {Name: "test$excessive_args2", CallName: "test", MissingArgs: 5, Args: []Type{ - &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int8", FldName: "a1", TypeSize: 1}}}, - }}, {Name: "test$excessive_fields1", CallName: "test", MissingArgs: 5, Args: []Type{ &PtrType{TypeCommon{TypeName: "ptr", FldName: "a1", TypeSize: 4}, &StructType{Key: StructKey{Name: "excessive_fields"}}}, }}, @@ -1223,10 +1219,6 @@ var syscalls_32_fork_shmem = []*Syscall{ &PtrType{TypeCommon{TypeName: "ptr", FldName: "a0", TypeSize: 4}, &StructType{Key: StructKey{"syz_length_large_struct", 2}}}, &PtrType{TypeCommon{TypeName: "ptr", FldName: "a1", TypeSize: 4, IsOptional: true}, &LenType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "len", TypeSize: 8, ArgDir: 2}}, Path: []string{"a0"}}}, }}, - {Name: "test$length15", CallName: "test", MissingArgs: 4, Args: []Type{ - &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int16", FldName: "a0", TypeSize: 2}}}, - &LenType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "len", FldName: "a1", TypeSize: 4}}, Path: []string{"a0"}}, - }}, {Name: "test$length16", CallName: "test", MissingArgs: 5, Args: []Type{ &PtrType{TypeCommon{TypeName: "ptr", FldName: "a0", TypeSize: 4}, &StructType{Key: StructKey{Name: "syz_length_bytesize_struct"}}}, }}, @@ -1404,6 +1396,14 @@ var syscalls_32_fork_shmem = []*Syscall{ &VmaType{TypeCommon{TypeName: "vma", FldName: "v2", TypeSize: 4}, 7, 9}, &LenType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "len", FldName: "l2", TypeSize: 4}}, Path: []string{"v2"}}, }}, + {Name: "test_excessive_args1", CallName: "test_excessive_args1"}, + {Name: "test_excessive_args2", CallName: "test_excessive_args2", Args: []Type{ + &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int8", FldName: "a1", TypeSize: 1}}}, + }}, + {Name: "test_length15", CallName: "test_length15", Args: []Type{ + &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int16", FldName: "a0", TypeSize: 2}}}, + &LenType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "len", FldName: "a1", TypeSize: 4}}, Path: []string{"a0"}}, + }}, {Name: "unsupported$0", CallName: "unsupported", Args: []Type{ &ResourceType{TypeCommon: TypeCommon{TypeName: "unsupported", FldName: "a", TypeSize: 4}}, }, Ret: &ResourceType{TypeCommon: TypeCommon{TypeName: "unsupported", FldName: "ret", TypeSize: 4, ArgDir: 1}}}, @@ -1420,7 +1420,6 @@ var consts_32_fork_shmem = []ConstValue{ {Name: "SYS_fallback"}, {Name: "SYS_foo"}, {Name: "SYS_minimize"}, - {Name: "SYS_mutate"}, {Name: "SYS_mutate0"}, {Name: "SYS_mutate1"}, {Name: "SYS_mutate2"}, @@ -1430,12 +1429,25 @@ var consts_32_fork_shmem = []ConstValue{ {Name: "SYS_mutate6"}, {Name: "SYS_mutate7"}, {Name: "SYS_mutate8"}, + {Name: "SYS_mutate_array"}, + {Name: "SYS_mutate_array2"}, + {Name: "SYS_mutate_buffer"}, + {Name: "SYS_mutate_flags"}, + {Name: "SYS_mutate_flags2"}, + {Name: "SYS_mutate_flags3"}, + {Name: "SYS_mutate_integer"}, + {Name: "SYS_mutate_integer2"}, + {Name: "SYS_mutate_rangedbuffer"}, + {Name: "SYS_mutate_union"}, {Name: "SYS_prctl"}, {Name: "SYS_seccomp"}, {Name: "SYS_serialize0"}, {Name: "SYS_serialize1"}, {Name: "SYS_test"}, + {Name: "SYS_test_excessive_args1"}, + {Name: "SYS_test_excessive_args2"}, + {Name: "SYS_test_length15"}, {Name: "SYS_unsupported"}, } -const revision_32_fork_shmem = "c547f9f5ad5a787ba3d546567452faa30af14525" +const revision_32_fork_shmem = "9de9df2edf17935a28af03116105b78e58013838" diff --git a/sys/test/gen/32_shmem.go b/sys/test/gen/32_shmem.go index f8721e1c3..317beea70 100644 --- a/sys/test/gen/32_shmem.go +++ b/sys/test/gen/32_shmem.go @@ -973,32 +973,59 @@ var syscalls_32_shmem = []*Syscall{ &ProcType{IntTypeCommon{TypeCommon: TypeCommon{TypeName: "proc", FldName: "a0", TypeSize: 4}}, 10, 2}, &ProcType{IntTypeCommon{TypeCommon: TypeCommon{TypeName: "proc", FldName: "a1", TypeSize: 4, IsOptional: true}}, 10, 2}, }}, - {Name: "mutate$array", CallName: "mutate", MissingArgs: 6, Args: []Type{ + {Name: "mutate0", CallName: "mutate0"}, + {Name: "mutate1", CallName: "mutate1"}, + {Name: "mutate2", CallName: "mutate2"}, + {Name: "mutate3", CallName: "mutate3", Args: []Type{ + &PtrType{TypeCommon{TypeName: "ptr", FldName: "vec", TypeSize: 4}, &ArrayType{TypeCommon: TypeCommon{TypeName: "array", IsVarlen: true}, Type: &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int32", TypeSize: 4}}, Kind: 1, RangeEnd: 1}}}, + &LenType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "len", FldName: "vlen", TypeSize: 4}}, Path: []string{"vec"}}, + }}, + {Name: "mutate4", CallName: "mutate4", Args: []Type{ + &PtrType{TypeCommon{TypeName: "ptr", FldName: "data", TypeSize: 4}, &BufferType{TypeCommon: TypeCommon{TypeName: "array", IsVarlen: true}}}, + &LenType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "bytesize", FldName: "size", TypeSize: 4}}, BitSize: 8, Path: []string{"data"}}, + }}, + {Name: "mutate5", CallName: "mutate5", Args: []Type{ + &PtrType{TypeCommon{TypeName: "ptr", FldName: "filename", TypeSize: 4}, &BufferType{TypeCommon: TypeCommon{TypeName: "filename", IsVarlen: true}, Kind: 3}}, + &FlagsType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "open_flags", FldName: "flags", TypeSize: 4}}, Vals: []uint64{12370169555311111083, 14829735431805717965}}, + }, Ret: &ResourceType{TypeCommon: TypeCommon{TypeName: "fd", FldName: "ret", TypeSize: 4, ArgDir: 1}}}, + {Name: "mutate6", CallName: "mutate6", Args: []Type{ + &ResourceType{TypeCommon: TypeCommon{TypeName: "fd", FldName: "fd", TypeSize: 4}}, + &PtrType{TypeCommon{TypeName: "ptr", FldName: "data", TypeSize: 4}, &BufferType{TypeCommon: TypeCommon{TypeName: "array", IsVarlen: true}}}, + &LenType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "bytesize", FldName: "size", TypeSize: 4}}, BitSize: 8, Path: []string{"data"}}, + }}, + {Name: "mutate7", CallName: "mutate7", Args: []Type{ + &PtrType{TypeCommon{TypeName: "ptr", FldName: "a0", TypeSize: 4}, &BufferType{TypeCommon: TypeCommon{TypeName: "string", IsVarlen: true}, Kind: 2}}, + &LenType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "len", FldName: "a1", TypeSize: 4}}, Path: []string{"a0"}}, + }}, + {Name: "mutate8", CallName: "mutate8", Args: []Type{ + &ProcType{IntTypeCommon{TypeCommon: TypeCommon{TypeName: "proc", FldName: "a0", TypeSize: 4, IsOptional: true}}, 100, 4}, + }}, + {Name: "mutate_array", CallName: "mutate_array", Args: []Type{ &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int64", FldName: "i1", TypeSize: 8}}}, &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int64", FldName: "i2", TypeSize: 8}}, Kind: 1, RangeEnd: 536870911}, &PtrType{TypeCommon{TypeName: "ptr", FldName: "vec", TypeSize: 4}, &ArrayType{TypeCommon: TypeCommon{TypeName: "array", IsVarlen: true}, Type: &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int32", TypeSize: 4}}, Kind: 1, RangeEnd: 1}}}, }}, - {Name: "mutate$array2", CallName: "mutate", MissingArgs: 8, Args: []Type{ + {Name: "mutate_array2", CallName: "mutate_array2", Args: []Type{ &PtrType{TypeCommon{TypeName: "ptr", FldName: "vec", TypeSize: 4}, &ArrayType{TypeCommon: TypeCommon{TypeName: "array", IsVarlen: true}, Type: &StructType{Key: StructKey{Name: "syz_struct1"}}}}, }}, - {Name: "mutate$buffer", CallName: "mutate", MissingArgs: 8, Args: []Type{ + {Name: "mutate_buffer", CallName: "mutate_buffer", Args: []Type{ &PtrType{TypeCommon{TypeName: "ptr", FldName: "p", TypeSize: 4}, &BufferType{TypeCommon: TypeCommon{TypeName: "array", ArgDir: 1, IsVarlen: true}}}, }}, - {Name: "mutate$flags", CallName: "mutate", MissingArgs: 5, Args: []Type{ + {Name: "mutate_flags", CallName: "mutate_flags", Args: []Type{ &PtrType{TypeCommon{TypeName: "ptr", FldName: "filename", TypeSize: 4}, &BufferType{TypeCommon: TypeCommon{TypeName: "filename", IsVarlen: true}, Kind: 3}}, &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int64", FldName: "i1", TypeSize: 8}}}, &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int16", FldName: "b1", TypeSize: 2}}, Kind: 1, RangeEnd: 1}, &FlagsType{IntTypeCommon{TypeCommon: TypeCommon{TypeName: "bitmask_flags", FldName: "flags", TypeSize: 4}}, []uint64{1, 8, 16}, true}, }}, - {Name: "mutate$flags2", CallName: "mutate", MissingArgs: 7, Args: []Type{ + {Name: "mutate_flags2", CallName: "mutate_flags2", Args: []Type{ &PtrType{TypeCommon{TypeName: "ptr", FldName: "filename", TypeSize: 4}, &BufferType{TypeCommon: TypeCommon{TypeName: "filename", IsVarlen: true}, Kind: 3}}, &FlagsType{IntTypeCommon{TypeCommon: TypeCommon{TypeName: "bitmask_flags2", FldName: "flags", TypeSize: 4}}, []uint64{1, 2, 4, 8, 16, 32, 64, 128}, true}, }}, - {Name: "mutate$flags3", CallName: "mutate", MissingArgs: 7, Args: []Type{ + {Name: "mutate_flags3", CallName: "mutate_flags3", Args: []Type{ &PtrType{TypeCommon{TypeName: "ptr", FldName: "filename", TypeSize: 4}, &BufferType{TypeCommon: TypeCommon{TypeName: "filename", IsVarlen: true}, Kind: 3}}, &FlagsType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "open_flags2", FldName: "flags", TypeSize: 4}}, Vals: []uint64{12297829382473034410, 12297829382759365563, 13527612320720337851, 13527612321006669004, 14757395258967641292, 14757395259253972445, 15987178197214944733, 15987178197501275886, 17216961135462248174, 17216961135748579327, 18446744073709551615}}, }}, - {Name: "mutate$integer", CallName: "mutate", Args: []Type{ + {Name: "mutate_integer", CallName: "mutate_integer", Args: []Type{ &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int8", FldName: "b1", TypeSize: 1}}, Kind: 1, RangeEnd: 1}, &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int8", FldName: "b2", TypeSize: 1}}, Kind: 1, RangeEnd: 1}, &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int8", FldName: "b3", TypeSize: 1}}, Kind: 1, RangeEnd: 1}, @@ -1009,46 +1036,19 @@ var syscalls_32_shmem = []*Syscall{ &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int8", FldName: "b8", TypeSize: 1}}, Kind: 1, RangeEnd: 1}, &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int64", FldName: "i9", TypeSize: 8}}}, }}, - {Name: "mutate$integer2", CallName: "mutate", MissingArgs: 4, Args: []Type{ + {Name: "mutate_integer2", CallName: "mutate_integer2", Args: []Type{ &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int64", FldName: "b1", TypeSize: 8}}, Kind: 1, RangeEnd: 1}, &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int64", FldName: "i1", TypeSize: 8}}}, &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int32", FldName: "i2", TypeSize: 4}}}, &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int16", FldName: "i3", TypeSize: 2}}, Kind: 1, RangeEnd: 8}, &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int8", FldName: "i4", TypeSize: 1}}, Kind: 1, RangeEnd: 8}, }}, - {Name: "mutate$rangedbuffer", CallName: "mutate", MissingArgs: 8, Args: []Type{ + {Name: "mutate_rangedbuffer", CallName: "mutate_rangedbuffer", Args: []Type{ &PtrType{TypeCommon{TypeName: "ptr", FldName: "p", TypeSize: 4}, &BufferType{TypeCommon: TypeCommon{TypeName: "array", ArgDir: 1, IsVarlen: true}, Kind: 1, RangeBegin: 5, RangeEnd: 10}}, }}, - {Name: "mutate$union", CallName: "mutate", MissingArgs: 8, Args: []Type{ + {Name: "mutate_union", CallName: "mutate_union", Args: []Type{ &PtrType{TypeCommon{TypeName: "ptr", FldName: "p", TypeSize: 4}, &UnionType{Key: StructKey{Name: "syz_union0"}}}, }}, - {Name: "mutate0", CallName: "mutate0"}, - {Name: "mutate1", CallName: "mutate1"}, - {Name: "mutate2", CallName: "mutate2"}, - {Name: "mutate3", CallName: "mutate3", Args: []Type{ - &PtrType{TypeCommon{TypeName: "ptr", FldName: "vec", TypeSize: 4}, &ArrayType{TypeCommon: TypeCommon{TypeName: "array", IsVarlen: true}, Type: &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int32", TypeSize: 4}}, Kind: 1, RangeEnd: 1}}}, - &LenType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "len", FldName: "vlen", TypeSize: 4}}, Path: []string{"vec"}}, - }}, - {Name: "mutate4", CallName: "mutate4", Args: []Type{ - &PtrType{TypeCommon{TypeName: "ptr", FldName: "data", TypeSize: 4}, &BufferType{TypeCommon: TypeCommon{TypeName: "array", IsVarlen: true}}}, - &LenType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "bytesize", FldName: "size", TypeSize: 4}}, BitSize: 8, Path: []string{"data"}}, - }}, - {Name: "mutate5", CallName: "mutate5", Args: []Type{ - &PtrType{TypeCommon{TypeName: "ptr", FldName: "filename", TypeSize: 4}, &BufferType{TypeCommon: TypeCommon{TypeName: "filename", IsVarlen: true}, Kind: 3}}, - &FlagsType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "open_flags", FldName: "flags", TypeSize: 4}}, Vals: []uint64{12370169555311111083, 14829735431805717965}}, - }, Ret: &ResourceType{TypeCommon: TypeCommon{TypeName: "fd", FldName: "ret", TypeSize: 4, ArgDir: 1}}}, - {Name: "mutate6", CallName: "mutate6", Args: []Type{ - &ResourceType{TypeCommon: TypeCommon{TypeName: "fd", FldName: "fd", TypeSize: 4}}, - &PtrType{TypeCommon{TypeName: "ptr", FldName: "data", TypeSize: 4}, &BufferType{TypeCommon: TypeCommon{TypeName: "array", IsVarlen: true}}}, - &LenType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "bytesize", FldName: "size", TypeSize: 4}}, BitSize: 8, Path: []string{"data"}}, - }}, - {Name: "mutate7", CallName: "mutate7", Args: []Type{ - &PtrType{TypeCommon{TypeName: "ptr", FldName: "a0", TypeSize: 4}, &BufferType{TypeCommon: TypeCommon{TypeName: "string", IsVarlen: true}, Kind: 2}}, - &LenType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "len", FldName: "a1", TypeSize: 4}}, Path: []string{"a0"}}, - }}, - {Name: "mutate8", CallName: "mutate8", Args: []Type{ - &ProcType{IntTypeCommon{TypeCommon: TypeCommon{TypeName: "proc", FldName: "a0", TypeSize: 4, IsOptional: true}}, 100, 4}, - }}, {Name: "prctl$PR_SET_SECCOMP", CallName: "prctl"}, {Name: "seccomp", CallName: "seccomp"}, {Name: "serialize0", CallName: "serialize0", Args: []Type{ @@ -1171,10 +1171,6 @@ var syscalls_32_shmem = []*Syscall{ {Name: "test$end1", CallName: "test", MissingArgs: 5, Args: []Type{ &PtrType{TypeCommon{TypeName: "ptr", FldName: "a0", TypeSize: 4}, &StructType{Key: StructKey{Name: "syz_end_var_struct"}}}, }}, - {Name: "test$excessive_args1", CallName: "test", MissingArgs: 6}, - {Name: "test$excessive_args2", CallName: "test", MissingArgs: 5, Args: []Type{ - &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int8", FldName: "a1", TypeSize: 1}}}, - }}, {Name: "test$excessive_fields1", CallName: "test", MissingArgs: 5, Args: []Type{ &PtrType{TypeCommon{TypeName: "ptr", FldName: "a1", TypeSize: 4}, &StructType{Key: StructKey{Name: "excessive_fields"}}}, }}, @@ -1217,10 +1213,6 @@ var syscalls_32_shmem = []*Syscall{ &PtrType{TypeCommon{TypeName: "ptr", FldName: "a0", TypeSize: 4}, &StructType{Key: StructKey{"syz_length_large_struct", 2}}}, &PtrType{TypeCommon{TypeName: "ptr", FldName: "a1", TypeSize: 4, IsOptional: true}, &LenType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "len", TypeSize: 8, ArgDir: 2}}, Path: []string{"a0"}}}, }}, - {Name: "test$length15", CallName: "test", MissingArgs: 4, Args: []Type{ - &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int16", FldName: "a0", TypeSize: 2}}}, - &LenType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "len", FldName: "a1", TypeSize: 4}}, Path: []string{"a0"}}, - }}, {Name: "test$length16", CallName: "test", MissingArgs: 5, Args: []Type{ &PtrType{TypeCommon{TypeName: "ptr", FldName: "a0", TypeSize: 4}, &StructType{Key: StructKey{Name: "syz_length_bytesize_struct"}}}, }}, @@ -1398,6 +1390,14 @@ var syscalls_32_shmem = []*Syscall{ &VmaType{TypeCommon{TypeName: "vma", FldName: "v2", TypeSize: 4}, 7, 9}, &LenType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "len", FldName: "l2", TypeSize: 4}}, Path: []string{"v2"}}, }}, + {Name: "test_excessive_args1", CallName: "test_excessive_args1"}, + {Name: "test_excessive_args2", CallName: "test_excessive_args2", Args: []Type{ + &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int8", FldName: "a1", TypeSize: 1}}}, + }}, + {Name: "test_length15", CallName: "test_length15", Args: []Type{ + &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int16", FldName: "a0", TypeSize: 2}}}, + &LenType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "len", FldName: "a1", TypeSize: 4}}, Path: []string{"a0"}}, + }}, {Name: "unsupported$0", CallName: "unsupported", Args: []Type{ &ResourceType{TypeCommon: TypeCommon{TypeName: "unsupported", FldName: "a", TypeSize: 4}}, }, Ret: &ResourceType{TypeCommon: TypeCommon{TypeName: "unsupported", FldName: "ret", TypeSize: 4, ArgDir: 1}}}, @@ -1414,7 +1414,6 @@ var consts_32_shmem = []ConstValue{ {Name: "SYS_fallback"}, {Name: "SYS_foo"}, {Name: "SYS_minimize"}, - {Name: "SYS_mutate"}, {Name: "SYS_mutate0"}, {Name: "SYS_mutate1"}, {Name: "SYS_mutate2"}, @@ -1424,12 +1423,25 @@ var consts_32_shmem = []ConstValue{ {Name: "SYS_mutate6"}, {Name: "SYS_mutate7"}, {Name: "SYS_mutate8"}, + {Name: "SYS_mutate_array"}, + {Name: "SYS_mutate_array2"}, + {Name: "SYS_mutate_buffer"}, + {Name: "SYS_mutate_flags"}, + {Name: "SYS_mutate_flags2"}, + {Name: "SYS_mutate_flags3"}, + {Name: "SYS_mutate_integer"}, + {Name: "SYS_mutate_integer2"}, + {Name: "SYS_mutate_rangedbuffer"}, + {Name: "SYS_mutate_union"}, {Name: "SYS_prctl"}, {Name: "SYS_seccomp"}, {Name: "SYS_serialize0"}, {Name: "SYS_serialize1"}, {Name: "SYS_test"}, + {Name: "SYS_test_excessive_args1"}, + {Name: "SYS_test_excessive_args2"}, + {Name: "SYS_test_length15"}, {Name: "SYS_unsupported"}, } -const revision_32_shmem = "78cf24e0e4b13952ef5ce2921f4b41ad71693243" +const revision_32_shmem = "b3b0c6ea907ce870e7e4b25b9308c2425d0e8cf3" diff --git a/sys/test/gen/64.go b/sys/test/gen/64.go index 57cb00321..8f5ff9cd3 100644 --- a/sys/test/gen/64.go +++ b/sys/test/gen/64.go @@ -983,32 +983,59 @@ var syscalls_64 = []*Syscall{ &ProcType{IntTypeCommon{TypeCommon: TypeCommon{TypeName: "proc", FldName: "a0", TypeSize: 8}}, 10, 2}, &ProcType{IntTypeCommon{TypeCommon: TypeCommon{TypeName: "proc", FldName: "a1", TypeSize: 8, IsOptional: true}}, 10, 2}, }}, - {Name: "mutate$array", CallName: "mutate", MissingArgs: 6, Args: []Type{ + {Name: "mutate0", CallName: "mutate0"}, + {Name: "mutate1", CallName: "mutate1"}, + {Name: "mutate2", CallName: "mutate2"}, + {Name: "mutate3", CallName: "mutate3", Args: []Type{ + &PtrType{TypeCommon{TypeName: "ptr", FldName: "vec", TypeSize: 8}, &ArrayType{TypeCommon: TypeCommon{TypeName: "array", IsVarlen: true}, Type: &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int32", TypeSize: 4}}, Kind: 1, RangeEnd: 1}}}, + &LenType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "len", FldName: "vlen", TypeSize: 8}}, Path: []string{"vec"}}, + }}, + {Name: "mutate4", CallName: "mutate4", Args: []Type{ + &PtrType{TypeCommon{TypeName: "ptr", FldName: "data", TypeSize: 8}, &BufferType{TypeCommon: TypeCommon{TypeName: "array", IsVarlen: true}}}, + &LenType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "bytesize", FldName: "size", TypeSize: 8}}, BitSize: 8, Path: []string{"data"}}, + }}, + {Name: "mutate5", CallName: "mutate5", Args: []Type{ + &PtrType{TypeCommon{TypeName: "ptr", FldName: "filename", TypeSize: 8}, &BufferType{TypeCommon: TypeCommon{TypeName: "filename", IsVarlen: true}, Kind: 3}}, + &FlagsType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "open_flags", FldName: "flags", TypeSize: 8}}, Vals: []uint64{12370169555311111083, 14829735431805717965}}, + }, Ret: &ResourceType{TypeCommon: TypeCommon{TypeName: "fd", FldName: "ret", TypeSize: 4, ArgDir: 1}}}, + {Name: "mutate6", CallName: "mutate6", Args: []Type{ + &ResourceType{TypeCommon: TypeCommon{TypeName: "fd", FldName: "fd", TypeSize: 4}}, + &PtrType{TypeCommon{TypeName: "ptr", FldName: "data", TypeSize: 8}, &BufferType{TypeCommon: TypeCommon{TypeName: "array", IsVarlen: true}}}, + &LenType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "bytesize", FldName: "size", TypeSize: 8}}, BitSize: 8, Path: []string{"data"}}, + }}, + {Name: "mutate7", CallName: "mutate7", Args: []Type{ + &PtrType{TypeCommon{TypeName: "ptr", FldName: "a0", TypeSize: 8}, &BufferType{TypeCommon: TypeCommon{TypeName: "string", IsVarlen: true}, Kind: 2}}, + &LenType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "len", FldName: "a1", TypeSize: 8}}, Path: []string{"a0"}}, + }}, + {Name: "mutate8", CallName: "mutate8", Args: []Type{ + &ProcType{IntTypeCommon{TypeCommon: TypeCommon{TypeName: "proc", FldName: "a0", TypeSize: 8, IsOptional: true}}, 100, 4}, + }}, + {Name: "mutate_array", CallName: "mutate_array", Args: []Type{ &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int64", FldName: "i1", TypeSize: 8}}}, &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int64", FldName: "i2", TypeSize: 8}}, Kind: 1, RangeEnd: 536870911}, &PtrType{TypeCommon{TypeName: "ptr", FldName: "vec", TypeSize: 8}, &ArrayType{TypeCommon: TypeCommon{TypeName: "array", IsVarlen: true}, Type: &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int32", TypeSize: 4}}, Kind: 1, RangeEnd: 1}}}, }}, - {Name: "mutate$array2", CallName: "mutate", MissingArgs: 8, Args: []Type{ + {Name: "mutate_array2", CallName: "mutate_array2", Args: []Type{ &PtrType{TypeCommon{TypeName: "ptr", FldName: "vec", TypeSize: 8}, &ArrayType{TypeCommon: TypeCommon{TypeName: "array", IsVarlen: true}, Type: &StructType{Key: StructKey{Name: "syz_struct1"}}}}, }}, - {Name: "mutate$buffer", CallName: "mutate", MissingArgs: 8, Args: []Type{ + {Name: "mutate_buffer", CallName: "mutate_buffer", Args: []Type{ &PtrType{TypeCommon{TypeName: "ptr", FldName: "p", TypeSize: 8}, &BufferType{TypeCommon: TypeCommon{TypeName: "array", ArgDir: 1, IsVarlen: true}}}, }}, - {Name: "mutate$flags", CallName: "mutate", MissingArgs: 5, Args: []Type{ + {Name: "mutate_flags", CallName: "mutate_flags", Args: []Type{ &PtrType{TypeCommon{TypeName: "ptr", FldName: "filename", TypeSize: 8}, &BufferType{TypeCommon: TypeCommon{TypeName: "filename", IsVarlen: true}, Kind: 3}}, &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int64", FldName: "i1", TypeSize: 8}}}, &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int16", FldName: "b1", TypeSize: 2}}, Kind: 1, RangeEnd: 1}, &FlagsType{IntTypeCommon{TypeCommon: TypeCommon{TypeName: "bitmask_flags", FldName: "flags", TypeSize: 8}}, []uint64{1, 8, 16}, true}, }}, - {Name: "mutate$flags2", CallName: "mutate", MissingArgs: 7, Args: []Type{ + {Name: "mutate_flags2", CallName: "mutate_flags2", Args: []Type{ &PtrType{TypeCommon{TypeName: "ptr", FldName: "filename", TypeSize: 8}, &BufferType{TypeCommon: TypeCommon{TypeName: "filename", IsVarlen: true}, Kind: 3}}, &FlagsType{IntTypeCommon{TypeCommon: TypeCommon{TypeName: "bitmask_flags2", FldName: "flags", TypeSize: 8}}, []uint64{1, 2, 4, 8, 16, 32, 64, 128}, true}, }}, - {Name: "mutate$flags3", CallName: "mutate", MissingArgs: 7, Args: []Type{ + {Name: "mutate_flags3", CallName: "mutate_flags3", Args: []Type{ &PtrType{TypeCommon{TypeName: "ptr", FldName: "filename", TypeSize: 8}, &BufferType{TypeCommon: TypeCommon{TypeName: "filename", IsVarlen: true}, Kind: 3}}, &FlagsType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "open_flags2", FldName: "flags", TypeSize: 8}}, Vals: []uint64{12297829382473034410, 12297829382759365563, 13527612320720337851, 13527612321006669004, 14757395258967641292, 14757395259253972445, 15987178197214944733, 15987178197501275886, 17216961135462248174, 17216961135748579327, 18446744073709551615}}, }}, - {Name: "mutate$integer", CallName: "mutate", Args: []Type{ + {Name: "mutate_integer", CallName: "mutate_integer", Args: []Type{ &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int8", FldName: "b1", TypeSize: 1}}, Kind: 1, RangeEnd: 1}, &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int8", FldName: "b2", TypeSize: 1}}, Kind: 1, RangeEnd: 1}, &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int8", FldName: "b3", TypeSize: 1}}, Kind: 1, RangeEnd: 1}, @@ -1019,46 +1046,19 @@ var syscalls_64 = []*Syscall{ &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int8", FldName: "b8", TypeSize: 1}}, Kind: 1, RangeEnd: 1}, &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int64", FldName: "i9", TypeSize: 8}}}, }}, - {Name: "mutate$integer2", CallName: "mutate", MissingArgs: 4, Args: []Type{ + {Name: "mutate_integer2", CallName: "mutate_integer2", Args: []Type{ &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int64", FldName: "b1", TypeSize: 8}}, Kind: 1, RangeEnd: 1}, &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int64", FldName: "i1", TypeSize: 8}}}, &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int32", FldName: "i2", TypeSize: 4}}}, &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int16", FldName: "i3", TypeSize: 2}}, Kind: 1, RangeEnd: 8}, &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int8", FldName: "i4", TypeSize: 1}}, Kind: 1, RangeEnd: 8}, }}, - {Name: "mutate$rangedbuffer", CallName: "mutate", MissingArgs: 8, Args: []Type{ + {Name: "mutate_rangedbuffer", CallName: "mutate_rangedbuffer", Args: []Type{ &PtrType{TypeCommon{TypeName: "ptr", FldName: "p", TypeSize: 8}, &BufferType{TypeCommon: TypeCommon{TypeName: "array", ArgDir: 1, IsVarlen: true}, Kind: 1, RangeBegin: 5, RangeEnd: 10}}, }}, - {Name: "mutate$union", CallName: "mutate", MissingArgs: 8, Args: []Type{ + {Name: "mutate_union", CallName: "mutate_union", Args: []Type{ &PtrType{TypeCommon{TypeName: "ptr", FldName: "p", TypeSize: 8}, &UnionType{Key: StructKey{Name: "syz_union0"}}}, }}, - {Name: "mutate0", CallName: "mutate0"}, - {Name: "mutate1", CallName: "mutate1"}, - {Name: "mutate2", CallName: "mutate2"}, - {Name: "mutate3", CallName: "mutate3", Args: []Type{ - &PtrType{TypeCommon{TypeName: "ptr", FldName: "vec", TypeSize: 8}, &ArrayType{TypeCommon: TypeCommon{TypeName: "array", IsVarlen: true}, Type: &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int32", TypeSize: 4}}, Kind: 1, RangeEnd: 1}}}, - &LenType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "len", FldName: "vlen", TypeSize: 8}}, Path: []string{"vec"}}, - }}, - {Name: "mutate4", CallName: "mutate4", Args: []Type{ - &PtrType{TypeCommon{TypeName: "ptr", FldName: "data", TypeSize: 8}, &BufferType{TypeCommon: TypeCommon{TypeName: "array", IsVarlen: true}}}, - &LenType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "bytesize", FldName: "size", TypeSize: 8}}, BitSize: 8, Path: []string{"data"}}, - }}, - {Name: "mutate5", CallName: "mutate5", Args: []Type{ - &PtrType{TypeCommon{TypeName: "ptr", FldName: "filename", TypeSize: 8}, &BufferType{TypeCommon: TypeCommon{TypeName: "filename", IsVarlen: true}, Kind: 3}}, - &FlagsType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "open_flags", FldName: "flags", TypeSize: 8}}, Vals: []uint64{12370169555311111083, 14829735431805717965}}, - }, Ret: &ResourceType{TypeCommon: TypeCommon{TypeName: "fd", FldName: "ret", TypeSize: 4, ArgDir: 1}}}, - {Name: "mutate6", CallName: "mutate6", Args: []Type{ - &ResourceType{TypeCommon: TypeCommon{TypeName: "fd", FldName: "fd", TypeSize: 4}}, - &PtrType{TypeCommon{TypeName: "ptr", FldName: "data", TypeSize: 8}, &BufferType{TypeCommon: TypeCommon{TypeName: "array", IsVarlen: true}}}, - &LenType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "bytesize", FldName: "size", TypeSize: 8}}, BitSize: 8, Path: []string{"data"}}, - }}, - {Name: "mutate7", CallName: "mutate7", Args: []Type{ - &PtrType{TypeCommon{TypeName: "ptr", FldName: "a0", TypeSize: 8}, &BufferType{TypeCommon: TypeCommon{TypeName: "string", IsVarlen: true}, Kind: 2}}, - &LenType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "len", FldName: "a1", TypeSize: 8}}, Path: []string{"a0"}}, - }}, - {Name: "mutate8", CallName: "mutate8", Args: []Type{ - &ProcType{IntTypeCommon{TypeCommon: TypeCommon{TypeName: "proc", FldName: "a0", TypeSize: 8, IsOptional: true}}, 100, 4}, - }}, {Name: "prctl$PR_SET_SECCOMP", CallName: "prctl"}, {Name: "seccomp", CallName: "seccomp"}, {Name: "serialize0", CallName: "serialize0", Args: []Type{ @@ -1181,10 +1181,6 @@ var syscalls_64 = []*Syscall{ {Name: "test$end1", CallName: "test", MissingArgs: 5, Args: []Type{ &PtrType{TypeCommon{TypeName: "ptr", FldName: "a0", TypeSize: 8}, &StructType{Key: StructKey{Name: "syz_end_var_struct"}}}, }}, - {Name: "test$excessive_args1", CallName: "test", MissingArgs: 6}, - {Name: "test$excessive_args2", CallName: "test", MissingArgs: 5, Args: []Type{ - &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int8", FldName: "a1", TypeSize: 1}}}, - }}, {Name: "test$excessive_fields1", CallName: "test", MissingArgs: 5, Args: []Type{ &PtrType{TypeCommon{TypeName: "ptr", FldName: "a1", TypeSize: 8}, &StructType{Key: StructKey{Name: "excessive_fields"}}}, }}, @@ -1227,10 +1223,6 @@ var syscalls_64 = []*Syscall{ &PtrType{TypeCommon{TypeName: "ptr", FldName: "a0", TypeSize: 8}, &StructType{Key: StructKey{"syz_length_large_struct", 2}}}, &PtrType{TypeCommon{TypeName: "ptr", FldName: "a1", TypeSize: 8, IsOptional: true}, &LenType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "len", TypeSize: 8, ArgDir: 2}}, Path: []string{"a0"}}}, }}, - {Name: "test$length15", CallName: "test", MissingArgs: 4, Args: []Type{ - &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int16", FldName: "a0", TypeSize: 2}}}, - &LenType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "len", FldName: "a1", TypeSize: 8}}, Path: []string{"a0"}}, - }}, {Name: "test$length16", CallName: "test", MissingArgs: 5, Args: []Type{ &PtrType{TypeCommon{TypeName: "ptr", FldName: "a0", TypeSize: 8}, &StructType{Key: StructKey{Name: "syz_length_bytesize_struct"}}}, }}, @@ -1408,6 +1400,14 @@ var syscalls_64 = []*Syscall{ &VmaType{TypeCommon{TypeName: "vma", FldName: "v2", TypeSize: 8}, 7, 9}, &LenType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "len", FldName: "l2", TypeSize: 8}}, Path: []string{"v2"}}, }}, + {Name: "test_excessive_args1", CallName: "test_excessive_args1"}, + {Name: "test_excessive_args2", CallName: "test_excessive_args2", Args: []Type{ + &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int8", FldName: "a1", TypeSize: 1}}}, + }}, + {Name: "test_length15", CallName: "test_length15", Args: []Type{ + &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int16", FldName: "a0", TypeSize: 2}}}, + &LenType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "len", FldName: "a1", TypeSize: 8}}, Path: []string{"a0"}}, + }}, {Name: "unsupported$0", CallName: "unsupported", Args: []Type{ &ResourceType{TypeCommon: TypeCommon{TypeName: "unsupported", FldName: "a", TypeSize: 4}}, }, Ret: &ResourceType{TypeCommon: TypeCommon{TypeName: "unsupported", FldName: "ret", TypeSize: 4, ArgDir: 1}}}, @@ -1424,7 +1424,6 @@ var consts_64 = []ConstValue{ {Name: "SYS_fallback"}, {Name: "SYS_foo"}, {Name: "SYS_minimize"}, - {Name: "SYS_mutate"}, {Name: "SYS_mutate0"}, {Name: "SYS_mutate1"}, {Name: "SYS_mutate2"}, @@ -1434,12 +1433,25 @@ var consts_64 = []ConstValue{ {Name: "SYS_mutate6"}, {Name: "SYS_mutate7"}, {Name: "SYS_mutate8"}, + {Name: "SYS_mutate_array"}, + {Name: "SYS_mutate_array2"}, + {Name: "SYS_mutate_buffer"}, + {Name: "SYS_mutate_flags"}, + {Name: "SYS_mutate_flags2"}, + {Name: "SYS_mutate_flags3"}, + {Name: "SYS_mutate_integer"}, + {Name: "SYS_mutate_integer2"}, + {Name: "SYS_mutate_rangedbuffer"}, + {Name: "SYS_mutate_union"}, {Name: "SYS_prctl"}, {Name: "SYS_seccomp"}, {Name: "SYS_serialize0"}, {Name: "SYS_serialize1"}, {Name: "SYS_test"}, + {Name: "SYS_test_excessive_args1"}, + {Name: "SYS_test_excessive_args2"}, + {Name: "SYS_test_length15"}, {Name: "SYS_unsupported"}, } -const revision_64 = "11680783018363ee3ca3e0a484f2487a560a21d1" +const revision_64 = "f21fe2c3f1b0e63ded6b9ee4a51a36aa1f8b5dc0" diff --git a/sys/test/gen/64_fork.go b/sys/test/gen/64_fork.go index 6201ac0fd..60bdd3c02 100644 --- a/sys/test/gen/64_fork.go +++ b/sys/test/gen/64_fork.go @@ -980,32 +980,59 @@ var syscalls_64_fork = []*Syscall{ &ProcType{IntTypeCommon{TypeCommon: TypeCommon{TypeName: "proc", FldName: "a0", TypeSize: 8}}, 10, 2}, &ProcType{IntTypeCommon{TypeCommon: TypeCommon{TypeName: "proc", FldName: "a1", TypeSize: 8, IsOptional: true}}, 10, 2}, }}, - {Name: "mutate$array", CallName: "mutate", MissingArgs: 6, Args: []Type{ + {Name: "mutate0", CallName: "mutate0"}, + {Name: "mutate1", CallName: "mutate1"}, + {Name: "mutate2", CallName: "mutate2"}, + {Name: "mutate3", CallName: "mutate3", Args: []Type{ + &PtrType{TypeCommon{TypeName: "ptr", FldName: "vec", TypeSize: 8}, &ArrayType{TypeCommon: TypeCommon{TypeName: "array", IsVarlen: true}, Type: &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int32", TypeSize: 4}}, Kind: 1, RangeEnd: 1}}}, + &LenType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "len", FldName: "vlen", TypeSize: 8}}, Path: []string{"vec"}}, + }}, + {Name: "mutate4", CallName: "mutate4", Args: []Type{ + &PtrType{TypeCommon{TypeName: "ptr", FldName: "data", TypeSize: 8}, &BufferType{TypeCommon: TypeCommon{TypeName: "array", IsVarlen: true}}}, + &LenType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "bytesize", FldName: "size", TypeSize: 8}}, BitSize: 8, Path: []string{"data"}}, + }}, + {Name: "mutate5", CallName: "mutate5", Args: []Type{ + &PtrType{TypeCommon{TypeName: "ptr", FldName: "filename", TypeSize: 8}, &BufferType{TypeCommon: TypeCommon{TypeName: "filename", IsVarlen: true}, Kind: 3}}, + &FlagsType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "open_flags", FldName: "flags", TypeSize: 8}}, Vals: []uint64{12370169555311111083, 14829735431805717965}}, + }, Ret: &ResourceType{TypeCommon: TypeCommon{TypeName: "fd", FldName: "ret", TypeSize: 4, ArgDir: 1}}}, + {Name: "mutate6", CallName: "mutate6", Args: []Type{ + &ResourceType{TypeCommon: TypeCommon{TypeName: "fd", FldName: "fd", TypeSize: 4}}, + &PtrType{TypeCommon{TypeName: "ptr", FldName: "data", TypeSize: 8}, &BufferType{TypeCommon: TypeCommon{TypeName: "array", IsVarlen: true}}}, + &LenType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "bytesize", FldName: "size", TypeSize: 8}}, BitSize: 8, Path: []string{"data"}}, + }}, + {Name: "mutate7", CallName: "mutate7", Args: []Type{ + &PtrType{TypeCommon{TypeName: "ptr", FldName: "a0", TypeSize: 8}, &BufferType{TypeCommon: TypeCommon{TypeName: "string", IsVarlen: true}, Kind: 2}}, + &LenType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "len", FldName: "a1", TypeSize: 8}}, Path: []string{"a0"}}, + }}, + {Name: "mutate8", CallName: "mutate8", Args: []Type{ + &ProcType{IntTypeCommon{TypeCommon: TypeCommon{TypeName: "proc", FldName: "a0", TypeSize: 8, IsOptional: true}}, 100, 4}, + }}, + {Name: "mutate_array", CallName: "mutate_array", Args: []Type{ &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int64", FldName: "i1", TypeSize: 8}}}, &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int64", FldName: "i2", TypeSize: 8}}, Kind: 1, RangeEnd: 536870911}, &PtrType{TypeCommon{TypeName: "ptr", FldName: "vec", TypeSize: 8}, &ArrayType{TypeCommon: TypeCommon{TypeName: "array", IsVarlen: true}, Type: &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int32", TypeSize: 4}}, Kind: 1, RangeEnd: 1}}}, }}, - {Name: "mutate$array2", CallName: "mutate", MissingArgs: 8, Args: []Type{ + {Name: "mutate_array2", CallName: "mutate_array2", Args: []Type{ &PtrType{TypeCommon{TypeName: "ptr", FldName: "vec", TypeSize: 8}, &ArrayType{TypeCommon: TypeCommon{TypeName: "array", IsVarlen: true}, Type: &StructType{Key: StructKey{Name: "syz_struct1"}}}}, }}, - {Name: "mutate$buffer", CallName: "mutate", MissingArgs: 8, Args: []Type{ + {Name: "mutate_buffer", CallName: "mutate_buffer", Args: []Type{ &PtrType{TypeCommon{TypeName: "ptr", FldName: "p", TypeSize: 8}, &BufferType{TypeCommon: TypeCommon{TypeName: "array", ArgDir: 1, IsVarlen: true}}}, }}, - {Name: "mutate$flags", CallName: "mutate", MissingArgs: 5, Args: []Type{ + {Name: "mutate_flags", CallName: "mutate_flags", Args: []Type{ &PtrType{TypeCommon{TypeName: "ptr", FldName: "filename", TypeSize: 8}, &BufferType{TypeCommon: TypeCommon{TypeName: "filename", IsVarlen: true}, Kind: 3}}, &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int64", FldName: "i1", TypeSize: 8}}}, &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int16", FldName: "b1", TypeSize: 2}}, Kind: 1, RangeEnd: 1}, &FlagsType{IntTypeCommon{TypeCommon: TypeCommon{TypeName: "bitmask_flags", FldName: "flags", TypeSize: 8}}, []uint64{1, 8, 16}, true}, }}, - {Name: "mutate$flags2", CallName: "mutate", MissingArgs: 7, Args: []Type{ + {Name: "mutate_flags2", CallName: "mutate_flags2", Args: []Type{ &PtrType{TypeCommon{TypeName: "ptr", FldName: "filename", TypeSize: 8}, &BufferType{TypeCommon: TypeCommon{TypeName: "filename", IsVarlen: true}, Kind: 3}}, &FlagsType{IntTypeCommon{TypeCommon: TypeCommon{TypeName: "bitmask_flags2", FldName: "flags", TypeSize: 8}}, []uint64{1, 2, 4, 8, 16, 32, 64, 128}, true}, }}, - {Name: "mutate$flags3", CallName: "mutate", MissingArgs: 7, Args: []Type{ + {Name: "mutate_flags3", CallName: "mutate_flags3", Args: []Type{ &PtrType{TypeCommon{TypeName: "ptr", FldName: "filename", TypeSize: 8}, &BufferType{TypeCommon: TypeCommon{TypeName: "filename", IsVarlen: true}, Kind: 3}}, &FlagsType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "open_flags2", FldName: "flags", TypeSize: 8}}, Vals: []uint64{12297829382473034410, 12297829382759365563, 13527612320720337851, 13527612321006669004, 14757395258967641292, 14757395259253972445, 15987178197214944733, 15987178197501275886, 17216961135462248174, 17216961135748579327, 18446744073709551615}}, }}, - {Name: "mutate$integer", CallName: "mutate", Args: []Type{ + {Name: "mutate_integer", CallName: "mutate_integer", Args: []Type{ &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int8", FldName: "b1", TypeSize: 1}}, Kind: 1, RangeEnd: 1}, &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int8", FldName: "b2", TypeSize: 1}}, Kind: 1, RangeEnd: 1}, &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int8", FldName: "b3", TypeSize: 1}}, Kind: 1, RangeEnd: 1}, @@ -1016,46 +1043,19 @@ var syscalls_64_fork = []*Syscall{ &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int8", FldName: "b8", TypeSize: 1}}, Kind: 1, RangeEnd: 1}, &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int64", FldName: "i9", TypeSize: 8}}}, }}, - {Name: "mutate$integer2", CallName: "mutate", MissingArgs: 4, Args: []Type{ + {Name: "mutate_integer2", CallName: "mutate_integer2", Args: []Type{ &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int64", FldName: "b1", TypeSize: 8}}, Kind: 1, RangeEnd: 1}, &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int64", FldName: "i1", TypeSize: 8}}}, &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int32", FldName: "i2", TypeSize: 4}}}, &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int16", FldName: "i3", TypeSize: 2}}, Kind: 1, RangeEnd: 8}, &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int8", FldName: "i4", TypeSize: 1}}, Kind: 1, RangeEnd: 8}, }}, - {Name: "mutate$rangedbuffer", CallName: "mutate", MissingArgs: 8, Args: []Type{ + {Name: "mutate_rangedbuffer", CallName: "mutate_rangedbuffer", Args: []Type{ &PtrType{TypeCommon{TypeName: "ptr", FldName: "p", TypeSize: 8}, &BufferType{TypeCommon: TypeCommon{TypeName: "array", ArgDir: 1, IsVarlen: true}, Kind: 1, RangeBegin: 5, RangeEnd: 10}}, }}, - {Name: "mutate$union", CallName: "mutate", MissingArgs: 8, Args: []Type{ + {Name: "mutate_union", CallName: "mutate_union", Args: []Type{ &PtrType{TypeCommon{TypeName: "ptr", FldName: "p", TypeSize: 8}, &UnionType{Key: StructKey{Name: "syz_union0"}}}, }}, - {Name: "mutate0", CallName: "mutate0"}, - {Name: "mutate1", CallName: "mutate1"}, - {Name: "mutate2", CallName: "mutate2"}, - {Name: "mutate3", CallName: "mutate3", Args: []Type{ - &PtrType{TypeCommon{TypeName: "ptr", FldName: "vec", TypeSize: 8}, &ArrayType{TypeCommon: TypeCommon{TypeName: "array", IsVarlen: true}, Type: &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int32", TypeSize: 4}}, Kind: 1, RangeEnd: 1}}}, - &LenType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "len", FldName: "vlen", TypeSize: 8}}, Path: []string{"vec"}}, - }}, - {Name: "mutate4", CallName: "mutate4", Args: []Type{ - &PtrType{TypeCommon{TypeName: "ptr", FldName: "data", TypeSize: 8}, &BufferType{TypeCommon: TypeCommon{TypeName: "array", IsVarlen: true}}}, - &LenType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "bytesize", FldName: "size", TypeSize: 8}}, BitSize: 8, Path: []string{"data"}}, - }}, - {Name: "mutate5", CallName: "mutate5", Args: []Type{ - &PtrType{TypeCommon{TypeName: "ptr", FldName: "filename", TypeSize: 8}, &BufferType{TypeCommon: TypeCommon{TypeName: "filename", IsVarlen: true}, Kind: 3}}, - &FlagsType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "open_flags", FldName: "flags", TypeSize: 8}}, Vals: []uint64{12370169555311111083, 14829735431805717965}}, - }, Ret: &ResourceType{TypeCommon: TypeCommon{TypeName: "fd", FldName: "ret", TypeSize: 4, ArgDir: 1}}}, - {Name: "mutate6", CallName: "mutate6", Args: []Type{ - &ResourceType{TypeCommon: TypeCommon{TypeName: "fd", FldName: "fd", TypeSize: 4}}, - &PtrType{TypeCommon{TypeName: "ptr", FldName: "data", TypeSize: 8}, &BufferType{TypeCommon: TypeCommon{TypeName: "array", IsVarlen: true}}}, - &LenType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "bytesize", FldName: "size", TypeSize: 8}}, BitSize: 8, Path: []string{"data"}}, - }}, - {Name: "mutate7", CallName: "mutate7", Args: []Type{ - &PtrType{TypeCommon{TypeName: "ptr", FldName: "a0", TypeSize: 8}, &BufferType{TypeCommon: TypeCommon{TypeName: "string", IsVarlen: true}, Kind: 2}}, - &LenType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "len", FldName: "a1", TypeSize: 8}}, Path: []string{"a0"}}, - }}, - {Name: "mutate8", CallName: "mutate8", Args: []Type{ - &ProcType{IntTypeCommon{TypeCommon: TypeCommon{TypeName: "proc", FldName: "a0", TypeSize: 8, IsOptional: true}}, 100, 4}, - }}, {Name: "prctl$PR_SET_SECCOMP", CallName: "prctl"}, {Name: "seccomp", CallName: "seccomp"}, {Name: "serialize0", CallName: "serialize0", Args: []Type{ @@ -1178,10 +1178,6 @@ var syscalls_64_fork = []*Syscall{ {Name: "test$end1", CallName: "test", MissingArgs: 5, Args: []Type{ &PtrType{TypeCommon{TypeName: "ptr", FldName: "a0", TypeSize: 8}, &StructType{Key: StructKey{Name: "syz_end_var_struct"}}}, }}, - {Name: "test$excessive_args1", CallName: "test", MissingArgs: 6}, - {Name: "test$excessive_args2", CallName: "test", MissingArgs: 5, Args: []Type{ - &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int8", FldName: "a1", TypeSize: 1}}}, - }}, {Name: "test$excessive_fields1", CallName: "test", MissingArgs: 5, Args: []Type{ &PtrType{TypeCommon{TypeName: "ptr", FldName: "a1", TypeSize: 8}, &StructType{Key: StructKey{Name: "excessive_fields"}}}, }}, @@ -1224,10 +1220,6 @@ var syscalls_64_fork = []*Syscall{ &PtrType{TypeCommon{TypeName: "ptr", FldName: "a0", TypeSize: 8}, &StructType{Key: StructKey{"syz_length_large_struct", 2}}}, &PtrType{TypeCommon{TypeName: "ptr", FldName: "a1", TypeSize: 8, IsOptional: true}, &LenType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "len", TypeSize: 8, ArgDir: 2}}, Path: []string{"a0"}}}, }}, - {Name: "test$length15", CallName: "test", MissingArgs: 4, Args: []Type{ - &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int16", FldName: "a0", TypeSize: 2}}}, - &LenType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "len", FldName: "a1", TypeSize: 8}}, Path: []string{"a0"}}, - }}, {Name: "test$length16", CallName: "test", MissingArgs: 5, Args: []Type{ &PtrType{TypeCommon{TypeName: "ptr", FldName: "a0", TypeSize: 8}, &StructType{Key: StructKey{Name: "syz_length_bytesize_struct"}}}, }}, @@ -1405,6 +1397,14 @@ var syscalls_64_fork = []*Syscall{ &VmaType{TypeCommon{TypeName: "vma", FldName: "v2", TypeSize: 8}, 7, 9}, &LenType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "len", FldName: "l2", TypeSize: 8}}, Path: []string{"v2"}}, }}, + {Name: "test_excessive_args1", CallName: "test_excessive_args1"}, + {Name: "test_excessive_args2", CallName: "test_excessive_args2", Args: []Type{ + &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int8", FldName: "a1", TypeSize: 1}}}, + }}, + {Name: "test_length15", CallName: "test_length15", Args: []Type{ + &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int16", FldName: "a0", TypeSize: 2}}}, + &LenType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "len", FldName: "a1", TypeSize: 8}}, Path: []string{"a0"}}, + }}, {Name: "unsupported$0", CallName: "unsupported", Args: []Type{ &ResourceType{TypeCommon: TypeCommon{TypeName: "unsupported", FldName: "a", TypeSize: 4}}, }, Ret: &ResourceType{TypeCommon: TypeCommon{TypeName: "unsupported", FldName: "ret", TypeSize: 4, ArgDir: 1}}}, @@ -1420,7 +1420,6 @@ var consts_64_fork = []ConstValue{ {Name: "SYS_fallback"}, {Name: "SYS_foo"}, {Name: "SYS_minimize"}, - {Name: "SYS_mutate"}, {Name: "SYS_mutate0"}, {Name: "SYS_mutate1"}, {Name: "SYS_mutate2"}, @@ -1430,12 +1429,25 @@ var consts_64_fork = []ConstValue{ {Name: "SYS_mutate6"}, {Name: "SYS_mutate7"}, {Name: "SYS_mutate8"}, + {Name: "SYS_mutate_array"}, + {Name: "SYS_mutate_array2"}, + {Name: "SYS_mutate_buffer"}, + {Name: "SYS_mutate_flags"}, + {Name: "SYS_mutate_flags2"}, + {Name: "SYS_mutate_flags3"}, + {Name: "SYS_mutate_integer"}, + {Name: "SYS_mutate_integer2"}, + {Name: "SYS_mutate_rangedbuffer"}, + {Name: "SYS_mutate_union"}, {Name: "SYS_prctl"}, {Name: "SYS_seccomp"}, {Name: "SYS_serialize0"}, {Name: "SYS_serialize1"}, {Name: "SYS_test"}, + {Name: "SYS_test_excessive_args1"}, + {Name: "SYS_test_excessive_args2"}, + {Name: "SYS_test_length15"}, {Name: "SYS_unsupported"}, } -const revision_64_fork = "399d53d555b219a495bc162e62986d7cb16952d5" +const revision_64_fork = "647e31ffe8e7096502c33d49da123323314ec0da" diff --git a/sys/test/test.txt b/sys/test/test.txt index 2bae67c1e..3b9b1d71d 100644 --- a/sys/test/test.txt +++ b/sys/test/test.txt @@ -236,7 +236,7 @@ test$length11(a0 ptr[in, syz_length_large_struct], a1 len[a0]) test$length12(a0 ptr[in, syz_length_large_struct, opt], a1 len[a0]) test$length13(a0 ptr[inout, syz_length_large_struct], a1 ptr[inout, len[a0, int64]]) test$length14(a0 ptr[inout, syz_length_large_struct], a1 ptr[inout, len[a0, int64], opt]) -test$length15(a0 int16, a1 len[a0]) +test_length15(a0 int16, a1 len[a0]) test$length16(a0 ptr[in, syz_length_bytesize_struct]) test$length17(a0 ptr[in, syz_length_bytesize2_struct]) @@ -541,8 +541,8 @@ type_confusion [ f1 int8 ] -test$excessive_args1() -test$excessive_args2(a1 int8) +test_excessive_args1() +test_excessive_args2(a1 int8) test$excessive_fields1(a1 ptr[in, excessive_fields]) test$type_confusion1(a1 ptr[in, type_confusion]) test$out_const(a1 ptr[out, const[1, int32]]) @@ -740,16 +740,16 @@ mutate7(a0 ptr[in, string], a1 len[a0]) mutate8(a0 proc[100, 4, opt]) # Test for arguments mutation -mutate$integer(b1 bool8, b2 bool8, b3 bool8, b4 bool8, b5 bool8, b6 bool8, b7 bool8, b8 bool8, i9 int64) -mutate$integer2(b1 bool64, i1 int64, i2 int32, i3 int16[0x0:0x8], i4 int8[0x0:0x8]) -mutate$flags(filename ptr[in, filename], i1 int64, b1 bool16, flags flags[bitmask_flags]) -mutate$flags2(filename ptr[in, filename], flags flags[bitmask_flags2]) -mutate$flags3(filename ptr[in, filename], flags flags[open_flags2]) -mutate$array(i1 int64, i2 int64[0x0:0x1fffffff], vec ptr[in, array[int32[0:1]]]) -mutate$array2(vec ptr[in, array[syz_struct1]]) -mutate$union(p ptr[in, syz_union0]) -mutate$buffer(p buffer[out]) -mutate$rangedbuffer(p ptr[out, array[int8, 5:10]]) +mutate_integer(b1 bool8, b2 bool8, b3 bool8, b4 bool8, b5 bool8, b6 bool8, b7 bool8, b8 bool8, i9 int64) +mutate_integer2(b1 bool64, i1 int64, i2 int32, i3 int16[0x0:0x8], i4 int8[0x0:0x8]) +mutate_flags(filename ptr[in, filename], i1 int64, b1 bool16, flags flags[bitmask_flags]) +mutate_flags2(filename ptr[in, filename], flags flags[bitmask_flags2]) +mutate_flags3(filename ptr[in, filename], flags flags[open_flags2]) +mutate_array(i1 int64, i2 int64[0x0:0x1fffffff], vec ptr[in, array[int32[0:1]]]) +mutate_array2(vec ptr[in, array[syz_struct1]]) +mutate_union(p ptr[in, syz_union0]) +mutate_buffer(p buffer[out]) +mutate_rangedbuffer(p ptr[out, array[int8, 5:10]]) open_flags = 0xabababababababab, 0xcdcdcdcdcdcdcdcd open_flags2 = 0xaaaaaaaaaaaaaaaa, 0xaaaaaaaabbbbbbbb, 0xbbbbbbbbbbbbbbbb, 0xbbbbbbbbcccccccc, 0xcccccccccccccccc, 0xccccccccdddddddd, 0xdddddddddddddddd, 0xddddddddeeeeeeee, 0xeeeeeeeeeeeeeeee, 0xeeeeeeeeffffffff, 0xffffffffffffffff |
