diff options
| author | Dmitry Vyukov <dvyukov@google.com> | 2018-07-06 15:29:52 +0200 |
|---|---|---|
| committer | Dmitry Vyukov <dvyukov@google.com> | 2018-07-06 15:29:52 +0200 |
| commit | 9636bc933e06475902e46750d5f5198fb9c2ff7a (patch) | |
| tree | 6754bb3c9026f90596e26641f7927508435b9d68 /sys/linux | |
| parent | 04bd6c3d9e84645b320e888fa5c547e0b2b1be93 (diff) | |
sys/linux: add mount$bpf
Plus some minor assorted fixes.
Diffstat (limited to 'sys/linux')
| -rw-r--r-- | sys/linux/filesystem.txt | 14 | ||||
| -rw-r--r-- | sys/linux/gen/386.go | 77 | ||||
| -rw-r--r-- | sys/linux/gen/amd64.go | 77 | ||||
| -rw-r--r-- | sys/linux/gen/arm.go | 77 | ||||
| -rw-r--r-- | sys/linux/gen/arm64.go | 77 | ||||
| -rw-r--r-- | sys/linux/gen/ppc64le.go | 77 | ||||
| -rwxr-xr-x | sys/linux/tun.txt | 4 |
7 files changed, 282 insertions, 121 deletions
diff --git a/sys/linux/filesystem.txt b/sys/linux/filesystem.txt index c9460adf5..14a5077a2 100644 --- a/sys/linux/filesystem.txt +++ b/sys/linux/filesystem.txt @@ -6,6 +6,8 @@ include <linux/fs.h> mount(src ptr[in, filename], dst ptr[in, filename], type ptr[in, string[filesystem]], flags flags[mount_flags], data buffer[in, opt]) umount2(path ptr[in, filename], flags flags[umount_flags]) +mount$bpf(src const[0], dst ptr[in, filename], type ptr[in, string["bpf"]], flags flags[mount_flags], opts ptr[in, fs_options[bpf_options]]) + filesystem = "sysfs", "rootfs", "ramfs", "tmpfs", "devtmpfs", "debugfs", "securityfs", "sockfs", "pipefs", "anon_inodefs", "devpts", "ext3", "ext2", "ext4", "hugetlbfs", "vfat", "ecryptfs", "fuseblk", "fuse", "rpc_pipefs", "nfs", "nfs4", "nfsd", "binfmt_misc", "autofs", "xfs", "jfs", "msdos", "ntfs", "minix", "hfs", "hfsplus", "qnx4", "ufs", "btrfs", "configfs", "ncpfs", "qnx6", "exofs", "befs", "vxfs", "gfs2", "gfs2meta", "fusectl", "bfs", "nsfs", "efs", "cifs", "efivarfs", "affs", "tracefs", "bdev", "ocfs2", "ocfs2_dlmfs", "hpfs", "proc", "afs", "reiserfs", "jffs2", "romfs", "aio", "sysv", "v7", "udf", "ceph", "pstore", "adfs", "9p", "hostfs", "squashfs", "cramfs", "iso9660", "coda", "nilfs2", "logfs", "overlay", "f2fs", "omfs", "ubifs", "openpromfs", "bpf", "cgroup", "cgroup2", "cpuset", "mqueue", "aufs", "selinuxfs" syz_read_part_table(size intptr, nsegs len[segments], segments ptr[in, array[fs_image_segment]]) @@ -16,7 +18,7 @@ syz_mount_image$msdos(fs ptr[in, string["msdos"]], dir ptr[in, filename], size i syz_mount_image$bfs(fs ptr[in, string["bfs"]], dir ptr[in, filename], size intptr, nsegs len[segments], segments ptr[in, array[fs_image_segment]], flags flags[mount_flags], opts const[0]) -syz_mount_image$xfs(fs ptr[in, string["xfs"]], dir ptr[in, filename], size intptr, nsegs len[segments], segments ptr[in, array[fs_image_segment]], flags flags[mount_flags], opts ptr[in, xfs_options]) +syz_mount_image$xfs(fs ptr[in, string["xfs"]], dir ptr[in, filename], size intptr, nsegs len[segments], segments ptr[in, array[fs_image_segment]], flags flags[mount_flags], opts ptr[in, fs_options[xfs_options]]) syz_mount_image$minix(fs ptr[in, string["minix"]], dir ptr[in, filename], size intptr, nsegs len[segments], segments ptr[in, array[fs_image_segment]], flags flags[mount_flags], opts const[0]) @@ -65,17 +67,17 @@ type fs_options[ELEMS] { type fs_opt_elem[ELEMS] { elem ELEMS - comma const[44, int8] + comma const[',', int8] } [packed] type fs_opt[NAME, TYPE] { name stringnoz[NAME] - eq const[0x3d, int8] + eq const['=', int8] val TYPE } [packed] type fs_opt_str[NAME] fs_opt[NAME, stringnoz] -type fs_opt_oct[NAME] fs_opt[NAME, array[int8[0x30:0x37]]] +type fs_opt_oct[NAME] fs_opt[NAME, array[int8['0':'7']]] type fs_opt_dec[NAME] fs_opt[NAME, array[flags[fs_opt_digits, int8]]] type fs_opt_dec_suffix[NAME] fs_opt[NAME, array[flags[fs_opt_digits_suffix, int8]]] type fs_opt_filename[NAME] fs_opt[NAME, stringnoz[filename]] @@ -540,6 +542,10 @@ f2fs_options [ test_dummy_encryption stringnoz["test_dummy_encryption"] ] [varlen] +bpf_options [ + mode fs_opt_oct["mode"] +] [varlen] + codepage_nums = "1250", "1251", "1255", "437", "737", "775", "850", "852", "855", "857", "860", "861", "862", "863", "864", "865", "866", "869", "874", "932", "936", "949", "950" codepages_names = "macceltic", "maccenteuro", "maccroatian", "maccyrillic", "macgaelic", "macgreek", "maciceland", "macinuit", "macroman", "macromanian", "macturkish", "ascii", "default", "cp1250", "cp1251", "cp1255", "cp437", "cp737", "cp775", "cp850", "cp852", "cp855", "cp857", "cp860", "cp861", "cp862", "cp863", "cp864", "cp865", "cp866", "cp869", "cp874", "cp932", "cp936", "cp949", "cp950", "euc-jp", "iso8859-13", "iso8859-14", "iso8859-15", "iso8859-1", "iso8859-2", "iso8859-3", "iso8859-4", "iso8859-5", "iso8859-6", "iso8859-7", "iso8859-9", "koi8-r", "koi8-ru", "koi8-u", "utf8", "none" mount_flags = MS_BIND, MS_DIRSYNC, MS_MANDLOCK, MS_MOVE, MS_NOATIME, MS_NODEV, MS_NODIRATIME, MS_NOEXEC, MS_NOSUID, MS_RDONLY, MS_RELATIME, MS_REMOUNT, MS_SILENT, MS_STRICTATIME, MS_SYNCHRONOUS, MS_REC, MS_POSIXACL, MS_UNBINDABLE, MS_PRIVATE, MS_SLAVE, MS_SHARED, MS_I_VERSION, MS_LAZYTIME diff --git a/sys/linux/gen/386.go b/sys/linux/gen/386.go index 21dc3d9e4..997d9dec5 100644 --- a/sys/linux/gen/386.go +++ b/sys/linux/gen/386.go @@ -815,6 +815,9 @@ var structDescs_386 = []*KeyedStruct{ &ResourceType{TypeCommon: TypeCommon{TypeName: "fd_bpf_prog", FldName: "fd", TypeSize: 4}}, &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "pad", TypeSize: 4}}, IsPad: true}, }}}, + {Key: StructKey{Name: "bpf_options"}, Desc: &StructDesc{TypeCommon: TypeCommon{TypeName: "bpf_options", IsVarlen: true}, Fields: []Type{ + &StructType{Key: StructKey{Name: "fs_opt[\"mode\", array[int8['0':'7']]]"}, FldName: "mode"}, + }}}, {Key: StructKey{Name: "bpf_prog"}, Desc: &StructDesc{TypeCommon: TypeCommon{TypeName: "bpf_prog", TypeSize: 72}, Fields: []Type{ &FlagsType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "bpf_prog_type", FldName: "type", TypeSize: 4}}, Vals: []uint64{1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18}}, &LenType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "bytesize8", FldName: "ninsn", TypeSize: 4}}, BitSize: 64, Buf: "insns"}, @@ -3455,7 +3458,7 @@ var structDescs_386 = []*KeyedStruct{ &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "eq", TypeSize: 1}}, Val: 61}, &ArrayType{TypeCommon: TypeCommon{TypeName: "array", FldName: "val", IsVarlen: true}, Type: &FlagsType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "fs_opt_digits_suffix", TypeSize: 1}}, Vals: []uint64{45, 120, 48, 49, 50, 51, 52, 53, 54, 55, 56, 57, 107, 109, 103, 116, 112, 101}}}, }}}, - {Key: StructKey{Name: "fs_opt[\"allow_utime\", array[int8[0x30:0x37]]]"}, Desc: &StructDesc{TypeCommon: TypeCommon{TypeName: "fs_opt[\"allow_utime\", array[int8[0x30:0x37]]]", IsVarlen: true}, Fields: []Type{ + {Key: StructKey{Name: "fs_opt[\"allow_utime\", array[int8['0':'7']]]"}, Desc: &StructDesc{TypeCommon: TypeCommon{TypeName: "fs_opt[\"allow_utime\", array[int8['0':'7']]]", IsVarlen: true}, Fields: []Type{ &BufferType{TypeCommon: TypeCommon{TypeName: "stringnoz", FldName: "name", TypeSize: 11}, Kind: 2, Values: []string{"allow_utime"}, NoZ: true}, &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "eq", TypeSize: 1}}, Val: 61}, &ArrayType{TypeCommon: TypeCommon{TypeName: "array", FldName: "val", IsVarlen: true}, Type: &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int8", TypeSize: 1}}, Kind: 2, RangeBegin: 48, RangeEnd: 55}}, @@ -3535,7 +3538,7 @@ var structDescs_386 = []*KeyedStruct{ &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "eq", TypeSize: 1}}, Val: 61}, &BufferType{TypeCommon: TypeCommon{TypeName: "filename", FldName: "val", IsVarlen: true}, Kind: 3, NoZ: true}, }}}, - {Key: StructKey{Name: "fs_opt[\"dir_umask\", array[int8[0x30:0x37]]]"}, Desc: &StructDesc{TypeCommon: TypeCommon{TypeName: "fs_opt[\"dir_umask\", array[int8[0x30:0x37]]]", IsVarlen: true}, Fields: []Type{ + {Key: StructKey{Name: "fs_opt[\"dir_umask\", array[int8['0':'7']]]"}, Desc: &StructDesc{TypeCommon: TypeCommon{TypeName: "fs_opt[\"dir_umask\", array[int8['0':'7']]]", IsVarlen: true}, Fields: []Type{ &BufferType{TypeCommon: TypeCommon{TypeName: "stringnoz", FldName: "name", TypeSize: 9}, Kind: 2, Values: []string{"dir_umask"}, NoZ: true}, &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "eq", TypeSize: 1}}, Val: 61}, &ArrayType{TypeCommon: TypeCommon{TypeName: "array", FldName: "val", IsVarlen: true}, Type: &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int8", TypeSize: 1}}, Kind: 2, RangeBegin: 48, RangeEnd: 55}}, @@ -3555,7 +3558,7 @@ var structDescs_386 = []*KeyedStruct{ &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "eq", TypeSize: 1}}, Val: 61}, &ArrayType{TypeCommon: TypeCommon{TypeName: "array", FldName: "val", IsVarlen: true}, Type: &FlagsType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "fs_opt_digits", TypeSize: 1}}, Vals: []uint64{45, 120, 48, 49, 50, 51, 52, 53, 54, 55, 56, 57}}}, }}}, - {Key: StructKey{Name: "fs_opt[\"dmask\", array[int8[0x30:0x37]]]"}, Desc: &StructDesc{TypeCommon: TypeCommon{TypeName: "fs_opt[\"dmask\", array[int8[0x30:0x37]]]", IsVarlen: true}, Fields: []Type{ + {Key: StructKey{Name: "fs_opt[\"dmask\", array[int8['0':'7']]]"}, Desc: &StructDesc{TypeCommon: TypeCommon{TypeName: "fs_opt[\"dmask\", array[int8['0':'7']]]", IsVarlen: true}, Fields: []Type{ &BufferType{TypeCommon: TypeCommon{TypeName: "stringnoz", FldName: "name", TypeSize: 5}, Kind: 2, Values: []string{"dmask"}, NoZ: true}, &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "eq", TypeSize: 1}}, Val: 61}, &ArrayType{TypeCommon: TypeCommon{TypeName: "array", FldName: "val", IsVarlen: true}, Type: &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int8", TypeSize: 1}}, Kind: 2, RangeBegin: 48, RangeEnd: 55}}, @@ -3565,12 +3568,12 @@ var structDescs_386 = []*KeyedStruct{ &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "eq", TypeSize: 1}}, Val: 61}, &ArrayType{TypeCommon: TypeCommon{TypeName: "array", FldName: "val", IsVarlen: true}, Type: &FlagsType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "fs_opt_digits", TypeSize: 1}}, Vals: []uint64{45, 120, 48, 49, 50, 51, 52, 53, 54, 55, 56, 57}}}, }}}, - {Key: StructKey{Name: "fs_opt[\"file_umask\", array[int8[0x30:0x37]]]"}, Desc: &StructDesc{TypeCommon: TypeCommon{TypeName: "fs_opt[\"file_umask\", array[int8[0x30:0x37]]]", IsVarlen: true}, Fields: []Type{ + {Key: StructKey{Name: "fs_opt[\"file_umask\", array[int8['0':'7']]]"}, Desc: &StructDesc{TypeCommon: TypeCommon{TypeName: "fs_opt[\"file_umask\", array[int8['0':'7']]]", IsVarlen: true}, Fields: []Type{ &BufferType{TypeCommon: TypeCommon{TypeName: "stringnoz", FldName: "name", TypeSize: 10}, Kind: 2, Values: []string{"file_umask"}, NoZ: true}, &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "eq", TypeSize: 1}}, Val: 61}, &ArrayType{TypeCommon: TypeCommon{TypeName: "array", FldName: "val", IsVarlen: true}, Type: &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int8", TypeSize: 1}}, Kind: 2, RangeBegin: 48, RangeEnd: 55}}, }}}, - {Key: StructKey{Name: "fs_opt[\"fmask\", array[int8[0x30:0x37]]]"}, Desc: &StructDesc{TypeCommon: TypeCommon{TypeName: "fs_opt[\"fmask\", array[int8[0x30:0x37]]]", IsVarlen: true}, Fields: []Type{ + {Key: StructKey{Name: "fs_opt[\"fmask\", array[int8['0':'7']]]"}, Desc: &StructDesc{TypeCommon: TypeCommon{TypeName: "fs_opt[\"fmask\", array[int8['0':'7']]]", IsVarlen: true}, Fields: []Type{ &BufferType{TypeCommon: TypeCommon{TypeName: "stringnoz", FldName: "name", TypeSize: 5}, Kind: 2, Values: []string{"fmask"}, NoZ: true}, &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "eq", TypeSize: 1}}, Val: 61}, &ArrayType{TypeCommon: TypeCommon{TypeName: "array", FldName: "val", IsVarlen: true}, Type: &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int8", TypeSize: 1}}, Kind: 2, RangeBegin: 48, RangeEnd: 55}}, @@ -3580,7 +3583,7 @@ var structDescs_386 = []*KeyedStruct{ &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "eq", TypeSize: 1}}, Val: 61}, &ArrayType{TypeCommon: TypeCommon{TypeName: "array", FldName: "val", IsVarlen: true}, Type: &FlagsType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "fs_opt_digits", TypeSize: 1}}, Vals: []uint64{45, 120, 48, 49, 50, 51, 52, 53, 54, 55, 56, 57}}}, }}}, - {Key: StructKey{Name: "fs_opt[\"gid\", array[int8[0x30:0x37]]]"}, Desc: &StructDesc{TypeCommon: TypeCommon{TypeName: "fs_opt[\"gid\", array[int8[0x30:0x37]]]", IsVarlen: true}, Fields: []Type{ + {Key: StructKey{Name: "fs_opt[\"gid\", array[int8['0':'7']]]"}, Desc: &StructDesc{TypeCommon: TypeCommon{TypeName: "fs_opt[\"gid\", array[int8['0':'7']]]", IsVarlen: true}, Fields: []Type{ &BufferType{TypeCommon: TypeCommon{TypeName: "stringnoz", FldName: "name", TypeSize: 3}, Kind: 2, Values: []string{"gid"}, NoZ: true}, &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "eq", TypeSize: 1}}, Val: 61}, &ArrayType{TypeCommon: TypeCommon{TypeName: "array", FldName: "val", IsVarlen: true}, Type: &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int8", TypeSize: 1}}, Kind: 2, RangeBegin: 48, RangeEnd: 55}}, @@ -3705,6 +3708,11 @@ var structDescs_386 = []*KeyedStruct{ &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "eq", TypeSize: 1}}, Val: 61}, &ArrayType{TypeCommon: TypeCommon{TypeName: "array", FldName: "val", IsVarlen: true}, Type: &FlagsType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "fs_opt_digits", TypeSize: 1}}, Vals: []uint64{45, 120, 48, 49, 50, 51, 52, 53, 54, 55, 56, 57}}}, }}}, + {Key: StructKey{Name: "fs_opt[\"mode\", array[int8['0':'7']]]"}, Desc: &StructDesc{TypeCommon: TypeCommon{TypeName: "fs_opt[\"mode\", array[int8['0':'7']]]", IsVarlen: true}, Fields: []Type{ + &BufferType{TypeCommon: TypeCommon{TypeName: "stringnoz", FldName: "name", TypeSize: 4}, Kind: 2, Values: []string{"mode"}, NoZ: true}, + &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "eq", TypeSize: 1}}, Val: 61}, + &ArrayType{TypeCommon: TypeCommon{TypeName: "array", FldName: "val", IsVarlen: true}, Type: &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int8", TypeSize: 1}}, Kind: 2, RangeBegin: 48, RangeEnd: 55}}, + }}}, {Key: StructKey{Name: "fs_opt[\"nls\", stringnoz[codepages_names]]"}, Desc: &StructDesc{TypeCommon: TypeCommon{TypeName: "fs_opt[\"nls\", stringnoz[codepages_names]]", IsVarlen: true}, Fields: []Type{ &BufferType{TypeCommon: TypeCommon{TypeName: "stringnoz", FldName: "name", TypeSize: 3}, Kind: 2, Values: []string{"nls"}, NoZ: true}, &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "eq", TypeSize: 1}}, Val: 61}, @@ -3840,7 +3848,7 @@ var structDescs_386 = []*KeyedStruct{ &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "eq", TypeSize: 1}}, Val: 61}, &ArrayType{TypeCommon: TypeCommon{TypeName: "array", FldName: "val", IsVarlen: true}, Type: &FlagsType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "fs_opt_digits", TypeSize: 1}}, Vals: []uint64{45, 120, 48, 49, 50, 51, 52, 53, 54, 55, 56, 57}}}, }}}, - {Key: StructKey{Name: "fs_opt[\"uid\", array[int8[0x30:0x37]]]"}, Desc: &StructDesc{TypeCommon: TypeCommon{TypeName: "fs_opt[\"uid\", array[int8[0x30:0x37]]]", IsVarlen: true}, Fields: []Type{ + {Key: StructKey{Name: "fs_opt[\"uid\", array[int8['0':'7']]]"}, Desc: &StructDesc{TypeCommon: TypeCommon{TypeName: "fs_opt[\"uid\", array[int8['0':'7']]]", IsVarlen: true}, Fields: []Type{ &BufferType{TypeCommon: TypeCommon{TypeName: "stringnoz", FldName: "name", TypeSize: 3}, Kind: 2, Values: []string{"uid"}, NoZ: true}, &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "eq", TypeSize: 1}}, Val: 61}, &ArrayType{TypeCommon: TypeCommon{TypeName: "array", FldName: "val", IsVarlen: true}, Type: &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int8", TypeSize: 1}}, Kind: 2, RangeBegin: 48, RangeEnd: 55}}, @@ -3850,7 +3858,7 @@ var structDescs_386 = []*KeyedStruct{ &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "eq", TypeSize: 1}}, Val: 61}, &ArrayType{TypeCommon: TypeCommon{TypeName: "array", FldName: "val", IsVarlen: true}, Type: &FlagsType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "fs_opt_digits", TypeSize: 1}}, Vals: []uint64{45, 120, 48, 49, 50, 51, 52, 53, 54, 55, 56, 57}}}, }}}, - {Key: StructKey{Name: "fs_opt[\"umask\", array[int8[0x30:0x37]]]"}, Desc: &StructDesc{TypeCommon: TypeCommon{TypeName: "fs_opt[\"umask\", array[int8[0x30:0x37]]]", IsVarlen: true}, Fields: []Type{ + {Key: StructKey{Name: "fs_opt[\"umask\", array[int8['0':'7']]]"}, Desc: &StructDesc{TypeCommon: TypeCommon{TypeName: "fs_opt[\"umask\", array[int8['0':'7']]]", IsVarlen: true}, Fields: []Type{ &BufferType{TypeCommon: TypeCommon{TypeName: "stringnoz", FldName: "name", TypeSize: 5}, Kind: 2, Values: []string{"umask"}, NoZ: true}, &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "eq", TypeSize: 1}}, Val: 61}, &ArrayType{TypeCommon: TypeCommon{TypeName: "array", FldName: "val", IsVarlen: true}, Type: &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int8", TypeSize: 1}}, Kind: 2, RangeBegin: 48, RangeEnd: 55}}, @@ -3870,6 +3878,10 @@ var structDescs_386 = []*KeyedStruct{ &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "eq", TypeSize: 1}}, Val: 61}, &BufferType{TypeCommon: TypeCommon{TypeName: "stringnoz", FldName: "val", IsVarlen: true}, Kind: 2, NoZ: true}, }}}, + {Key: StructKey{Name: "fs_opt_elem[bpf_options]"}, Desc: &StructDesc{TypeCommon: TypeCommon{TypeName: "fs_opt_elem[bpf_options]", IsVarlen: true}, Fields: []Type{ + &UnionType{Key: StructKey{Name: "bpf_options"}, FldName: "elem"}, + &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "comma", TypeSize: 1}}, Val: 44}, + }}}, {Key: StructKey{Name: "fs_opt_elem[btrfs_options]"}, Desc: &StructDesc{TypeCommon: TypeCommon{TypeName: "fs_opt_elem[btrfs_options]", IsVarlen: true}, Fields: []Type{ &UnionType{Key: StructKey{Name: "btrfs_options"}, FldName: "elem"}, &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "comma", TypeSize: 1}}, Val: 44}, @@ -3914,6 +3926,14 @@ var structDescs_386 = []*KeyedStruct{ &UnionType{Key: StructKey{Name: "vfat_options"}, FldName: "elem"}, &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "comma", TypeSize: 1}}, Val: 44}, }}}, + {Key: StructKey{Name: "fs_opt_elem[xfs_options]"}, Desc: &StructDesc{TypeCommon: TypeCommon{TypeName: "fs_opt_elem[xfs_options]", IsVarlen: true}, Fields: []Type{ + &UnionType{Key: StructKey{Name: "xfs_options"}, FldName: "elem"}, + &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "comma", TypeSize: 1}}, Val: 44}, + }}}, + {Key: StructKey{Name: "fs_options[bpf_options]"}, Desc: &StructDesc{TypeCommon: TypeCommon{TypeName: "fs_options[bpf_options]", IsVarlen: true}, Fields: []Type{ + &ArrayType{TypeCommon: TypeCommon{TypeName: "array", FldName: "elems", IsVarlen: true}, Type: &StructType{Key: StructKey{Name: "fs_opt_elem[bpf_options]"}}}, + &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "null", TypeSize: 1}}}, + }}}, {Key: StructKey{Name: "fs_options[btrfs_options]"}, Desc: &StructDesc{TypeCommon: TypeCommon{TypeName: "fs_options[btrfs_options]", IsVarlen: true}, Fields: []Type{ &ArrayType{TypeCommon: TypeCommon{TypeName: "array", FldName: "elems", IsVarlen: true}, Type: &StructType{Key: StructKey{Name: "fs_opt_elem[btrfs_options]"}}}, &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "null", TypeSize: 1}}}, @@ -3958,6 +3978,10 @@ var structDescs_386 = []*KeyedStruct{ &ArrayType{TypeCommon: TypeCommon{TypeName: "array", FldName: "elems", IsVarlen: true}, Type: &StructType{Key: StructKey{Name: "fs_opt_elem[vfat_options]"}}}, &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "null", TypeSize: 1}}}, }}}, + {Key: StructKey{Name: "fs_options[xfs_options]"}, Desc: &StructDesc{TypeCommon: TypeCommon{TypeName: "fs_options[xfs_options]", IsVarlen: true}, Fields: []Type{ + &ArrayType{TypeCommon: TypeCommon{TypeName: "array", FldName: "elems", IsVarlen: true}, Type: &StructType{Key: StructKey{Name: "fs_opt_elem[xfs_options]"}}}, + &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "null", TypeSize: 1}}}, + }}}, {Key: StructKey{Name: "fsxattr"}, Desc: &StructDesc{TypeCommon: TypeCommon{TypeName: "fsxattr", TypeSize: 32}, Fields: []Type{ &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int32", FldName: "fsx_xflags", TypeSize: 4}}}, &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int32", FldName: "fsx_extsize", TypeSize: 4}}}, @@ -4377,9 +4401,9 @@ var structDescs_386 = []*KeyedStruct{ }}}, {Key: StructKey{Name: "hfs_options"}, Desc: &StructDesc{TypeCommon: TypeCommon{TypeName: "hfs_options", IsVarlen: true}, Fields: []Type{ &BufferType{TypeCommon: TypeCommon{TypeName: "stringnoz", FldName: "quiet", TypeSize: 5}, Kind: 2, Values: []string{"quiet"}, NoZ: true}, - &StructType{Key: StructKey{Name: "fs_opt[\"umask\", array[int8[0x30:0x37]]]"}, FldName: "umask"}, - &StructType{Key: StructKey{Name: "fs_opt[\"file_umask\", array[int8[0x30:0x37]]]"}, FldName: "file_umask"}, - &StructType{Key: StructKey{Name: "fs_opt[\"dir_umask\", array[int8[0x30:0x37]]]"}, FldName: "dir_umask"}, + &StructType{Key: StructKey{Name: "fs_opt[\"umask\", array[int8['0':'7']]]"}, FldName: "umask"}, + &StructType{Key: StructKey{Name: "fs_opt[\"file_umask\", array[int8['0':'7']]]"}, FldName: "file_umask"}, + &StructType{Key: StructKey{Name: "fs_opt[\"dir_umask\", array[int8['0':'7']]]"}, FldName: "dir_umask"}, &StructType{Key: StructKey{Name: "fs_opt[\"uid\", array[flags[fs_opt_digits, int8]]]"}, FldName: "uid"}, &StructType{Key: StructKey{Name: "fs_opt[\"gid\", array[flags[fs_opt_digits, int8]]]"}, FldName: "gid"}, &StructType{Key: StructKey{Name: "fs_opt[\"part\", array[flags[fs_opt_digits, int8]]]"}, FldName: "part"}, @@ -4395,7 +4419,7 @@ var structDescs_386 = []*KeyedStruct{ &BufferType{TypeCommon: TypeCommon{TypeName: "stringnoz", FldName: "barrier", TypeSize: 7}, Kind: 2, Values: []string{"barrier"}, NoZ: true}, &BufferType{TypeCommon: TypeCommon{TypeName: "stringnoz", FldName: "nobarrier", TypeSize: 9}, Kind: 2, Values: []string{"nobarrier"}, NoZ: true}, &BufferType{TypeCommon: TypeCommon{TypeName: "stringnoz", FldName: "force", TypeSize: 5}, Kind: 2, Values: []string{"force"}, NoZ: true}, - &StructType{Key: StructKey{Name: "fs_opt[\"umask\", array[int8[0x30:0x37]]]"}, FldName: "umask"}, + &StructType{Key: StructKey{Name: "fs_opt[\"umask\", array[int8['0':'7']]]"}, FldName: "umask"}, &StructType{Key: StructKey{Name: "fs_opt[\"type\", array[int8, 4]]"}, FldName: "type"}, &StructType{Key: StructKey{Name: "fs_opt[\"creator\", array[int8, 4]]"}, FldName: "creator"}, &StructType{Key: StructKey{Name: "fs_opt[\"uid\", array[flags[fs_opt_digits, int8]]]"}, FldName: "uid"}, @@ -12556,9 +12580,9 @@ var structDescs_386 = []*KeyedStruct{ {Key: StructKey{Name: "ntfs_options"}, Desc: &StructDesc{TypeCommon: TypeCommon{TypeName: "ntfs_options", IsVarlen: true}, Fields: []Type{ &StructType{Key: StructKey{Name: "fs_opt[\"uid\", array[flags[fs_opt_digits, int8]]]"}, FldName: "uid"}, &StructType{Key: StructKey{Name: "fs_opt[\"gid\", array[flags[fs_opt_digits, int8]]]"}, FldName: "gid"}, - &StructType{Key: StructKey{Name: "fs_opt[\"umask\", array[int8[0x30:0x37]]]"}, FldName: "umask"}, - &StructType{Key: StructKey{Name: "fs_opt[\"fmask\", array[int8[0x30:0x37]]]"}, FldName: "fmask"}, - &StructType{Key: StructKey{Name: "fs_opt[\"dmask\", array[int8[0x30:0x37]]]"}, FldName: "dmask"}, + &StructType{Key: StructKey{Name: "fs_opt[\"umask\", array[int8['0':'7']]]"}, FldName: "umask"}, + &StructType{Key: StructKey{Name: "fs_opt[\"fmask\", array[int8['0':'7']]]"}, FldName: "fmask"}, + &StructType{Key: StructKey{Name: "fs_opt[\"dmask\", array[int8['0':'7']]]"}, FldName: "dmask"}, &StructType{Key: StructKey{Name: "fs_opt[\"mft_zone_multiplier\", array[flags[fs_opt_digits, int8]]]"}, FldName: "mft_zone_multiplier"}, &StructType{Key: StructKey{Name: "fs_opt[\"show_sys_files=no\", array[flags[fs_opt_digits, int8]]]"}, FldName: "show_sys_files_no"}, &StructType{Key: StructKey{Name: "fs_opt[\"show_sys_files=yes\", array[flags[fs_opt_digits, int8]]]"}, FldName: "show_sys_files_yes"}, @@ -17556,12 +17580,12 @@ var structDescs_386 = []*KeyedStruct{ &BufferType{TypeCommon: TypeCommon{TypeName: "stringnoz", FldName: "nfs", TypeSize: 3}, Kind: 2, Values: []string{"nfs"}, NoZ: true}, &BufferType{TypeCommon: TypeCommon{TypeName: "stringnoz", FldName: "nfs_nostale_ro", TypeSize: 14}, Kind: 2, Values: []string{"nfs=nostale_ro"}, NoZ: true}, &BufferType{TypeCommon: TypeCommon{TypeName: "stringnoz", FldName: "dos1xfloppy", TypeSize: 11}, Kind: 2, Values: []string{"dos1xfloppy"}, NoZ: true}, - &StructType{Key: StructKey{Name: "fs_opt[\"uid\", array[int8[0x30:0x37]]]"}, FldName: "uid"}, - &StructType{Key: StructKey{Name: "fs_opt[\"gid\", array[int8[0x30:0x37]]]"}, FldName: "gid"}, - &StructType{Key: StructKey{Name: "fs_opt[\"umask\", array[int8[0x30:0x37]]]"}, FldName: "umask"}, - &StructType{Key: StructKey{Name: "fs_opt[\"dmask\", array[int8[0x30:0x37]]]"}, FldName: "dmask"}, - &StructType{Key: StructKey{Name: "fs_opt[\"fmask\", array[int8[0x30:0x37]]]"}, FldName: "fmask"}, - &StructType{Key: StructKey{Name: "fs_opt[\"allow_utime\", array[int8[0x30:0x37]]]"}, FldName: "allow_utime"}, + &StructType{Key: StructKey{Name: "fs_opt[\"uid\", array[int8['0':'7']]]"}, FldName: "uid"}, + &StructType{Key: StructKey{Name: "fs_opt[\"gid\", array[int8['0':'7']]]"}, FldName: "gid"}, + &StructType{Key: StructKey{Name: "fs_opt[\"umask\", array[int8['0':'7']]]"}, FldName: "umask"}, + &StructType{Key: StructKey{Name: "fs_opt[\"dmask\", array[int8['0':'7']]]"}, FldName: "dmask"}, + &StructType{Key: StructKey{Name: "fs_opt[\"fmask\", array[int8['0':'7']]]"}, FldName: "fmask"}, + &StructType{Key: StructKey{Name: "fs_opt[\"allow_utime\", array[int8['0':'7']]]"}, FldName: "allow_utime"}, &StructType{Key: StructKey{Name: "fs_opt[\"time_offset\", array[flags[fs_opt_digits, int8]]]"}, FldName: "time_offset"}, &StructType{Key: StructKey{Name: "fs_opt[\"codepage\", stringnoz[codepage_nums]]"}, FldName: "codepage"}, }}}, @@ -26576,6 +26600,13 @@ var syscalls_386 = []*Syscall{ &FlagsType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "mount_flags", FldName: "flags", TypeSize: 4}}, Vals: []uint64{4096, 128, 64, 8192, 1024, 4, 2048, 8, 2, 1, 2097152, 32, 32768, 16777216, 16, 16384, 65536, 131072, 262144, 524288, 1048576, 8388608, 33554432}, BitMask: true}, &PtrType{TypeCommon: TypeCommon{TypeName: "buffer", FldName: "data", TypeSize: 4, IsOptional: true}, Type: &BufferType{TypeCommon: TypeCommon{IsVarlen: true}}}, }}, + {NR: 21, Name: "mount$bpf", CallName: "mount", Args: []Type{ + &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "src", TypeSize: 4}}}, + &PtrType{TypeCommon: TypeCommon{TypeName: "ptr", FldName: "dst", TypeSize: 4}, Type: &BufferType{TypeCommon: TypeCommon{TypeName: "filename", IsVarlen: true}, Kind: 3}}, + &PtrType{TypeCommon: TypeCommon{TypeName: "ptr", FldName: "type", TypeSize: 4}, Type: &BufferType{TypeCommon: TypeCommon{TypeName: "string", TypeSize: 4}, Kind: 2, Values: []string{"bpf\x00"}}}, + &FlagsType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "mount_flags", FldName: "flags", TypeSize: 4}}, Vals: []uint64{4096, 128, 64, 8192, 1024, 4, 2048, 8, 2, 1, 2097152, 32, 32768, 16777216, 16, 16384, 65536, 131072, 262144, 524288, 1048576, 8388608, 33554432}, BitMask: true}, + &PtrType{TypeCommon: TypeCommon{TypeName: "ptr", FldName: "opts", TypeSize: 4}, Type: &StructType{Key: StructKey{Name: "fs_options[bpf_options]"}}}, + }}, {NR: 317, Name: "move_pages", CallName: "move_pages", Args: []Type{ &ResourceType{TypeCommon: TypeCommon{TypeName: "pid", FldName: "pid", TypeSize: 4}}, &LenType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "len", FldName: "nr", TypeSize: 4}}, Buf: "pages"}, @@ -30449,7 +30480,7 @@ var syscalls_386 = []*Syscall{ &LenType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "len", FldName: "nsegs", TypeSize: 4}}, Buf: "segments"}, &PtrType{TypeCommon: TypeCommon{TypeName: "ptr", FldName: "segments", TypeSize: 4}, Type: &ArrayType{TypeCommon: TypeCommon{TypeName: "array", IsVarlen: true}, Type: &StructType{Key: StructKey{Name: "fs_image_segment"}}}}, &FlagsType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "mount_flags", FldName: "flags", TypeSize: 4}}, Vals: []uint64{4096, 128, 64, 8192, 1024, 4, 2048, 8, 2, 1, 2097152, 32, 32768, 16777216, 16, 16384, 65536, 131072, 262144, 524288, 1048576, 8388608, 33554432}, BitMask: true}, - &PtrType{TypeCommon: TypeCommon{TypeName: "ptr", FldName: "opts", TypeSize: 4}, Type: &UnionType{Key: StructKey{Name: "xfs_options"}}}, + &PtrType{TypeCommon: TypeCommon{TypeName: "ptr", FldName: "opts", TypeSize: 4}, Type: &StructType{Key: StructKey{Name: "fs_options[xfs_options]"}}}, }}, {Name: "syz_open_dev$CDROM_DEV_LINK", CallName: "syz_open_dev", Args: []Type{ &PtrType{TypeCommon: TypeCommon{TypeName: "ptr", FldName: "dev", TypeSize: 4}, Type: &BufferType{TypeCommon: TypeCommon{TypeName: "string", TypeSize: 11}, Kind: 2, Values: []string{"/dev/cdrom\x00"}}}, @@ -37095,4 +37126,4 @@ var consts_386 = []ConstValue{ {Name: "bpf_insn_load_imm_dw", Value: 24}, } -const revision_386 = "7c3b92654cfa280739a2cab1908dd7fbafba5a74" +const revision_386 = "70b295f1a545559789eb83853bb3909e07a60615" diff --git a/sys/linux/gen/amd64.go b/sys/linux/gen/amd64.go index d6a5d52c3..749a60749 100644 --- a/sys/linux/gen/amd64.go +++ b/sys/linux/gen/amd64.go @@ -823,6 +823,9 @@ var structDescs_amd64 = []*KeyedStruct{ &ResourceType{TypeCommon: TypeCommon{TypeName: "fd_bpf_prog", FldName: "fd", TypeSize: 4}}, &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "pad", TypeSize: 4}}, IsPad: true}, }}}, + {Key: StructKey{Name: "bpf_options"}, Desc: &StructDesc{TypeCommon: TypeCommon{TypeName: "bpf_options", IsVarlen: true}, Fields: []Type{ + &StructType{Key: StructKey{Name: "fs_opt[\"mode\", array[int8['0':'7']]]"}, FldName: "mode"}, + }}}, {Key: StructKey{Name: "bpf_prog"}, Desc: &StructDesc{TypeCommon: TypeCommon{TypeName: "bpf_prog", TypeSize: 72}, Fields: []Type{ &FlagsType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "bpf_prog_type", FldName: "type", TypeSize: 4}}, Vals: []uint64{1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18}}, &LenType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "bytesize8", FldName: "ninsn", TypeSize: 4}}, BitSize: 64, Buf: "insns"}, @@ -3541,7 +3544,7 @@ var structDescs_amd64 = []*KeyedStruct{ &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "eq", TypeSize: 1}}, Val: 61}, &ArrayType{TypeCommon: TypeCommon{TypeName: "array", FldName: "val", IsVarlen: true}, Type: &FlagsType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "fs_opt_digits_suffix", TypeSize: 1}}, Vals: []uint64{45, 120, 48, 49, 50, 51, 52, 53, 54, 55, 56, 57, 107, 109, 103, 116, 112, 101}}}, }}}, - {Key: StructKey{Name: "fs_opt[\"allow_utime\", array[int8[0x30:0x37]]]"}, Desc: &StructDesc{TypeCommon: TypeCommon{TypeName: "fs_opt[\"allow_utime\", array[int8[0x30:0x37]]]", IsVarlen: true}, Fields: []Type{ + {Key: StructKey{Name: "fs_opt[\"allow_utime\", array[int8['0':'7']]]"}, Desc: &StructDesc{TypeCommon: TypeCommon{TypeName: "fs_opt[\"allow_utime\", array[int8['0':'7']]]", IsVarlen: true}, Fields: []Type{ &BufferType{TypeCommon: TypeCommon{TypeName: "stringnoz", FldName: "name", TypeSize: 11}, Kind: 2, Values: []string{"allow_utime"}, NoZ: true}, &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "eq", TypeSize: 1}}, Val: 61}, &ArrayType{TypeCommon: TypeCommon{TypeName: "array", FldName: "val", IsVarlen: true}, Type: &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int8", TypeSize: 1}}, Kind: 2, RangeBegin: 48, RangeEnd: 55}}, @@ -3621,7 +3624,7 @@ var structDescs_amd64 = []*KeyedStruct{ &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "eq", TypeSize: 1}}, Val: 61}, &BufferType{TypeCommon: TypeCommon{TypeName: "filename", FldName: "val", IsVarlen: true}, Kind: 3, NoZ: true}, }}}, - {Key: StructKey{Name: "fs_opt[\"dir_umask\", array[int8[0x30:0x37]]]"}, Desc: &StructDesc{TypeCommon: TypeCommon{TypeName: "fs_opt[\"dir_umask\", array[int8[0x30:0x37]]]", IsVarlen: true}, Fields: []Type{ + {Key: StructKey{Name: "fs_opt[\"dir_umask\", array[int8['0':'7']]]"}, Desc: &StructDesc{TypeCommon: TypeCommon{TypeName: "fs_opt[\"dir_umask\", array[int8['0':'7']]]", IsVarlen: true}, Fields: []Type{ &BufferType{TypeCommon: TypeCommon{TypeName: "stringnoz", FldName: "name", TypeSize: 9}, Kind: 2, Values: []string{"dir_umask"}, NoZ: true}, &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "eq", TypeSize: 1}}, Val: 61}, &ArrayType{TypeCommon: TypeCommon{TypeName: "array", FldName: "val", IsVarlen: true}, Type: &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int8", TypeSize: 1}}, Kind: 2, RangeBegin: 48, RangeEnd: 55}}, @@ -3641,7 +3644,7 @@ var structDescs_amd64 = []*KeyedStruct{ &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "eq", TypeSize: 1}}, Val: 61}, &ArrayType{TypeCommon: TypeCommon{TypeName: "array", FldName: "val", IsVarlen: true}, Type: &FlagsType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "fs_opt_digits", TypeSize: 1}}, Vals: []uint64{45, 120, 48, 49, 50, 51, 52, 53, 54, 55, 56, 57}}}, }}}, - {Key: StructKey{Name: "fs_opt[\"dmask\", array[int8[0x30:0x37]]]"}, Desc: &StructDesc{TypeCommon: TypeCommon{TypeName: "fs_opt[\"dmask\", array[int8[0x30:0x37]]]", IsVarlen: true}, Fields: []Type{ + {Key: StructKey{Name: "fs_opt[\"dmask\", array[int8['0':'7']]]"}, Desc: &StructDesc{TypeCommon: TypeCommon{TypeName: "fs_opt[\"dmask\", array[int8['0':'7']]]", IsVarlen: true}, Fields: []Type{ &BufferType{TypeCommon: TypeCommon{TypeName: "stringnoz", FldName: "name", TypeSize: 5}, Kind: 2, Values: []string{"dmask"}, NoZ: true}, &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "eq", TypeSize: 1}}, Val: 61}, &ArrayType{TypeCommon: TypeCommon{TypeName: "array", FldName: "val", IsVarlen: true}, Type: &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int8", TypeSize: 1}}, Kind: 2, RangeBegin: 48, RangeEnd: 55}}, @@ -3651,12 +3654,12 @@ var structDescs_amd64 = []*KeyedStruct{ &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "eq", TypeSize: 1}}, Val: 61}, &ArrayType{TypeCommon: TypeCommon{TypeName: "array", FldName: "val", IsVarlen: true}, Type: &FlagsType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "fs_opt_digits", TypeSize: 1}}, Vals: []uint64{45, 120, 48, 49, 50, 51, 52, 53, 54, 55, 56, 57}}}, }}}, - {Key: StructKey{Name: "fs_opt[\"file_umask\", array[int8[0x30:0x37]]]"}, Desc: &StructDesc{TypeCommon: TypeCommon{TypeName: "fs_opt[\"file_umask\", array[int8[0x30:0x37]]]", IsVarlen: true}, Fields: []Type{ + {Key: StructKey{Name: "fs_opt[\"file_umask\", array[int8['0':'7']]]"}, Desc: &StructDesc{TypeCommon: TypeCommon{TypeName: "fs_opt[\"file_umask\", array[int8['0':'7']]]", IsVarlen: true}, Fields: []Type{ &BufferType{TypeCommon: TypeCommon{TypeName: "stringnoz", FldName: "name", TypeSize: 10}, Kind: 2, Values: []string{"file_umask"}, NoZ: true}, &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "eq", TypeSize: 1}}, Val: 61}, &ArrayType{TypeCommon: TypeCommon{TypeName: "array", FldName: "val", IsVarlen: true}, Type: &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int8", TypeSize: 1}}, Kind: 2, RangeBegin: 48, RangeEnd: 55}}, }}}, - {Key: StructKey{Name: "fs_opt[\"fmask\", array[int8[0x30:0x37]]]"}, Desc: &StructDesc{TypeCommon: TypeCommon{TypeName: "fs_opt[\"fmask\", array[int8[0x30:0x37]]]", IsVarlen: true}, Fields: []Type{ + {Key: StructKey{Name: "fs_opt[\"fmask\", array[int8['0':'7']]]"}, Desc: &StructDesc{TypeCommon: TypeCommon{TypeName: "fs_opt[\"fmask\", array[int8['0':'7']]]", IsVarlen: true}, Fields: []Type{ &BufferType{TypeCommon: TypeCommon{TypeName: "stringnoz", FldName: "name", TypeSize: 5}, Kind: 2, Values: []string{"fmask"}, NoZ: true}, &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "eq", TypeSize: 1}}, Val: 61}, &ArrayType{TypeCommon: TypeCommon{TypeName: "array", FldName: "val", IsVarlen: true}, Type: &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int8", TypeSize: 1}}, Kind: 2, RangeBegin: 48, RangeEnd: 55}}, @@ -3666,7 +3669,7 @@ var structDescs_amd64 = []*KeyedStruct{ &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "eq", TypeSize: 1}}, Val: 61}, &ArrayType{TypeCommon: TypeCommon{TypeName: "array", FldName: "val", IsVarlen: true}, Type: &FlagsType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "fs_opt_digits", TypeSize: 1}}, Vals: []uint64{45, 120, 48, 49, 50, 51, 52, 53, 54, 55, 56, 57}}}, }}}, - {Key: StructKey{Name: "fs_opt[\"gid\", array[int8[0x30:0x37]]]"}, Desc: &StructDesc{TypeCommon: TypeCommon{TypeName: "fs_opt[\"gid\", array[int8[0x30:0x37]]]", IsVarlen: true}, Fields: []Type{ + {Key: StructKey{Name: "fs_opt[\"gid\", array[int8['0':'7']]]"}, Desc: &StructDesc{TypeCommon: TypeCommon{TypeName: "fs_opt[\"gid\", array[int8['0':'7']]]", IsVarlen: true}, Fields: []Type{ &BufferType{TypeCommon: TypeCommon{TypeName: "stringnoz", FldName: "name", TypeSize: 3}, Kind: 2, Values: []string{"gid"}, NoZ: true}, &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "eq", TypeSize: 1}}, Val: 61}, &ArrayType{TypeCommon: TypeCommon{TypeName: "array", FldName: "val", IsVarlen: true}, Type: &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int8", TypeSize: 1}}, Kind: 2, RangeBegin: 48, RangeEnd: 55}}, @@ -3791,6 +3794,11 @@ var structDescs_amd64 = []*KeyedStruct{ &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "eq", TypeSize: 1}}, Val: 61}, &ArrayType{TypeCommon: TypeCommon{TypeName: "array", FldName: "val", IsVarlen: true}, Type: &FlagsType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "fs_opt_digits", TypeSize: 1}}, Vals: []uint64{45, 120, 48, 49, 50, 51, 52, 53, 54, 55, 56, 57}}}, }}}, + {Key: StructKey{Name: "fs_opt[\"mode\", array[int8['0':'7']]]"}, Desc: &StructDesc{TypeCommon: TypeCommon{TypeName: "fs_opt[\"mode\", array[int8['0':'7']]]", IsVarlen: true}, Fields: []Type{ + &BufferType{TypeCommon: TypeCommon{TypeName: "stringnoz", FldName: "name", TypeSize: 4}, Kind: 2, Values: []string{"mode"}, NoZ: true}, + &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "eq", TypeSize: 1}}, Val: 61}, + &ArrayType{TypeCommon: TypeCommon{TypeName: "array", FldName: "val", IsVarlen: true}, Type: &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int8", TypeSize: 1}}, Kind: 2, RangeBegin: 48, RangeEnd: 55}}, + }}}, {Key: StructKey{Name: "fs_opt[\"nls\", stringnoz[codepages_names]]"}, Desc: &StructDesc{TypeCommon: TypeCommon{TypeName: "fs_opt[\"nls\", stringnoz[codepages_names]]", IsVarlen: true}, Fields: []Type{ &BufferType{TypeCommon: TypeCommon{TypeName: "stringnoz", FldName: "name", TypeSize: 3}, Kind: 2, Values: []string{"nls"}, NoZ: true}, &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "eq", TypeSize: 1}}, Val: 61}, @@ -3926,7 +3934,7 @@ var structDescs_amd64 = []*KeyedStruct{ &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "eq", TypeSize: 1}}, Val: 61}, &ArrayType{TypeCommon: TypeCommon{TypeName: "array", FldName: "val", IsVarlen: true}, Type: &FlagsType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "fs_opt_digits", TypeSize: 1}}, Vals: []uint64{45, 120, 48, 49, 50, 51, 52, 53, 54, 55, 56, 57}}}, }}}, - {Key: StructKey{Name: "fs_opt[\"uid\", array[int8[0x30:0x37]]]"}, Desc: &StructDesc{TypeCommon: TypeCommon{TypeName: "fs_opt[\"uid\", array[int8[0x30:0x37]]]", IsVarlen: true}, Fields: []Type{ + {Key: StructKey{Name: "fs_opt[\"uid\", array[int8['0':'7']]]"}, Desc: &StructDesc{TypeCommon: TypeCommon{TypeName: "fs_opt[\"uid\", array[int8['0':'7']]]", IsVarlen: true}, Fields: []Type{ &BufferType{TypeCommon: TypeCommon{TypeName: "stringnoz", FldName: "name", TypeSize: 3}, Kind: 2, Values: []string{"uid"}, NoZ: true}, &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "eq", TypeSize: 1}}, Val: 61}, &ArrayType{TypeCommon: TypeCommon{TypeName: "array", FldName: "val", IsVarlen: true}, Type: &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int8", TypeSize: 1}}, Kind: 2, RangeBegin: 48, RangeEnd: 55}}, @@ -3936,7 +3944,7 @@ var structDescs_amd64 = []*KeyedStruct{ &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "eq", TypeSize: 1}}, Val: 61}, &ArrayType{TypeCommon: TypeCommon{TypeName: "array", FldName: "val", IsVarlen: true}, Type: &FlagsType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "fs_opt_digits", TypeSize: 1}}, Vals: []uint64{45, 120, 48, 49, 50, 51, 52, 53, 54, 55, 56, 57}}}, }}}, - {Key: StructKey{Name: "fs_opt[\"umask\", array[int8[0x30:0x37]]]"}, Desc: &StructDesc{TypeCommon: TypeCommon{TypeName: "fs_opt[\"umask\", array[int8[0x30:0x37]]]", IsVarlen: true}, Fields: []Type{ + {Key: StructKey{Name: "fs_opt[\"umask\", array[int8['0':'7']]]"}, Desc: &StructDesc{TypeCommon: TypeCommon{TypeName: "fs_opt[\"umask\", array[int8['0':'7']]]", IsVarlen: true}, Fields: []Type{ &BufferType{TypeCommon: TypeCommon{TypeName: "stringnoz", FldName: "name", TypeSize: 5}, Kind: 2, Values: []string{"umask"}, NoZ: true}, &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "eq", TypeSize: 1}}, Val: 61}, &ArrayType{TypeCommon: TypeCommon{TypeName: "array", FldName: "val", IsVarlen: true}, Type: &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int8", TypeSize: 1}}, Kind: 2, RangeBegin: 48, RangeEnd: 55}}, @@ -3956,6 +3964,10 @@ var structDescs_amd64 = []*KeyedStruct{ &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "eq", TypeSize: 1}}, Val: 61}, &BufferType{TypeCommon: TypeCommon{TypeName: "stringnoz", FldName: "val", IsVarlen: true}, Kind: 2, NoZ: true}, }}}, + {Key: StructKey{Name: "fs_opt_elem[bpf_options]"}, Desc: &StructDesc{TypeCommon: TypeCommon{TypeName: "fs_opt_elem[bpf_options]", IsVarlen: true}, Fields: []Type{ + &UnionType{Key: StructKey{Name: "bpf_options"}, FldName: "elem"}, + &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "comma", TypeSize: 1}}, Val: 44}, + }}}, {Key: StructKey{Name: "fs_opt_elem[btrfs_options]"}, Desc: &StructDesc{TypeCommon: TypeCommon{TypeName: "fs_opt_elem[btrfs_options]", IsVarlen: true}, Fields: []Type{ &UnionType{Key: StructKey{Name: "btrfs_options"}, FldName: "elem"}, &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "comma", TypeSize: 1}}, Val: 44}, @@ -4000,6 +4012,14 @@ var structDescs_amd64 = []*KeyedStruct{ &UnionType{Key: StructKey{Name: "vfat_options"}, FldName: "elem"}, &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "comma", TypeSize: 1}}, Val: 44}, }}}, + {Key: StructKey{Name: "fs_opt_elem[xfs_options]"}, Desc: &StructDesc{TypeCommon: TypeCommon{TypeName: "fs_opt_elem[xfs_options]", IsVarlen: true}, Fields: []Type{ + &UnionType{Key: StructKey{Name: "xfs_options"}, FldName: "elem"}, + &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "comma", TypeSize: 1}}, Val: 44}, + }}}, + {Key: StructKey{Name: "fs_options[bpf_options]"}, Desc: &StructDesc{TypeCommon: TypeCommon{TypeName: "fs_options[bpf_options]", IsVarlen: true}, Fields: []Type{ + &ArrayType{TypeCommon: TypeCommon{TypeName: "array", FldName: "elems", IsVarlen: true}, Type: &StructType{Key: StructKey{Name: "fs_opt_elem[bpf_options]"}}}, + &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "null", TypeSize: 1}}}, + }}}, {Key: StructKey{Name: "fs_options[btrfs_options]"}, Desc: &StructDesc{TypeCommon: TypeCommon{TypeName: "fs_options[btrfs_options]", IsVarlen: true}, Fields: []Type{ &ArrayType{TypeCommon: TypeCommon{TypeName: "array", FldName: "elems", IsVarlen: true}, Type: &StructType{Key: StructKey{Name: "fs_opt_elem[btrfs_options]"}}}, &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "null", TypeSize: 1}}}, @@ -4044,6 +4064,10 @@ var structDescs_amd64 = []*KeyedStruct{ &ArrayType{TypeCommon: TypeCommon{TypeName: "array", FldName: "elems", IsVarlen: true}, Type: &StructType{Key: StructKey{Name: "fs_opt_elem[vfat_options]"}}}, &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "null", TypeSize: 1}}}, }}}, + {Key: StructKey{Name: "fs_options[xfs_options]"}, Desc: &StructDesc{TypeCommon: TypeCommon{TypeName: "fs_options[xfs_options]", IsVarlen: true}, Fields: []Type{ + &ArrayType{TypeCommon: TypeCommon{TypeName: "array", FldName: "elems", IsVarlen: true}, Type: &StructType{Key: StructKey{Name: "fs_opt_elem[xfs_options]"}}}, + &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "null", TypeSize: 1}}}, + }}}, {Key: StructKey{Name: "fsxattr"}, Desc: &StructDesc{TypeCommon: TypeCommon{TypeName: "fsxattr", TypeSize: 32}, Fields: []Type{ &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int32", FldName: "fsx_xflags", TypeSize: 4}}}, &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int32", FldName: "fsx_extsize", TypeSize: 4}}}, @@ -4470,9 +4494,9 @@ var structDescs_amd64 = []*KeyedStruct{ }}}, {Key: StructKey{Name: "hfs_options"}, Desc: &StructDesc{TypeCommon: TypeCommon{TypeName: "hfs_options", IsVarlen: true}, Fields: []Type{ &BufferType{TypeCommon: TypeCommon{TypeName: "stringnoz", FldName: "quiet", TypeSize: 5}, Kind: 2, Values: []string{"quiet"}, NoZ: true}, - &StructType{Key: StructKey{Name: "fs_opt[\"umask\", array[int8[0x30:0x37]]]"}, FldName: "umask"}, - &StructType{Key: StructKey{Name: "fs_opt[\"file_umask\", array[int8[0x30:0x37]]]"}, FldName: "file_umask"}, - &StructType{Key: StructKey{Name: "fs_opt[\"dir_umask\", array[int8[0x30:0x37]]]"}, FldName: "dir_umask"}, + &StructType{Key: StructKey{Name: "fs_opt[\"umask\", array[int8['0':'7']]]"}, FldName: "umask"}, + &StructType{Key: StructKey{Name: "fs_opt[\"file_umask\", array[int8['0':'7']]]"}, FldName: "file_umask"}, + &StructType{Key: StructKey{Name: "fs_opt[\"dir_umask\", array[int8['0':'7']]]"}, FldName: "dir_umask"}, &StructType{Key: StructKey{Name: "fs_opt[\"uid\", array[flags[fs_opt_digits, int8]]]"}, FldName: "uid"}, &StructType{Key: StructKey{Name: "fs_opt[\"gid\", array[flags[fs_opt_digits, int8]]]"}, FldName: "gid"}, &StructType{Key: StructKey{Name: "fs_opt[\"part\", array[flags[fs_opt_digits, int8]]]"}, FldName: "part"}, @@ -4488,7 +4512,7 @@ var structDescs_amd64 = []*KeyedStruct{ &BufferType{TypeCommon: TypeCommon{TypeName: "stringnoz", FldName: "barrier", TypeSize: 7}, Kind: 2, Values: []string{"barrier"}, NoZ: true}, &BufferType{TypeCommon: TypeCommon{TypeName: "stringnoz", FldName: "nobarrier", TypeSize: 9}, Kind: 2, Values: []string{"nobarrier"}, NoZ: true}, &BufferType{TypeCommon: TypeCommon{TypeName: "stringnoz", FldName: "force", TypeSize: 5}, Kind: 2, Values: []string{"force"}, NoZ: true}, - &StructType{Key: StructKey{Name: "fs_opt[\"umask\", array[int8[0x30:0x37]]]"}, FldName: "umask"}, + &StructType{Key: StructKey{Name: "fs_opt[\"umask\", array[int8['0':'7']]]"}, FldName: "umask"}, &StructType{Key: StructKey{Name: "fs_opt[\"type\", array[int8, 4]]"}, FldName: "type"}, &StructType{Key: StructKey{Name: "fs_opt[\"creator\", array[int8, 4]]"}, FldName: "creator"}, &StructType{Key: StructKey{Name: "fs_opt[\"uid\", array[flags[fs_opt_digits, int8]]]"}, FldName: "uid"}, @@ -12774,9 +12798,9 @@ var structDescs_amd64 = []*KeyedStruct{ {Key: StructKey{Name: "ntfs_options"}, Desc: &StructDesc{TypeCommon: TypeCommon{TypeName: "ntfs_options", IsVarlen: true}, Fields: []Type{ &StructType{Key: StructKey{Name: "fs_opt[\"uid\", array[flags[fs_opt_digits, int8]]]"}, FldName: "uid"}, &StructType{Key: StructKey{Name: "fs_opt[\"gid\", array[flags[fs_opt_digits, int8]]]"}, FldName: "gid"}, - &StructType{Key: StructKey{Name: "fs_opt[\"umask\", array[int8[0x30:0x37]]]"}, FldName: "umask"}, - &StructType{Key: StructKey{Name: "fs_opt[\"fmask\", array[int8[0x30:0x37]]]"}, FldName: "fmask"}, - &StructType{Key: StructKey{Name: "fs_opt[\"dmask\", array[int8[0x30:0x37]]]"}, FldName: "dmask"}, + &StructType{Key: StructKey{Name: "fs_opt[\"umask\", array[int8['0':'7']]]"}, FldName: "umask"}, + &StructType{Key: StructKey{Name: "fs_opt[\"fmask\", array[int8['0':'7']]]"}, FldName: "fmask"}, + &StructType{Key: StructKey{Name: "fs_opt[\"dmask\", array[int8['0':'7']]]"}, FldName: "dmask"}, &StructType{Key: StructKey{Name: "fs_opt[\"mft_zone_multiplier\", array[flags[fs_opt_digits, int8]]]"}, FldName: "mft_zone_multiplier"}, &StructType{Key: StructKey{Name: "fs_opt[\"show_sys_files=no\", array[flags[fs_opt_digits, int8]]]"}, FldName: "show_sys_files_no"}, &StructType{Key: StructKey{Name: "fs_opt[\"show_sys_files=yes\", array[flags[fs_opt_digits, int8]]]"}, FldName: "show_sys_files_yes"}, @@ -17881,12 +17905,12 @@ var structDescs_amd64 = []*KeyedStruct{ &BufferType{TypeCommon: TypeCommon{TypeName: "stringnoz", FldName: "nfs", TypeSize: 3}, Kind: 2, Values: []string{"nfs"}, NoZ: true}, &BufferType{TypeCommon: TypeCommon{TypeName: "stringnoz", FldName: "nfs_nostale_ro", TypeSize: 14}, Kind: 2, Values: []string{"nfs=nostale_ro"}, NoZ: true}, &BufferType{TypeCommon: TypeCommon{TypeName: "stringnoz", FldName: "dos1xfloppy", TypeSize: 11}, Kind: 2, Values: []string{"dos1xfloppy"}, NoZ: true}, - &StructType{Key: StructKey{Name: "fs_opt[\"uid\", array[int8[0x30:0x37]]]"}, FldName: "uid"}, - &StructType{Key: StructKey{Name: "fs_opt[\"gid\", array[int8[0x30:0x37]]]"}, FldName: "gid"}, - &StructType{Key: StructKey{Name: "fs_opt[\"umask\", array[int8[0x30:0x37]]]"}, FldName: "umask"}, - &StructType{Key: StructKey{Name: "fs_opt[\"dmask\", array[int8[0x30:0x37]]]"}, FldName: "dmask"}, - &StructType{Key: StructKey{Name: "fs_opt[\"fmask\", array[int8[0x30:0x37]]]"}, FldName: "fmask"}, - &StructType{Key: StructKey{Name: "fs_opt[\"allow_utime\", array[int8[0x30:0x37]]]"}, FldName: "allow_utime"}, + &StructType{Key: StructKey{Name: "fs_opt[\"uid\", array[int8['0':'7']]]"}, FldName: "uid"}, + &StructType{Key: StructKey{Name: "fs_opt[\"gid\", array[int8['0':'7']]]"}, FldName: "gid"}, + &StructType{Key: StructKey{Name: "fs_opt[\"umask\", array[int8['0':'7']]]"}, FldName: "umask"}, + &StructType{Key: StructKey{Name: "fs_opt[\"dmask\", array[int8['0':'7']]]"}, FldName: "dmask"}, + &StructType{Key: StructKey{Name: "fs_opt[\"fmask\", array[int8['0':'7']]]"}, FldName: "fmask"}, + &StructType{Key: StructKey{Name: "fs_opt[\"allow_utime\", array[int8['0':'7']]]"}, FldName: "allow_utime"}, &StructType{Key: StructKey{Name: "fs_opt[\"time_offset\", array[flags[fs_opt_digits, int8]]]"}, FldName: "time_offset"}, &StructType{Key: StructKey{Name: "fs_opt[\"codepage\", stringnoz[codepage_nums]]"}, FldName: "codepage"}, }}}, @@ -27039,6 +27063,13 @@ var syscalls_amd64 = []*Syscall{ &FlagsType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "mount_flags", FldName: "flags", TypeSize: 8}}, Vals: []uint64{4096, 128, 64, 8192, 1024, 4, 2048, 8, 2, 1, 2097152, 32, 32768, 16777216, 16, 16384, 65536, 131072, 262144, 524288, 1048576, 8388608, 33554432}, BitMask: true}, &PtrType{TypeCommon: TypeCommon{TypeName: "buffer", FldName: "data", TypeSize: 8, IsOptional: true}, Type: &BufferType{TypeCommon: TypeCommon{IsVarlen: true}}}, }}, + {NR: 165, Name: "mount$bpf", CallName: "mount", Args: []Type{ + &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "src", TypeSize: 8}}}, + &PtrType{TypeCommon: TypeCommon{TypeName: "ptr", FldName: "dst", TypeSize: 8}, Type: &BufferType{TypeCommon: TypeCommon{TypeName: "filename", IsVarlen: true}, Kind: 3}}, + &PtrType{TypeCommon: TypeCommon{TypeName: "ptr", FldName: "type", TypeSize: 8}, Type: &BufferType{TypeCommon: TypeCommon{TypeName: "string", TypeSize: 4}, Kind: 2, Values: []string{"bpf\x00"}}}, + &FlagsType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "mount_flags", FldName: "flags", TypeSize: 8}}, Vals: []uint64{4096, 128, 64, 8192, 1024, 4, 2048, 8, 2, 1, 2097152, 32, 32768, 16777216, 16, 16384, 65536, 131072, 262144, 524288, 1048576, 8388608, 33554432}, BitMask: true}, + &PtrType{TypeCommon: TypeCommon{TypeName: "ptr", FldName: "opts", TypeSize: 8}, Type: &StructType{Key: StructKey{Name: "fs_options[bpf_options]"}}}, + }}, {NR: 279, Name: "move_pages", CallName: "move_pages", Args: []Type{ &ResourceType{TypeCommon: TypeCommon{TypeName: "pid", FldName: "pid", TypeSize: 4}}, &LenType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "len", FldName: "nr", TypeSize: 8}}, Buf: "pages"}, @@ -31111,7 +31142,7 @@ var syscalls_amd64 = []*Syscall{ &LenType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "len", FldName: "nsegs", TypeSize: 8}}, Buf: "segments"}, &PtrType{TypeCommon: TypeCommon{TypeName: "ptr", FldName: "segments", TypeSize: 8}, Type: &ArrayType{TypeCommon: TypeCommon{TypeName: "array", IsVarlen: true}, Type: &StructType{Key: StructKey{Name: "fs_image_segment"}}}}, &FlagsType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "mount_flags", FldName: "flags", TypeSize: 8}}, Vals: []uint64{4096, 128, 64, 8192, 1024, 4, 2048, 8, 2, 1, 2097152, 32, 32768, 16777216, 16, 16384, 65536, 131072, 262144, 524288, 1048576, 8388608, 33554432}, BitMask: true}, - &PtrType{TypeCommon: TypeCommon{TypeName: "ptr", FldName: "opts", TypeSize: 8}, Type: &UnionType{Key: StructKey{Name: "xfs_options"}}}, + &PtrType{TypeCommon: TypeCommon{TypeName: "ptr", FldName: "opts", TypeSize: 8}, Type: &StructType{Key: StructKey{Name: "fs_options[xfs_options]"}}}, }}, {Name: "syz_open_dev$CDROM_DEV_LINK", CallName: "syz_open_dev", Args: []Type{ &PtrType{TypeCommon: TypeCommon{TypeName: "ptr", FldName: "dev", TypeSize: 8}, Type: &BufferType{TypeCommon: TypeCommon{TypeName: "string", TypeSize: 11}, Kind: 2, Values: []string{"/dev/cdrom\x00"}}}, @@ -37782,4 +37813,4 @@ var consts_amd64 = []ConstValue{ {Name: "bpf_insn_load_imm_dw", Value: 24}, } -const revision_amd64 = "9b691ef1ad3871279dddf35bbadcb13736803e01" +const revision_amd64 = "09c93afce4c1b5753d5a4089a40d0f59fd6d1fe4" diff --git a/sys/linux/gen/arm.go b/sys/linux/gen/arm.go index 5bcc80fa4..b1404a762 100644 --- a/sys/linux/gen/arm.go +++ b/sys/linux/gen/arm.go @@ -820,6 +820,9 @@ var structDescs_arm = []*KeyedStruct{ &ResourceType{TypeCommon: TypeCommon{TypeName: "fd_bpf_prog", FldName: "fd", TypeSize: 4}}, &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "pad", TypeSize: 4}}, IsPad: true}, }}}, + {Key: StructKey{Name: "bpf_options"}, Desc: &StructDesc{TypeCommon: TypeCommon{TypeName: "bpf_options", IsVarlen: true}, Fields: []Type{ + &StructType{Key: StructKey{Name: "fs_opt[\"mode\", array[int8['0':'7']]]"}, FldName: "mode"}, + }}}, {Key: StructKey{Name: "bpf_prog"}, Desc: &StructDesc{TypeCommon: TypeCommon{TypeName: "bpf_prog", TypeSize: 72}, Fields: []Type{ &FlagsType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "bpf_prog_type", FldName: "type", TypeSize: 4}}, Vals: []uint64{1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18}}, &LenType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "bytesize8", FldName: "ninsn", TypeSize: 4}}, BitSize: 64, Buf: "insns"}, @@ -3460,7 +3463,7 @@ var structDescs_arm = []*KeyedStruct{ &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "eq", TypeSize: 1}}, Val: 61}, &ArrayType{TypeCommon: TypeCommon{TypeName: "array", FldName: "val", IsVarlen: true}, Type: &FlagsType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "fs_opt_digits_suffix", TypeSize: 1}}, Vals: []uint64{45, 120, 48, 49, 50, 51, 52, 53, 54, 55, 56, 57, 107, 109, 103, 116, 112, 101}}}, }}}, - {Key: StructKey{Name: "fs_opt[\"allow_utime\", array[int8[0x30:0x37]]]"}, Desc: &StructDesc{TypeCommon: TypeCommon{TypeName: "fs_opt[\"allow_utime\", array[int8[0x30:0x37]]]", IsVarlen: true}, Fields: []Type{ + {Key: StructKey{Name: "fs_opt[\"allow_utime\", array[int8['0':'7']]]"}, Desc: &StructDesc{TypeCommon: TypeCommon{TypeName: "fs_opt[\"allow_utime\", array[int8['0':'7']]]", IsVarlen: true}, Fields: []Type{ &BufferType{TypeCommon: TypeCommon{TypeName: "stringnoz", FldName: "name", TypeSize: 11}, Kind: 2, Values: []string{"allow_utime"}, NoZ: true}, &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "eq", TypeSize: 1}}, Val: 61}, &ArrayType{TypeCommon: TypeCommon{TypeName: "array", FldName: "val", IsVarlen: true}, Type: &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int8", TypeSize: 1}}, Kind: 2, RangeBegin: 48, RangeEnd: 55}}, @@ -3540,7 +3543,7 @@ var structDescs_arm = []*KeyedStruct{ &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "eq", TypeSize: 1}}, Val: 61}, &BufferType{TypeCommon: TypeCommon{TypeName: "filename", FldName: "val", IsVarlen: true}, Kind: 3, NoZ: true}, }}}, - {Key: StructKey{Name: "fs_opt[\"dir_umask\", array[int8[0x30:0x37]]]"}, Desc: &StructDesc{TypeCommon: TypeCommon{TypeName: "fs_opt[\"dir_umask\", array[int8[0x30:0x37]]]", IsVarlen: true}, Fields: []Type{ + {Key: StructKey{Name: "fs_opt[\"dir_umask\", array[int8['0':'7']]]"}, Desc: &StructDesc{TypeCommon: TypeCommon{TypeName: "fs_opt[\"dir_umask\", array[int8['0':'7']]]", IsVarlen: true}, Fields: []Type{ &BufferType{TypeCommon: TypeCommon{TypeName: "stringnoz", FldName: "name", TypeSize: 9}, Kind: 2, Values: []string{"dir_umask"}, NoZ: true}, &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "eq", TypeSize: 1}}, Val: 61}, &ArrayType{TypeCommon: TypeCommon{TypeName: "array", FldName: "val", IsVarlen: true}, Type: &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int8", TypeSize: 1}}, Kind: 2, RangeBegin: 48, RangeEnd: 55}}, @@ -3560,7 +3563,7 @@ var structDescs_arm = []*KeyedStruct{ &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "eq", TypeSize: 1}}, Val: 61}, &ArrayType{TypeCommon: TypeCommon{TypeName: "array", FldName: "val", IsVarlen: true}, Type: &FlagsType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "fs_opt_digits", TypeSize: 1}}, Vals: []uint64{45, 120, 48, 49, 50, 51, 52, 53, 54, 55, 56, 57}}}, }}}, - {Key: StructKey{Name: "fs_opt[\"dmask\", array[int8[0x30:0x37]]]"}, Desc: &StructDesc{TypeCommon: TypeCommon{TypeName: "fs_opt[\"dmask\", array[int8[0x30:0x37]]]", IsVarlen: true}, Fields: []Type{ + {Key: StructKey{Name: "fs_opt[\"dmask\", array[int8['0':'7']]]"}, Desc: &StructDesc{TypeCommon: TypeCommon{TypeName: "fs_opt[\"dmask\", array[int8['0':'7']]]", IsVarlen: true}, Fields: []Type{ &BufferType{TypeCommon: TypeCommon{TypeName: "stringnoz", FldName: "name", TypeSize: 5}, Kind: 2, Values: []string{"dmask"}, NoZ: true}, &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "eq", TypeSize: 1}}, Val: 61}, &ArrayType{TypeCommon: TypeCommon{TypeName: "array", FldName: "val", IsVarlen: true}, Type: &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int8", TypeSize: 1}}, Kind: 2, RangeBegin: 48, RangeEnd: 55}}, @@ -3570,12 +3573,12 @@ var structDescs_arm = []*KeyedStruct{ &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "eq", TypeSize: 1}}, Val: 61}, &ArrayType{TypeCommon: TypeCommon{TypeName: "array", FldName: "val", IsVarlen: true}, Type: &FlagsType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "fs_opt_digits", TypeSize: 1}}, Vals: []uint64{45, 120, 48, 49, 50, 51, 52, 53, 54, 55, 56, 57}}}, }}}, - {Key: StructKey{Name: "fs_opt[\"file_umask\", array[int8[0x30:0x37]]]"}, Desc: &StructDesc{TypeCommon: TypeCommon{TypeName: "fs_opt[\"file_umask\", array[int8[0x30:0x37]]]", IsVarlen: true}, Fields: []Type{ + {Key: StructKey{Name: "fs_opt[\"file_umask\", array[int8['0':'7']]]"}, Desc: &StructDesc{TypeCommon: TypeCommon{TypeName: "fs_opt[\"file_umask\", array[int8['0':'7']]]", IsVarlen: true}, Fields: []Type{ &BufferType{TypeCommon: TypeCommon{TypeName: "stringnoz", FldName: "name", TypeSize: 10}, Kind: 2, Values: []string{"file_umask"}, NoZ: true}, &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "eq", TypeSize: 1}}, Val: 61}, &ArrayType{TypeCommon: TypeCommon{TypeName: "array", FldName: "val", IsVarlen: true}, Type: &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int8", TypeSize: 1}}, Kind: 2, RangeBegin: 48, RangeEnd: 55}}, }}}, - {Key: StructKey{Name: "fs_opt[\"fmask\", array[int8[0x30:0x37]]]"}, Desc: &StructDesc{TypeCommon: TypeCommon{TypeName: "fs_opt[\"fmask\", array[int8[0x30:0x37]]]", IsVarlen: true}, Fields: []Type{ + {Key: StructKey{Name: "fs_opt[\"fmask\", array[int8['0':'7']]]"}, Desc: &StructDesc{TypeCommon: TypeCommon{TypeName: "fs_opt[\"fmask\", array[int8['0':'7']]]", IsVarlen: true}, Fields: []Type{ &BufferType{TypeCommon: TypeCommon{TypeName: "stringnoz", FldName: "name", TypeSize: 5}, Kind: 2, Values: []string{"fmask"}, NoZ: true}, &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "eq", TypeSize: 1}}, Val: 61}, &ArrayType{TypeCommon: TypeCommon{TypeName: "array", FldName: "val", IsVarlen: true}, Type: &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int8", TypeSize: 1}}, Kind: 2, RangeBegin: 48, RangeEnd: 55}}, @@ -3585,7 +3588,7 @@ var structDescs_arm = []*KeyedStruct{ &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "eq", TypeSize: 1}}, Val: 61}, &ArrayType{TypeCommon: TypeCommon{TypeName: "array", FldName: "val", IsVarlen: true}, Type: &FlagsType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "fs_opt_digits", TypeSize: 1}}, Vals: []uint64{45, 120, 48, 49, 50, 51, 52, 53, 54, 55, 56, 57}}}, }}}, - {Key: StructKey{Name: "fs_opt[\"gid\", array[int8[0x30:0x37]]]"}, Desc: &StructDesc{TypeCommon: TypeCommon{TypeName: "fs_opt[\"gid\", array[int8[0x30:0x37]]]", IsVarlen: true}, Fields: []Type{ + {Key: StructKey{Name: "fs_opt[\"gid\", array[int8['0':'7']]]"}, Desc: &StructDesc{TypeCommon: TypeCommon{TypeName: "fs_opt[\"gid\", array[int8['0':'7']]]", IsVarlen: true}, Fields: []Type{ &BufferType{TypeCommon: TypeCommon{TypeName: "stringnoz", FldName: "name", TypeSize: 3}, Kind: 2, Values: []string{"gid"}, NoZ: true}, &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "eq", TypeSize: 1}}, Val: 61}, &ArrayType{TypeCommon: TypeCommon{TypeName: "array", FldName: "val", IsVarlen: true}, Type: &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int8", TypeSize: 1}}, Kind: 2, RangeBegin: 48, RangeEnd: 55}}, @@ -3710,6 +3713,11 @@ var structDescs_arm = []*KeyedStruct{ &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "eq", TypeSize: 1}}, Val: 61}, &ArrayType{TypeCommon: TypeCommon{TypeName: "array", FldName: "val", IsVarlen: true}, Type: &FlagsType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "fs_opt_digits", TypeSize: 1}}, Vals: []uint64{45, 120, 48, 49, 50, 51, 52, 53, 54, 55, 56, 57}}}, }}}, + {Key: StructKey{Name: "fs_opt[\"mode\", array[int8['0':'7']]]"}, Desc: &StructDesc{TypeCommon: TypeCommon{TypeName: "fs_opt[\"mode\", array[int8['0':'7']]]", IsVarlen: true}, Fields: []Type{ + &BufferType{TypeCommon: TypeCommon{TypeName: "stringnoz", FldName: "name", TypeSize: 4}, Kind: 2, Values: []string{"mode"}, NoZ: true}, + &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "eq", TypeSize: 1}}, Val: 61}, + &ArrayType{TypeCommon: TypeCommon{TypeName: "array", FldName: "val", IsVarlen: true}, Type: &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int8", TypeSize: 1}}, Kind: 2, RangeBegin: 48, RangeEnd: 55}}, + }}}, {Key: StructKey{Name: "fs_opt[\"nls\", stringnoz[codepages_names]]"}, Desc: &StructDesc{TypeCommon: TypeCommon{TypeName: "fs_opt[\"nls\", stringnoz[codepages_names]]", IsVarlen: true}, Fields: []Type{ &BufferType{TypeCommon: TypeCommon{TypeName: "stringnoz", FldName: "name", TypeSize: 3}, Kind: 2, Values: []string{"nls"}, NoZ: true}, &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "eq", TypeSize: 1}}, Val: 61}, @@ -3845,7 +3853,7 @@ var structDescs_arm = []*KeyedStruct{ &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "eq", TypeSize: 1}}, Val: 61}, &ArrayType{TypeCommon: TypeCommon{TypeName: "array", FldName: "val", IsVarlen: true}, Type: &FlagsType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "fs_opt_digits", TypeSize: 1}}, Vals: []uint64{45, 120, 48, 49, 50, 51, 52, 53, 54, 55, 56, 57}}}, }}}, - {Key: StructKey{Name: "fs_opt[\"uid\", array[int8[0x30:0x37]]]"}, Desc: &StructDesc{TypeCommon: TypeCommon{TypeName: "fs_opt[\"uid\", array[int8[0x30:0x37]]]", IsVarlen: true}, Fields: []Type{ + {Key: StructKey{Name: "fs_opt[\"uid\", array[int8['0':'7']]]"}, Desc: &StructDesc{TypeCommon: TypeCommon{TypeName: "fs_opt[\"uid\", array[int8['0':'7']]]", IsVarlen: true}, Fields: []Type{ &BufferType{TypeCommon: TypeCommon{TypeName: "stringnoz", FldName: "name", TypeSize: 3}, Kind: 2, Values: []string{"uid"}, NoZ: true}, &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "eq", TypeSize: 1}}, Val: 61}, &ArrayType{TypeCommon: TypeCommon{TypeName: "array", FldName: "val", IsVarlen: true}, Type: &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int8", TypeSize: 1}}, Kind: 2, RangeBegin: 48, RangeEnd: 55}}, @@ -3855,7 +3863,7 @@ var structDescs_arm = []*KeyedStruct{ &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "eq", TypeSize: 1}}, Val: 61}, &ArrayType{TypeCommon: TypeCommon{TypeName: "array", FldName: "val", IsVarlen: true}, Type: &FlagsType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "fs_opt_digits", TypeSize: 1}}, Vals: []uint64{45, 120, 48, 49, 50, 51, 52, 53, 54, 55, 56, 57}}}, }}}, - {Key: StructKey{Name: "fs_opt[\"umask\", array[int8[0x30:0x37]]]"}, Desc: &StructDesc{TypeCommon: TypeCommon{TypeName: "fs_opt[\"umask\", array[int8[0x30:0x37]]]", IsVarlen: true}, Fields: []Type{ + {Key: StructKey{Name: "fs_opt[\"umask\", array[int8['0':'7']]]"}, Desc: &StructDesc{TypeCommon: TypeCommon{TypeName: "fs_opt[\"umask\", array[int8['0':'7']]]", IsVarlen: true}, Fields: []Type{ &BufferType{TypeCommon: TypeCommon{TypeName: "stringnoz", FldName: "name", TypeSize: 5}, Kind: 2, Values: []string{"umask"}, NoZ: true}, &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "eq", TypeSize: 1}}, Val: 61}, &ArrayType{TypeCommon: TypeCommon{TypeName: "array", FldName: "val", IsVarlen: true}, Type: &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int8", TypeSize: 1}}, Kind: 2, RangeBegin: 48, RangeEnd: 55}}, @@ -3875,6 +3883,10 @@ var structDescs_arm = []*KeyedStruct{ &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "eq", TypeSize: 1}}, Val: 61}, &BufferType{TypeCommon: TypeCommon{TypeName: "stringnoz", FldName: "val", IsVarlen: true}, Kind: 2, NoZ: true}, }}}, + {Key: StructKey{Name: "fs_opt_elem[bpf_options]"}, Desc: &StructDesc{TypeCommon: TypeCommon{TypeName: "fs_opt_elem[bpf_options]", IsVarlen: true}, Fields: []Type{ + &UnionType{Key: StructKey{Name: "bpf_options"}, FldName: "elem"}, + &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "comma", TypeSize: 1}}, Val: 44}, + }}}, {Key: StructKey{Name: "fs_opt_elem[btrfs_options]"}, Desc: &StructDesc{TypeCommon: TypeCommon{TypeName: "fs_opt_elem[btrfs_options]", IsVarlen: true}, Fields: []Type{ &UnionType{Key: StructKey{Name: "btrfs_options"}, FldName: "elem"}, &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "comma", TypeSize: 1}}, Val: 44}, @@ -3919,6 +3931,14 @@ var structDescs_arm = []*KeyedStruct{ &UnionType{Key: StructKey{Name: "vfat_options"}, FldName: "elem"}, &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "comma", TypeSize: 1}}, Val: 44}, }}}, + {Key: StructKey{Name: "fs_opt_elem[xfs_options]"}, Desc: &StructDesc{TypeCommon: TypeCommon{TypeName: "fs_opt_elem[xfs_options]", IsVarlen: true}, Fields: []Type{ + &UnionType{Key: StructKey{Name: "xfs_options"}, FldName: "elem"}, + &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "comma", TypeSize: 1}}, Val: 44}, + }}}, + {Key: StructKey{Name: "fs_options[bpf_options]"}, Desc: &StructDesc{TypeCommon: TypeCommon{TypeName: "fs_options[bpf_options]", IsVarlen: true}, Fields: []Type{ + &ArrayType{TypeCommon: TypeCommon{TypeName: "array", FldName: "elems", IsVarlen: true}, Type: &StructType{Key: StructKey{Name: "fs_opt_elem[bpf_options]"}}}, + &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "null", TypeSize: 1}}}, + }}}, {Key: StructKey{Name: "fs_options[btrfs_options]"}, Desc: &StructDesc{TypeCommon: TypeCommon{TypeName: "fs_options[btrfs_options]", IsVarlen: true}, Fields: []Type{ &ArrayType{TypeCommon: TypeCommon{TypeName: "array", FldName: "elems", IsVarlen: true}, Type: &StructType{Key: StructKey{Name: "fs_opt_elem[btrfs_options]"}}}, &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "null", TypeSize: 1}}}, @@ -3963,6 +3983,10 @@ var structDescs_arm = []*KeyedStruct{ &ArrayType{TypeCommon: TypeCommon{TypeName: "array", FldName: "elems", IsVarlen: true}, Type: &StructType{Key: StructKey{Name: "fs_opt_elem[vfat_options]"}}}, &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "null", TypeSize: 1}}}, }}}, + {Key: StructKey{Name: "fs_options[xfs_options]"}, Desc: &StructDesc{TypeCommon: TypeCommon{TypeName: "fs_options[xfs_options]", IsVarlen: true}, Fields: []Type{ + &ArrayType{TypeCommon: TypeCommon{TypeName: "array", FldName: "elems", IsVarlen: true}, Type: &StructType{Key: StructKey{Name: "fs_opt_elem[xfs_options]"}}}, + &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "null", TypeSize: 1}}}, + }}}, {Key: StructKey{Name: "fsxattr"}, Desc: &StructDesc{TypeCommon: TypeCommon{TypeName: "fsxattr", TypeSize: 32}, Fields: []Type{ &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int32", FldName: "fsx_xflags", TypeSize: 4}}}, &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int32", FldName: "fsx_extsize", TypeSize: 4}}}, @@ -4382,9 +4406,9 @@ var structDescs_arm = []*KeyedStruct{ }}}, {Key: StructKey{Name: "hfs_options"}, Desc: &StructDesc{TypeCommon: TypeCommon{TypeName: "hfs_options", IsVarlen: true}, Fields: []Type{ &BufferType{TypeCommon: TypeCommon{TypeName: "stringnoz", FldName: "quiet", TypeSize: 5}, Kind: 2, Values: []string{"quiet"}, NoZ: true}, - &StructType{Key: StructKey{Name: "fs_opt[\"umask\", array[int8[0x30:0x37]]]"}, FldName: "umask"}, - &StructType{Key: StructKey{Name: "fs_opt[\"file_umask\", array[int8[0x30:0x37]]]"}, FldName: "file_umask"}, - &StructType{Key: StructKey{Name: "fs_opt[\"dir_umask\", array[int8[0x30:0x37]]]"}, FldName: "dir_umask"}, + &StructType{Key: StructKey{Name: "fs_opt[\"umask\", array[int8['0':'7']]]"}, FldName: "umask"}, + &StructType{Key: StructKey{Name: "fs_opt[\"file_umask\", array[int8['0':'7']]]"}, FldName: "file_umask"}, + &StructType{Key: StructKey{Name: "fs_opt[\"dir_umask\", array[int8['0':'7']]]"}, FldName: "dir_umask"}, &StructType{Key: StructKey{Name: "fs_opt[\"uid\", array[flags[fs_opt_digits, int8]]]"}, FldName: "uid"}, &StructType{Key: StructKey{Name: "fs_opt[\"gid\", array[flags[fs_opt_digits, int8]]]"}, FldName: "gid"}, &StructType{Key: StructKey{Name: "fs_opt[\"part\", array[flags[fs_opt_digits, int8]]]"}, FldName: "part"}, @@ -4400,7 +4424,7 @@ var structDescs_arm = []*KeyedStruct{ &BufferType{TypeCommon: TypeCommon{TypeName: "stringnoz", FldName: "barrier", TypeSize: 7}, Kind: 2, Values: []string{"barrier"}, NoZ: true}, &BufferType{TypeCommon: TypeCommon{TypeName: "stringnoz", FldName: "nobarrier", TypeSize: 9}, Kind: 2, Values: []string{"nobarrier"}, NoZ: true}, &BufferType{TypeCommon: TypeCommon{TypeName: "stringnoz", FldName: "force", TypeSize: 5}, Kind: 2, Values: []string{"force"}, NoZ: true}, - &StructType{Key: StructKey{Name: "fs_opt[\"umask\", array[int8[0x30:0x37]]]"}, FldName: "umask"}, + &StructType{Key: StructKey{Name: "fs_opt[\"umask\", array[int8['0':'7']]]"}, FldName: "umask"}, &StructType{Key: StructKey{Name: "fs_opt[\"type\", array[int8, 4]]"}, FldName: "type"}, &StructType{Key: StructKey{Name: "fs_opt[\"creator\", array[int8, 4]]"}, FldName: "creator"}, &StructType{Key: StructKey{Name: "fs_opt[\"uid\", array[flags[fs_opt_digits, int8]]]"}, FldName: "uid"}, @@ -12399,9 +12423,9 @@ var structDescs_arm = []*KeyedStruct{ {Key: StructKey{Name: "ntfs_options"}, Desc: &StructDesc{TypeCommon: TypeCommon{TypeName: "ntfs_options", IsVarlen: true}, Fields: []Type{ &StructType{Key: StructKey{Name: "fs_opt[\"uid\", array[flags[fs_opt_digits, int8]]]"}, FldName: "uid"}, &StructType{Key: StructKey{Name: "fs_opt[\"gid\", array[flags[fs_opt_digits, int8]]]"}, FldName: "gid"}, - &StructType{Key: StructKey{Name: "fs_opt[\"umask\", array[int8[0x30:0x37]]]"}, FldName: "umask"}, - &StructType{Key: StructKey{Name: "fs_opt[\"fmask\", array[int8[0x30:0x37]]]"}, FldName: "fmask"}, - &StructType{Key: StructKey{Name: "fs_opt[\"dmask\", array[int8[0x30:0x37]]]"}, FldName: "dmask"}, + &StructType{Key: StructKey{Name: "fs_opt[\"umask\", array[int8['0':'7']]]"}, FldName: "umask"}, + &StructType{Key: StructKey{Name: "fs_opt[\"fmask\", array[int8['0':'7']]]"}, FldName: "fmask"}, + &StructType{Key: StructKey{Name: "fs_opt[\"dmask\", array[int8['0':'7']]]"}, FldName: "dmask"}, &StructType{Key: StructKey{Name: "fs_opt[\"mft_zone_multiplier\", array[flags[fs_opt_digits, int8]]]"}, FldName: "mft_zone_multiplier"}, &StructType{Key: StructKey{Name: "fs_opt[\"show_sys_files=no\", array[flags[fs_opt_digits, int8]]]"}, FldName: "show_sys_files_no"}, &StructType{Key: StructKey{Name: "fs_opt[\"show_sys_files=yes\", array[flags[fs_opt_digits, int8]]]"}, FldName: "show_sys_files_yes"}, @@ -17409,12 +17433,12 @@ var structDescs_arm = []*KeyedStruct{ &BufferType{TypeCommon: TypeCommon{TypeName: "stringnoz", FldName: "nfs", TypeSize: 3}, Kind: 2, Values: []string{"nfs"}, NoZ: true}, &BufferType{TypeCommon: TypeCommon{TypeName: "stringnoz", FldName: "nfs_nostale_ro", TypeSize: 14}, Kind: 2, Values: []string{"nfs=nostale_ro"}, NoZ: true}, &BufferType{TypeCommon: TypeCommon{TypeName: "stringnoz", FldName: "dos1xfloppy", TypeSize: 11}, Kind: 2, Values: []string{"dos1xfloppy"}, NoZ: true}, - &StructType{Key: StructKey{Name: "fs_opt[\"uid\", array[int8[0x30:0x37]]]"}, FldName: "uid"}, - &StructType{Key: StructKey{Name: "fs_opt[\"gid\", array[int8[0x30:0x37]]]"}, FldName: "gid"}, - &StructType{Key: StructKey{Name: "fs_opt[\"umask\", array[int8[0x30:0x37]]]"}, FldName: "umask"}, - &StructType{Key: StructKey{Name: "fs_opt[\"dmask\", array[int8[0x30:0x37]]]"}, FldName: "dmask"}, - &StructType{Key: StructKey{Name: "fs_opt[\"fmask\", array[int8[0x30:0x37]]]"}, FldName: "fmask"}, - &StructType{Key: StructKey{Name: "fs_opt[\"allow_utime\", array[int8[0x30:0x37]]]"}, FldName: "allow_utime"}, + &StructType{Key: StructKey{Name: "fs_opt[\"uid\", array[int8['0':'7']]]"}, FldName: "uid"}, + &StructType{Key: StructKey{Name: "fs_opt[\"gid\", array[int8['0':'7']]]"}, FldName: "gid"}, + &StructType{Key: StructKey{Name: "fs_opt[\"umask\", array[int8['0':'7']]]"}, FldName: "umask"}, + &StructType{Key: StructKey{Name: "fs_opt[\"dmask\", array[int8['0':'7']]]"}, FldName: "dmask"}, + &StructType{Key: StructKey{Name: "fs_opt[\"fmask\", array[int8['0':'7']]]"}, FldName: "fmask"}, + &StructType{Key: StructKey{Name: "fs_opt[\"allow_utime\", array[int8['0':'7']]]"}, FldName: "allow_utime"}, &StructType{Key: StructKey{Name: "fs_opt[\"time_offset\", array[flags[fs_opt_digits, int8]]]"}, FldName: "time_offset"}, &StructType{Key: StructKey{Name: "fs_opt[\"codepage\", stringnoz[codepage_nums]]"}, FldName: "codepage"}, }}}, @@ -26302,6 +26326,13 @@ var syscalls_arm = []*Syscall{ &FlagsType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "mount_flags", FldName: "flags", TypeSize: 4}}, Vals: []uint64{4096, 128, 64, 8192, 1024, 4, 2048, 8, 2, 1, 2097152, 32, 32768, 16777216, 16, 16384, 65536, 131072, 262144, 524288, 1048576, 8388608, 33554432}, BitMask: true}, &PtrType{TypeCommon: TypeCommon{TypeName: "buffer", FldName: "data", TypeSize: 4, IsOptional: true}, Type: &BufferType{TypeCommon: TypeCommon{IsVarlen: true}}}, }}, + {NR: 21, Name: "mount$bpf", CallName: "mount", Args: []Type{ + &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "src", TypeSize: 4}}}, + &PtrType{TypeCommon: TypeCommon{TypeName: "ptr", FldName: "dst", TypeSize: 4}, Type: &BufferType{TypeCommon: TypeCommon{TypeName: "filename", IsVarlen: true}, Kind: 3}}, + &PtrType{TypeCommon: TypeCommon{TypeName: "ptr", FldName: "type", TypeSize: 4}, Type: &BufferType{TypeCommon: TypeCommon{TypeName: "string", TypeSize: 4}, Kind: 2, Values: []string{"bpf\x00"}}}, + &FlagsType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "mount_flags", FldName: "flags", TypeSize: 4}}, Vals: []uint64{4096, 128, 64, 8192, 1024, 4, 2048, 8, 2, 1, 2097152, 32, 32768, 16777216, 16, 16384, 65536, 131072, 262144, 524288, 1048576, 8388608, 33554432}, BitMask: true}, + &PtrType{TypeCommon: TypeCommon{TypeName: "ptr", FldName: "opts", TypeSize: 4}, Type: &StructType{Key: StructKey{Name: "fs_options[bpf_options]"}}}, + }}, {NR: 344, Name: "move_pages", CallName: "move_pages", Args: []Type{ &ResourceType{TypeCommon: TypeCommon{TypeName: "pid", FldName: "pid", TypeSize: 4}}, &LenType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "len", FldName: "nr", TypeSize: 4}}, Buf: "pages"}, @@ -30364,7 +30395,7 @@ var syscalls_arm = []*Syscall{ &LenType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "len", FldName: "nsegs", TypeSize: 4}}, Buf: "segments"}, &PtrType{TypeCommon: TypeCommon{TypeName: "ptr", FldName: "segments", TypeSize: 4}, Type: &ArrayType{TypeCommon: TypeCommon{TypeName: "array", IsVarlen: true}, Type: &StructType{Key: StructKey{Name: "fs_image_segment"}}}}, &FlagsType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "mount_flags", FldName: "flags", TypeSize: 4}}, Vals: []uint64{4096, 128, 64, 8192, 1024, 4, 2048, 8, 2, 1, 2097152, 32, 32768, 16777216, 16, 16384, 65536, 131072, 262144, 524288, 1048576, 8388608, 33554432}, BitMask: true}, - &PtrType{TypeCommon: TypeCommon{TypeName: "ptr", FldName: "opts", TypeSize: 4}, Type: &UnionType{Key: StructKey{Name: "xfs_options"}}}, + &PtrType{TypeCommon: TypeCommon{TypeName: "ptr", FldName: "opts", TypeSize: 4}, Type: &StructType{Key: StructKey{Name: "fs_options[xfs_options]"}}}, }}, {Name: "syz_open_dev$CDROM_DEV_LINK", CallName: "syz_open_dev", Args: []Type{ &PtrType{TypeCommon: TypeCommon{TypeName: "ptr", FldName: "dev", TypeSize: 4}, Type: &BufferType{TypeCommon: TypeCommon{TypeName: "string", TypeSize: 11}, Kind: 2, Values: []string{"/dev/cdrom\x00"}}}, @@ -36953,4 +36984,4 @@ var consts_arm = []ConstValue{ {Name: "bpf_insn_load_imm_dw", Value: 24}, } -const revision_arm = "2d48f7b04fa6aa40cf950630cc96b02d6a248012" +const revision_arm = "a396da016f3f7925820e5eceae43d819dac7948e" diff --git a/sys/linux/gen/arm64.go b/sys/linux/gen/arm64.go index 12d42df79..11b323d6c 100644 --- a/sys/linux/gen/arm64.go +++ b/sys/linux/gen/arm64.go @@ -823,6 +823,9 @@ var structDescs_arm64 = []*KeyedStruct{ &ResourceType{TypeCommon: TypeCommon{TypeName: "fd_bpf_prog", FldName: "fd", TypeSize: 4}}, &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "pad", TypeSize: 4}}, IsPad: true}, }}}, + {Key: StructKey{Name: "bpf_options"}, Desc: &StructDesc{TypeCommon: TypeCommon{TypeName: "bpf_options", IsVarlen: true}, Fields: []Type{ + &StructType{Key: StructKey{Name: "fs_opt[\"mode\", array[int8['0':'7']]]"}, FldName: "mode"}, + }}}, {Key: StructKey{Name: "bpf_prog"}, Desc: &StructDesc{TypeCommon: TypeCommon{TypeName: "bpf_prog", TypeSize: 72}, Fields: []Type{ &FlagsType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "bpf_prog_type", FldName: "type", TypeSize: 4}}, Vals: []uint64{1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18}}, &LenType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "bytesize8", FldName: "ninsn", TypeSize: 4}}, BitSize: 64, Buf: "insns"}, @@ -3541,7 +3544,7 @@ var structDescs_arm64 = []*KeyedStruct{ &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "eq", TypeSize: 1}}, Val: 61}, &ArrayType{TypeCommon: TypeCommon{TypeName: "array", FldName: "val", IsVarlen: true}, Type: &FlagsType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "fs_opt_digits_suffix", TypeSize: 1}}, Vals: []uint64{45, 120, 48, 49, 50, 51, 52, 53, 54, 55, 56, 57, 107, 109, 103, 116, 112, 101}}}, }}}, - {Key: StructKey{Name: "fs_opt[\"allow_utime\", array[int8[0x30:0x37]]]"}, Desc: &StructDesc{TypeCommon: TypeCommon{TypeName: "fs_opt[\"allow_utime\", array[int8[0x30:0x37]]]", IsVarlen: true}, Fields: []Type{ + {Key: StructKey{Name: "fs_opt[\"allow_utime\", array[int8['0':'7']]]"}, Desc: &StructDesc{TypeCommon: TypeCommon{TypeName: "fs_opt[\"allow_utime\", array[int8['0':'7']]]", IsVarlen: true}, Fields: []Type{ &BufferType{TypeCommon: TypeCommon{TypeName: "stringnoz", FldName: "name", TypeSize: 11}, Kind: 2, Values: []string{"allow_utime"}, NoZ: true}, &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "eq", TypeSize: 1}}, Val: 61}, &ArrayType{TypeCommon: TypeCommon{TypeName: "array", FldName: "val", IsVarlen: true}, Type: &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int8", TypeSize: 1}}, Kind: 2, RangeBegin: 48, RangeEnd: 55}}, @@ -3621,7 +3624,7 @@ var structDescs_arm64 = []*KeyedStruct{ &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "eq", TypeSize: 1}}, Val: 61}, &BufferType{TypeCommon: TypeCommon{TypeName: "filename", FldName: "val", IsVarlen: true}, Kind: 3, NoZ: true}, }}}, - {Key: StructKey{Name: "fs_opt[\"dir_umask\", array[int8[0x30:0x37]]]"}, Desc: &StructDesc{TypeCommon: TypeCommon{TypeName: "fs_opt[\"dir_umask\", array[int8[0x30:0x37]]]", IsVarlen: true}, Fields: []Type{ + {Key: StructKey{Name: "fs_opt[\"dir_umask\", array[int8['0':'7']]]"}, Desc: &StructDesc{TypeCommon: TypeCommon{TypeName: "fs_opt[\"dir_umask\", array[int8['0':'7']]]", IsVarlen: true}, Fields: []Type{ &BufferType{TypeCommon: TypeCommon{TypeName: "stringnoz", FldName: "name", TypeSize: 9}, Kind: 2, Values: []string{"dir_umask"}, NoZ: true}, &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "eq", TypeSize: 1}}, Val: 61}, &ArrayType{TypeCommon: TypeCommon{TypeName: "array", FldName: "val", IsVarlen: true}, Type: &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int8", TypeSize: 1}}, Kind: 2, RangeBegin: 48, RangeEnd: 55}}, @@ -3641,7 +3644,7 @@ var structDescs_arm64 = []*KeyedStruct{ &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "eq", TypeSize: 1}}, Val: 61}, &ArrayType{TypeCommon: TypeCommon{TypeName: "array", FldName: "val", IsVarlen: true}, Type: &FlagsType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "fs_opt_digits", TypeSize: 1}}, Vals: []uint64{45, 120, 48, 49, 50, 51, 52, 53, 54, 55, 56, 57}}}, }}}, - {Key: StructKey{Name: "fs_opt[\"dmask\", array[int8[0x30:0x37]]]"}, Desc: &StructDesc{TypeCommon: TypeCommon{TypeName: "fs_opt[\"dmask\", array[int8[0x30:0x37]]]", IsVarlen: true}, Fields: []Type{ + {Key: StructKey{Name: "fs_opt[\"dmask\", array[int8['0':'7']]]"}, Desc: &StructDesc{TypeCommon: TypeCommon{TypeName: "fs_opt[\"dmask\", array[int8['0':'7']]]", IsVarlen: true}, Fields: []Type{ &BufferType{TypeCommon: TypeCommon{TypeName: "stringnoz", FldName: "name", TypeSize: 5}, Kind: 2, Values: []string{"dmask"}, NoZ: true}, &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "eq", TypeSize: 1}}, Val: 61}, &ArrayType{TypeCommon: TypeCommon{TypeName: "array", FldName: "val", IsVarlen: true}, Type: &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int8", TypeSize: 1}}, Kind: 2, RangeBegin: 48, RangeEnd: 55}}, @@ -3651,12 +3654,12 @@ var structDescs_arm64 = []*KeyedStruct{ &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "eq", TypeSize: 1}}, Val: 61}, &ArrayType{TypeCommon: TypeCommon{TypeName: "array", FldName: "val", IsVarlen: true}, Type: &FlagsType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "fs_opt_digits", TypeSize: 1}}, Vals: []uint64{45, 120, 48, 49, 50, 51, 52, 53, 54, 55, 56, 57}}}, }}}, - {Key: StructKey{Name: "fs_opt[\"file_umask\", array[int8[0x30:0x37]]]"}, Desc: &StructDesc{TypeCommon: TypeCommon{TypeName: "fs_opt[\"file_umask\", array[int8[0x30:0x37]]]", IsVarlen: true}, Fields: []Type{ + {Key: StructKey{Name: "fs_opt[\"file_umask\", array[int8['0':'7']]]"}, Desc: &StructDesc{TypeCommon: TypeCommon{TypeName: "fs_opt[\"file_umask\", array[int8['0':'7']]]", IsVarlen: true}, Fields: []Type{ &BufferType{TypeCommon: TypeCommon{TypeName: "stringnoz", FldName: "name", TypeSize: 10}, Kind: 2, Values: []string{"file_umask"}, NoZ: true}, &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "eq", TypeSize: 1}}, Val: 61}, &ArrayType{TypeCommon: TypeCommon{TypeName: "array", FldName: "val", IsVarlen: true}, Type: &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int8", TypeSize: 1}}, Kind: 2, RangeBegin: 48, RangeEnd: 55}}, }}}, - {Key: StructKey{Name: "fs_opt[\"fmask\", array[int8[0x30:0x37]]]"}, Desc: &StructDesc{TypeCommon: TypeCommon{TypeName: "fs_opt[\"fmask\", array[int8[0x30:0x37]]]", IsVarlen: true}, Fields: []Type{ + {Key: StructKey{Name: "fs_opt[\"fmask\", array[int8['0':'7']]]"}, Desc: &StructDesc{TypeCommon: TypeCommon{TypeName: "fs_opt[\"fmask\", array[int8['0':'7']]]", IsVarlen: true}, Fields: []Type{ &BufferType{TypeCommon: TypeCommon{TypeName: "stringnoz", FldName: "name", TypeSize: 5}, Kind: 2, Values: []string{"fmask"}, NoZ: true}, &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "eq", TypeSize: 1}}, Val: 61}, &ArrayType{TypeCommon: TypeCommon{TypeName: "array", FldName: "val", IsVarlen: true}, Type: &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int8", TypeSize: 1}}, Kind: 2, RangeBegin: 48, RangeEnd: 55}}, @@ -3666,7 +3669,7 @@ var structDescs_arm64 = []*KeyedStruct{ &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "eq", TypeSize: 1}}, Val: 61}, &ArrayType{TypeCommon: TypeCommon{TypeName: "array", FldName: "val", IsVarlen: true}, Type: &FlagsType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "fs_opt_digits", TypeSize: 1}}, Vals: []uint64{45, 120, 48, 49, 50, 51, 52, 53, 54, 55, 56, 57}}}, }}}, - {Key: StructKey{Name: "fs_opt[\"gid\", array[int8[0x30:0x37]]]"}, Desc: &StructDesc{TypeCommon: TypeCommon{TypeName: "fs_opt[\"gid\", array[int8[0x30:0x37]]]", IsVarlen: true}, Fields: []Type{ + {Key: StructKey{Name: "fs_opt[\"gid\", array[int8['0':'7']]]"}, Desc: &StructDesc{TypeCommon: TypeCommon{TypeName: "fs_opt[\"gid\", array[int8['0':'7']]]", IsVarlen: true}, Fields: []Type{ &BufferType{TypeCommon: TypeCommon{TypeName: "stringnoz", FldName: "name", TypeSize: 3}, Kind: 2, Values: []string{"gid"}, NoZ: true}, &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "eq", TypeSize: 1}}, Val: 61}, &ArrayType{TypeCommon: TypeCommon{TypeName: "array", FldName: "val", IsVarlen: true}, Type: &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int8", TypeSize: 1}}, Kind: 2, RangeBegin: 48, RangeEnd: 55}}, @@ -3791,6 +3794,11 @@ var structDescs_arm64 = []*KeyedStruct{ &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "eq", TypeSize: 1}}, Val: 61}, &ArrayType{TypeCommon: TypeCommon{TypeName: "array", FldName: "val", IsVarlen: true}, Type: &FlagsType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "fs_opt_digits", TypeSize: 1}}, Vals: []uint64{45, 120, 48, 49, 50, 51, 52, 53, 54, 55, 56, 57}}}, }}}, + {Key: StructKey{Name: "fs_opt[\"mode\", array[int8['0':'7']]]"}, Desc: &StructDesc{TypeCommon: TypeCommon{TypeName: "fs_opt[\"mode\", array[int8['0':'7']]]", IsVarlen: true}, Fields: []Type{ + &BufferType{TypeCommon: TypeCommon{TypeName: "stringnoz", FldName: "name", TypeSize: 4}, Kind: 2, Values: []string{"mode"}, NoZ: true}, + &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "eq", TypeSize: 1}}, Val: 61}, + &ArrayType{TypeCommon: TypeCommon{TypeName: "array", FldName: "val", IsVarlen: true}, Type: &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int8", TypeSize: 1}}, Kind: 2, RangeBegin: 48, RangeEnd: 55}}, + }}}, {Key: StructKey{Name: "fs_opt[\"nls\", stringnoz[codepages_names]]"}, Desc: &StructDesc{TypeCommon: TypeCommon{TypeName: "fs_opt[\"nls\", stringnoz[codepages_names]]", IsVarlen: true}, Fields: []Type{ &BufferType{TypeCommon: TypeCommon{TypeName: "stringnoz", FldName: "name", TypeSize: 3}, Kind: 2, Values: []string{"nls"}, NoZ: true}, &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "eq", TypeSize: 1}}, Val: 61}, @@ -3926,7 +3934,7 @@ var structDescs_arm64 = []*KeyedStruct{ &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "eq", TypeSize: 1}}, Val: 61}, &ArrayType{TypeCommon: TypeCommon{TypeName: "array", FldName: "val", IsVarlen: true}, Type: &FlagsType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "fs_opt_digits", TypeSize: 1}}, Vals: []uint64{45, 120, 48, 49, 50, 51, 52, 53, 54, 55, 56, 57}}}, }}}, - {Key: StructKey{Name: "fs_opt[\"uid\", array[int8[0x30:0x37]]]"}, Desc: &StructDesc{TypeCommon: TypeCommon{TypeName: "fs_opt[\"uid\", array[int8[0x30:0x37]]]", IsVarlen: true}, Fields: []Type{ + {Key: StructKey{Name: "fs_opt[\"uid\", array[int8['0':'7']]]"}, Desc: &StructDesc{TypeCommon: TypeCommon{TypeName: "fs_opt[\"uid\", array[int8['0':'7']]]", IsVarlen: true}, Fields: []Type{ &BufferType{TypeCommon: TypeCommon{TypeName: "stringnoz", FldName: "name", TypeSize: 3}, Kind: 2, Values: []string{"uid"}, NoZ: true}, &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "eq", TypeSize: 1}}, Val: 61}, &ArrayType{TypeCommon: TypeCommon{TypeName: "array", FldName: "val", IsVarlen: true}, Type: &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int8", TypeSize: 1}}, Kind: 2, RangeBegin: 48, RangeEnd: 55}}, @@ -3936,7 +3944,7 @@ var structDescs_arm64 = []*KeyedStruct{ &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "eq", TypeSize: 1}}, Val: 61}, &ArrayType{TypeCommon: TypeCommon{TypeName: "array", FldName: "val", IsVarlen: true}, Type: &FlagsType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "fs_opt_digits", TypeSize: 1}}, Vals: []uint64{45, 120, 48, 49, 50, 51, 52, 53, 54, 55, 56, 57}}}, }}}, - {Key: StructKey{Name: "fs_opt[\"umask\", array[int8[0x30:0x37]]]"}, Desc: &StructDesc{TypeCommon: TypeCommon{TypeName: "fs_opt[\"umask\", array[int8[0x30:0x37]]]", IsVarlen: true}, Fields: []Type{ + {Key: StructKey{Name: "fs_opt[\"umask\", array[int8['0':'7']]]"}, Desc: &StructDesc{TypeCommon: TypeCommon{TypeName: "fs_opt[\"umask\", array[int8['0':'7']]]", IsVarlen: true}, Fields: []Type{ &BufferType{TypeCommon: TypeCommon{TypeName: "stringnoz", FldName: "name", TypeSize: 5}, Kind: 2, Values: []string{"umask"}, NoZ: true}, &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "eq", TypeSize: 1}}, Val: 61}, &ArrayType{TypeCommon: TypeCommon{TypeName: "array", FldName: "val", IsVarlen: true}, Type: &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int8", TypeSize: 1}}, Kind: 2, RangeBegin: 48, RangeEnd: 55}}, @@ -3956,6 +3964,10 @@ var structDescs_arm64 = []*KeyedStruct{ &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "eq", TypeSize: 1}}, Val: 61}, &BufferType{TypeCommon: TypeCommon{TypeName: "stringnoz", FldName: "val", IsVarlen: true}, Kind: 2, NoZ: true}, }}}, + {Key: StructKey{Name: "fs_opt_elem[bpf_options]"}, Desc: &StructDesc{TypeCommon: TypeCommon{TypeName: "fs_opt_elem[bpf_options]", IsVarlen: true}, Fields: []Type{ + &UnionType{Key: StructKey{Name: "bpf_options"}, FldName: "elem"}, + &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "comma", TypeSize: 1}}, Val: 44}, + }}}, {Key: StructKey{Name: "fs_opt_elem[btrfs_options]"}, Desc: &StructDesc{TypeCommon: TypeCommon{TypeName: "fs_opt_elem[btrfs_options]", IsVarlen: true}, Fields: []Type{ &UnionType{Key: StructKey{Name: "btrfs_options"}, FldName: "elem"}, &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "comma", TypeSize: 1}}, Val: 44}, @@ -4000,6 +4012,14 @@ var structDescs_arm64 = []*KeyedStruct{ &UnionType{Key: StructKey{Name: "vfat_options"}, FldName: "elem"}, &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "comma", TypeSize: 1}}, Val: 44}, }}}, + {Key: StructKey{Name: "fs_opt_elem[xfs_options]"}, Desc: &StructDesc{TypeCommon: TypeCommon{TypeName: "fs_opt_elem[xfs_options]", IsVarlen: true}, Fields: []Type{ + &UnionType{Key: StructKey{Name: "xfs_options"}, FldName: "elem"}, + &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "comma", TypeSize: 1}}, Val: 44}, + }}}, + {Key: StructKey{Name: "fs_options[bpf_options]"}, Desc: &StructDesc{TypeCommon: TypeCommon{TypeName: "fs_options[bpf_options]", IsVarlen: true}, Fields: []Type{ + &ArrayType{TypeCommon: TypeCommon{TypeName: "array", FldName: "elems", IsVarlen: true}, Type: &StructType{Key: StructKey{Name: "fs_opt_elem[bpf_options]"}}}, + &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "null", TypeSize: 1}}}, + }}}, {Key: StructKey{Name: "fs_options[btrfs_options]"}, Desc: &StructDesc{TypeCommon: TypeCommon{TypeName: "fs_options[btrfs_options]", IsVarlen: true}, Fields: []Type{ &ArrayType{TypeCommon: TypeCommon{TypeName: "array", FldName: "elems", IsVarlen: true}, Type: &StructType{Key: StructKey{Name: "fs_opt_elem[btrfs_options]"}}}, &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "null", TypeSize: 1}}}, @@ -4044,6 +4064,10 @@ var structDescs_arm64 = []*KeyedStruct{ &ArrayType{TypeCommon: TypeCommon{TypeName: "array", FldName: "elems", IsVarlen: true}, Type: &StructType{Key: StructKey{Name: "fs_opt_elem[vfat_options]"}}}, &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "null", TypeSize: 1}}}, }}}, + {Key: StructKey{Name: "fs_options[xfs_options]"}, Desc: &StructDesc{TypeCommon: TypeCommon{TypeName: "fs_options[xfs_options]", IsVarlen: true}, Fields: []Type{ + &ArrayType{TypeCommon: TypeCommon{TypeName: "array", FldName: "elems", IsVarlen: true}, Type: &StructType{Key: StructKey{Name: "fs_opt_elem[xfs_options]"}}}, + &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "null", TypeSize: 1}}}, + }}}, {Key: StructKey{Name: "fsxattr"}, Desc: &StructDesc{TypeCommon: TypeCommon{TypeName: "fsxattr", TypeSize: 32}, Fields: []Type{ &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int32", FldName: "fsx_xflags", TypeSize: 4}}}, &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int32", FldName: "fsx_extsize", TypeSize: 4}}}, @@ -4470,9 +4494,9 @@ var structDescs_arm64 = []*KeyedStruct{ }}}, {Key: StructKey{Name: "hfs_options"}, Desc: &StructDesc{TypeCommon: TypeCommon{TypeName: "hfs_options", IsVarlen: true}, Fields: []Type{ &BufferType{TypeCommon: TypeCommon{TypeName: "stringnoz", FldName: "quiet", TypeSize: 5}, Kind: 2, Values: []string{"quiet"}, NoZ: true}, - &StructType{Key: StructKey{Name: "fs_opt[\"umask\", array[int8[0x30:0x37]]]"}, FldName: "umask"}, - &StructType{Key: StructKey{Name: "fs_opt[\"file_umask\", array[int8[0x30:0x37]]]"}, FldName: "file_umask"}, - &StructType{Key: StructKey{Name: "fs_opt[\"dir_umask\", array[int8[0x30:0x37]]]"}, FldName: "dir_umask"}, + &StructType{Key: StructKey{Name: "fs_opt[\"umask\", array[int8['0':'7']]]"}, FldName: "umask"}, + &StructType{Key: StructKey{Name: "fs_opt[\"file_umask\", array[int8['0':'7']]]"}, FldName: "file_umask"}, + &StructType{Key: StructKey{Name: "fs_opt[\"dir_umask\", array[int8['0':'7']]]"}, FldName: "dir_umask"}, &StructType{Key: StructKey{Name: "fs_opt[\"uid\", array[flags[fs_opt_digits, int8]]]"}, FldName: "uid"}, &StructType{Key: StructKey{Name: "fs_opt[\"gid\", array[flags[fs_opt_digits, int8]]]"}, FldName: "gid"}, &StructType{Key: StructKey{Name: "fs_opt[\"part\", array[flags[fs_opt_digits, int8]]]"}, FldName: "part"}, @@ -4488,7 +4512,7 @@ var structDescs_arm64 = []*KeyedStruct{ &BufferType{TypeCommon: TypeCommon{TypeName: "stringnoz", FldName: "barrier", TypeSize: 7}, Kind: 2, Values: []string{"barrier"}, NoZ: true}, &BufferType{TypeCommon: TypeCommon{TypeName: "stringnoz", FldName: "nobarrier", TypeSize: 9}, Kind: 2, Values: []string{"nobarrier"}, NoZ: true}, &BufferType{TypeCommon: TypeCommon{TypeName: "stringnoz", FldName: "force", TypeSize: 5}, Kind: 2, Values: []string{"force"}, NoZ: true}, - &StructType{Key: StructKey{Name: "fs_opt[\"umask\", array[int8[0x30:0x37]]]"}, FldName: "umask"}, + &StructType{Key: StructKey{Name: "fs_opt[\"umask\", array[int8['0':'7']]]"}, FldName: "umask"}, &StructType{Key: StructKey{Name: "fs_opt[\"type\", array[int8, 4]]"}, FldName: "type"}, &StructType{Key: StructKey{Name: "fs_opt[\"creator\", array[int8, 4]]"}, FldName: "creator"}, &StructType{Key: StructKey{Name: "fs_opt[\"uid\", array[flags[fs_opt_digits, int8]]]"}, FldName: "uid"}, @@ -12579,9 +12603,9 @@ var structDescs_arm64 = []*KeyedStruct{ {Key: StructKey{Name: "ntfs_options"}, Desc: &StructDesc{TypeCommon: TypeCommon{TypeName: "ntfs_options", IsVarlen: true}, Fields: []Type{ &StructType{Key: StructKey{Name: "fs_opt[\"uid\", array[flags[fs_opt_digits, int8]]]"}, FldName: "uid"}, &StructType{Key: StructKey{Name: "fs_opt[\"gid\", array[flags[fs_opt_digits, int8]]]"}, FldName: "gid"}, - &StructType{Key: StructKey{Name: "fs_opt[\"umask\", array[int8[0x30:0x37]]]"}, FldName: "umask"}, - &StructType{Key: StructKey{Name: "fs_opt[\"fmask\", array[int8[0x30:0x37]]]"}, FldName: "fmask"}, - &StructType{Key: StructKey{Name: "fs_opt[\"dmask\", array[int8[0x30:0x37]]]"}, FldName: "dmask"}, + &StructType{Key: StructKey{Name: "fs_opt[\"umask\", array[int8['0':'7']]]"}, FldName: "umask"}, + &StructType{Key: StructKey{Name: "fs_opt[\"fmask\", array[int8['0':'7']]]"}, FldName: "fmask"}, + &StructType{Key: StructKey{Name: "fs_opt[\"dmask\", array[int8['0':'7']]]"}, FldName: "dmask"}, &StructType{Key: StructKey{Name: "fs_opt[\"mft_zone_multiplier\", array[flags[fs_opt_digits, int8]]]"}, FldName: "mft_zone_multiplier"}, &StructType{Key: StructKey{Name: "fs_opt[\"show_sys_files=no\", array[flags[fs_opt_digits, int8]]]"}, FldName: "show_sys_files_no"}, &StructType{Key: StructKey{Name: "fs_opt[\"show_sys_files=yes\", array[flags[fs_opt_digits, int8]]]"}, FldName: "show_sys_files_yes"}, @@ -17647,12 +17671,12 @@ var structDescs_arm64 = []*KeyedStruct{ &BufferType{TypeCommon: TypeCommon{TypeName: "stringnoz", FldName: "nfs", TypeSize: 3}, Kind: 2, Values: []string{"nfs"}, NoZ: true}, &BufferType{TypeCommon: TypeCommon{TypeName: "stringnoz", FldName: "nfs_nostale_ro", TypeSize: 14}, Kind: 2, Values: []string{"nfs=nostale_ro"}, NoZ: true}, &BufferType{TypeCommon: TypeCommon{TypeName: "stringnoz", FldName: "dos1xfloppy", TypeSize: 11}, Kind: 2, Values: []string{"dos1xfloppy"}, NoZ: true}, - &StructType{Key: StructKey{Name: "fs_opt[\"uid\", array[int8[0x30:0x37]]]"}, FldName: "uid"}, - &StructType{Key: StructKey{Name: "fs_opt[\"gid\", array[int8[0x30:0x37]]]"}, FldName: "gid"}, - &StructType{Key: StructKey{Name: "fs_opt[\"umask\", array[int8[0x30:0x37]]]"}, FldName: "umask"}, - &StructType{Key: StructKey{Name: "fs_opt[\"dmask\", array[int8[0x30:0x37]]]"}, FldName: "dmask"}, - &StructType{Key: StructKey{Name: "fs_opt[\"fmask\", array[int8[0x30:0x37]]]"}, FldName: "fmask"}, - &StructType{Key: StructKey{Name: "fs_opt[\"allow_utime\", array[int8[0x30:0x37]]]"}, FldName: "allow_utime"}, + &StructType{Key: StructKey{Name: "fs_opt[\"uid\", array[int8['0':'7']]]"}, FldName: "uid"}, + &StructType{Key: StructKey{Name: "fs_opt[\"gid\", array[int8['0':'7']]]"}, FldName: "gid"}, + &StructType{Key: StructKey{Name: "fs_opt[\"umask\", array[int8['0':'7']]]"}, FldName: "umask"}, + &StructType{Key: StructKey{Name: "fs_opt[\"dmask\", array[int8['0':'7']]]"}, FldName: "dmask"}, + &StructType{Key: StructKey{Name: "fs_opt[\"fmask\", array[int8['0':'7']]]"}, FldName: "fmask"}, + &StructType{Key: StructKey{Name: "fs_opt[\"allow_utime\", array[int8['0':'7']]]"}, FldName: "allow_utime"}, &StructType{Key: StructKey{Name: "fs_opt[\"time_offset\", array[flags[fs_opt_digits, int8]]]"}, FldName: "time_offset"}, &StructType{Key: StructKey{Name: "fs_opt[\"codepage\", stringnoz[codepage_nums]]"}, FldName: "codepage"}, }}}, @@ -26582,6 +26606,13 @@ var syscalls_arm64 = []*Syscall{ &FlagsType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "mount_flags", FldName: "flags", TypeSize: 8}}, Vals: []uint64{4096, 128, 64, 8192, 1024, 4, 2048, 8, 2, 1, 2097152, 32, 32768, 16777216, 16, 16384, 65536, 131072, 262144, 524288, 1048576, 8388608, 33554432}, BitMask: true}, &PtrType{TypeCommon: TypeCommon{TypeName: "buffer", FldName: "data", TypeSize: 8, IsOptional: true}, Type: &BufferType{TypeCommon: TypeCommon{IsVarlen: true}}}, }}, + {NR: 40, Name: "mount$bpf", CallName: "mount", Args: []Type{ + &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "src", TypeSize: 8}}}, + &PtrType{TypeCommon: TypeCommon{TypeName: "ptr", FldName: "dst", TypeSize: 8}, Type: &BufferType{TypeCommon: TypeCommon{TypeName: "filename", IsVarlen: true}, Kind: 3}}, + &PtrType{TypeCommon: TypeCommon{TypeName: "ptr", FldName: "type", TypeSize: 8}, Type: &BufferType{TypeCommon: TypeCommon{TypeName: "string", TypeSize: 4}, Kind: 2, Values: []string{"bpf\x00"}}}, + &FlagsType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "mount_flags", FldName: "flags", TypeSize: 8}}, Vals: []uint64{4096, 128, 64, 8192, 1024, 4, 2048, 8, 2, 1, 2097152, 32, 32768, 16777216, 16, 16384, 65536, 131072, 262144, 524288, 1048576, 8388608, 33554432}, BitMask: true}, + &PtrType{TypeCommon: TypeCommon{TypeName: "ptr", FldName: "opts", TypeSize: 8}, Type: &StructType{Key: StructKey{Name: "fs_options[bpf_options]"}}}, + }}, {NR: 239, Name: "move_pages", CallName: "move_pages", Args: []Type{ &ResourceType{TypeCommon: TypeCommon{TypeName: "pid", FldName: "pid", TypeSize: 4}}, &LenType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "len", FldName: "nr", TypeSize: 8}}, Buf: "pages"}, @@ -30582,7 +30613,7 @@ var syscalls_arm64 = []*Syscall{ &LenType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "len", FldName: "nsegs", TypeSize: 8}}, Buf: "segments"}, &PtrType{TypeCommon: TypeCommon{TypeName: "ptr", FldName: "segments", TypeSize: 8}, Type: &ArrayType{TypeCommon: TypeCommon{TypeName: "array", IsVarlen: true}, Type: &StructType{Key: StructKey{Name: "fs_image_segment"}}}}, &FlagsType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "mount_flags", FldName: "flags", TypeSize: 8}}, Vals: []uint64{4096, 128, 64, 8192, 1024, 4, 2048, 8, 2, 1, 2097152, 32, 32768, 16777216, 16, 16384, 65536, 131072, 262144, 524288, 1048576, 8388608, 33554432}, BitMask: true}, - &PtrType{TypeCommon: TypeCommon{TypeName: "ptr", FldName: "opts", TypeSize: 8}, Type: &UnionType{Key: StructKey{Name: "xfs_options"}}}, + &PtrType{TypeCommon: TypeCommon{TypeName: "ptr", FldName: "opts", TypeSize: 8}, Type: &StructType{Key: StructKey{Name: "fs_options[xfs_options]"}}}, }}, {Name: "syz_open_dev$CDROM_DEV_LINK", CallName: "syz_open_dev", Args: []Type{ &PtrType{TypeCommon: TypeCommon{TypeName: "ptr", FldName: "dev", TypeSize: 8}, Type: &BufferType{TypeCommon: TypeCommon{TypeName: "string", TypeSize: 11}, Kind: 2, Values: []string{"/dev/cdrom\x00"}}}, @@ -37147,4 +37178,4 @@ var consts_arm64 = []ConstValue{ {Name: "bpf_insn_load_imm_dw", Value: 24}, } -const revision_arm64 = "e0996c58f44d1178a9173f9c61fc9868155e4f7f" +const revision_arm64 = "664998504b047f3f7cd626048e96cc61ba18e310" diff --git a/sys/linux/gen/ppc64le.go b/sys/linux/gen/ppc64le.go index 9ac062fe1..a99e2b0e3 100644 --- a/sys/linux/gen/ppc64le.go +++ b/sys/linux/gen/ppc64le.go @@ -814,6 +814,9 @@ var structDescs_ppc64le = []*KeyedStruct{ &ResourceType{TypeCommon: TypeCommon{TypeName: "fd_bpf_prog", FldName: "fd", TypeSize: 4}}, &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "pad", TypeSize: 4}}, IsPad: true}, }}}, + {Key: StructKey{Name: "bpf_options"}, Desc: &StructDesc{TypeCommon: TypeCommon{TypeName: "bpf_options", IsVarlen: true}, Fields: []Type{ + &StructType{Key: StructKey{Name: "fs_opt[\"mode\", array[int8['0':'7']]]"}, FldName: "mode"}, + }}}, {Key: StructKey{Name: "bpf_prog"}, Desc: &StructDesc{TypeCommon: TypeCommon{TypeName: "bpf_prog", TypeSize: 72}, Fields: []Type{ &FlagsType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "bpf_prog_type", FldName: "type", TypeSize: 4}}, Vals: []uint64{1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18}}, &LenType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "bytesize8", FldName: "ninsn", TypeSize: 4}}, BitSize: 64, Buf: "insns"}, @@ -3532,7 +3535,7 @@ var structDescs_ppc64le = []*KeyedStruct{ &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "eq", TypeSize: 1}}, Val: 61}, &ArrayType{TypeCommon: TypeCommon{TypeName: "array", FldName: "val", IsVarlen: true}, Type: &FlagsType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "fs_opt_digits_suffix", TypeSize: 1}}, Vals: []uint64{45, 120, 48, 49, 50, 51, 52, 53, 54, 55, 56, 57, 107, 109, 103, 116, 112, 101}}}, }}}, - {Key: StructKey{Name: "fs_opt[\"allow_utime\", array[int8[0x30:0x37]]]"}, Desc: &StructDesc{TypeCommon: TypeCommon{TypeName: "fs_opt[\"allow_utime\", array[int8[0x30:0x37]]]", IsVarlen: true}, Fields: []Type{ + {Key: StructKey{Name: "fs_opt[\"allow_utime\", array[int8['0':'7']]]"}, Desc: &StructDesc{TypeCommon: TypeCommon{TypeName: "fs_opt[\"allow_utime\", array[int8['0':'7']]]", IsVarlen: true}, Fields: []Type{ &BufferType{TypeCommon: TypeCommon{TypeName: "stringnoz", FldName: "name", TypeSize: 11}, Kind: 2, Values: []string{"allow_utime"}, NoZ: true}, &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "eq", TypeSize: 1}}, Val: 61}, &ArrayType{TypeCommon: TypeCommon{TypeName: "array", FldName: "val", IsVarlen: true}, Type: &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int8", TypeSize: 1}}, Kind: 2, RangeBegin: 48, RangeEnd: 55}}, @@ -3612,7 +3615,7 @@ var structDescs_ppc64le = []*KeyedStruct{ &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "eq", TypeSize: 1}}, Val: 61}, &BufferType{TypeCommon: TypeCommon{TypeName: "filename", FldName: "val", IsVarlen: true}, Kind: 3, NoZ: true}, }}}, - {Key: StructKey{Name: "fs_opt[\"dir_umask\", array[int8[0x30:0x37]]]"}, Desc: &StructDesc{TypeCommon: TypeCommon{TypeName: "fs_opt[\"dir_umask\", array[int8[0x30:0x37]]]", IsVarlen: true}, Fields: []Type{ + {Key: StructKey{Name: "fs_opt[\"dir_umask\", array[int8['0':'7']]]"}, Desc: &StructDesc{TypeCommon: TypeCommon{TypeName: "fs_opt[\"dir_umask\", array[int8['0':'7']]]", IsVarlen: true}, Fields: []Type{ &BufferType{TypeCommon: TypeCommon{TypeName: "stringnoz", FldName: "name", TypeSize: 9}, Kind: 2, Values: []string{"dir_umask"}, NoZ: true}, &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "eq", TypeSize: 1}}, Val: 61}, &ArrayType{TypeCommon: TypeCommon{TypeName: "array", FldName: "val", IsVarlen: true}, Type: &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int8", TypeSize: 1}}, Kind: 2, RangeBegin: 48, RangeEnd: 55}}, @@ -3632,7 +3635,7 @@ var structDescs_ppc64le = []*KeyedStruct{ &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "eq", TypeSize: 1}}, Val: 61}, &ArrayType{TypeCommon: TypeCommon{TypeName: "array", FldName: "val", IsVarlen: true}, Type: &FlagsType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "fs_opt_digits", TypeSize: 1}}, Vals: []uint64{45, 120, 48, 49, 50, 51, 52, 53, 54, 55, 56, 57}}}, }}}, - {Key: StructKey{Name: "fs_opt[\"dmask\", array[int8[0x30:0x37]]]"}, Desc: &StructDesc{TypeCommon: TypeCommon{TypeName: "fs_opt[\"dmask\", array[int8[0x30:0x37]]]", IsVarlen: true}, Fields: []Type{ + {Key: StructKey{Name: "fs_opt[\"dmask\", array[int8['0':'7']]]"}, Desc: &StructDesc{TypeCommon: TypeCommon{TypeName: "fs_opt[\"dmask\", array[int8['0':'7']]]", IsVarlen: true}, Fields: []Type{ &BufferType{TypeCommon: TypeCommon{TypeName: "stringnoz", FldName: "name", TypeSize: 5}, Kind: 2, Values: []string{"dmask"}, NoZ: true}, &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "eq", TypeSize: 1}}, Val: 61}, &ArrayType{TypeCommon: TypeCommon{TypeName: "array", FldName: "val", IsVarlen: true}, Type: &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int8", TypeSize: 1}}, Kind: 2, RangeBegin: 48, RangeEnd: 55}}, @@ -3642,12 +3645,12 @@ var structDescs_ppc64le = []*KeyedStruct{ &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "eq", TypeSize: 1}}, Val: 61}, &ArrayType{TypeCommon: TypeCommon{TypeName: "array", FldName: "val", IsVarlen: true}, Type: &FlagsType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "fs_opt_digits", TypeSize: 1}}, Vals: []uint64{45, 120, 48, 49, 50, 51, 52, 53, 54, 55, 56, 57}}}, }}}, - {Key: StructKey{Name: "fs_opt[\"file_umask\", array[int8[0x30:0x37]]]"}, Desc: &StructDesc{TypeCommon: TypeCommon{TypeName: "fs_opt[\"file_umask\", array[int8[0x30:0x37]]]", IsVarlen: true}, Fields: []Type{ + {Key: StructKey{Name: "fs_opt[\"file_umask\", array[int8['0':'7']]]"}, Desc: &StructDesc{TypeCommon: TypeCommon{TypeName: "fs_opt[\"file_umask\", array[int8['0':'7']]]", IsVarlen: true}, Fields: []Type{ &BufferType{TypeCommon: TypeCommon{TypeName: "stringnoz", FldName: "name", TypeSize: 10}, Kind: 2, Values: []string{"file_umask"}, NoZ: true}, &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "eq", TypeSize: 1}}, Val: 61}, &ArrayType{TypeCommon: TypeCommon{TypeName: "array", FldName: "val", IsVarlen: true}, Type: &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int8", TypeSize: 1}}, Kind: 2, RangeBegin: 48, RangeEnd: 55}}, }}}, - {Key: StructKey{Name: "fs_opt[\"fmask\", array[int8[0x30:0x37]]]"}, Desc: &StructDesc{TypeCommon: TypeCommon{TypeName: "fs_opt[\"fmask\", array[int8[0x30:0x37]]]", IsVarlen: true}, Fields: []Type{ + {Key: StructKey{Name: "fs_opt[\"fmask\", array[int8['0':'7']]]"}, Desc: &StructDesc{TypeCommon: TypeCommon{TypeName: "fs_opt[\"fmask\", array[int8['0':'7']]]", IsVarlen: true}, Fields: []Type{ &BufferType{TypeCommon: TypeCommon{TypeName: "stringnoz", FldName: "name", TypeSize: 5}, Kind: 2, Values: []string{"fmask"}, NoZ: true}, &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "eq", TypeSize: 1}}, Val: 61}, &ArrayType{TypeCommon: TypeCommon{TypeName: "array", FldName: "val", IsVarlen: true}, Type: &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int8", TypeSize: 1}}, Kind: 2, RangeBegin: 48, RangeEnd: 55}}, @@ -3657,7 +3660,7 @@ var structDescs_ppc64le = []*KeyedStruct{ &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "eq", TypeSize: 1}}, Val: 61}, &ArrayType{TypeCommon: TypeCommon{TypeName: "array", FldName: "val", IsVarlen: true}, Type: &FlagsType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "fs_opt_digits", TypeSize: 1}}, Vals: []uint64{45, 120, 48, 49, 50, 51, 52, 53, 54, 55, 56, 57}}}, }}}, - {Key: StructKey{Name: "fs_opt[\"gid\", array[int8[0x30:0x37]]]"}, Desc: &StructDesc{TypeCommon: TypeCommon{TypeName: "fs_opt[\"gid\", array[int8[0x30:0x37]]]", IsVarlen: true}, Fields: []Type{ + {Key: StructKey{Name: "fs_opt[\"gid\", array[int8['0':'7']]]"}, Desc: &StructDesc{TypeCommon: TypeCommon{TypeName: "fs_opt[\"gid\", array[int8['0':'7']]]", IsVarlen: true}, Fields: []Type{ &BufferType{TypeCommon: TypeCommon{TypeName: "stringnoz", FldName: "name", TypeSize: 3}, Kind: 2, Values: []string{"gid"}, NoZ: true}, &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "eq", TypeSize: 1}}, Val: 61}, &ArrayType{TypeCommon: TypeCommon{TypeName: "array", FldName: "val", IsVarlen: true}, Type: &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int8", TypeSize: 1}}, Kind: 2, RangeBegin: 48, RangeEnd: 55}}, @@ -3782,6 +3785,11 @@ var structDescs_ppc64le = []*KeyedStruct{ &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "eq", TypeSize: 1}}, Val: 61}, &ArrayType{TypeCommon: TypeCommon{TypeName: "array", FldName: "val", IsVarlen: true}, Type: &FlagsType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "fs_opt_digits", TypeSize: 1}}, Vals: []uint64{45, 120, 48, 49, 50, 51, 52, 53, 54, 55, 56, 57}}}, }}}, + {Key: StructKey{Name: "fs_opt[\"mode\", array[int8['0':'7']]]"}, Desc: &StructDesc{TypeCommon: TypeCommon{TypeName: "fs_opt[\"mode\", array[int8['0':'7']]]", IsVarlen: true}, Fields: []Type{ + &BufferType{TypeCommon: TypeCommon{TypeName: "stringnoz", FldName: "name", TypeSize: 4}, Kind: 2, Values: []string{"mode"}, NoZ: true}, + &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "eq", TypeSize: 1}}, Val: 61}, + &ArrayType{TypeCommon: TypeCommon{TypeName: "array", FldName: "val", IsVarlen: true}, Type: &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int8", TypeSize: 1}}, Kind: 2, RangeBegin: 48, RangeEnd: 55}}, + }}}, {Key: StructKey{Name: "fs_opt[\"nls\", stringnoz[codepages_names]]"}, Desc: &StructDesc{TypeCommon: TypeCommon{TypeName: "fs_opt[\"nls\", stringnoz[codepages_names]]", IsVarlen: true}, Fields: []Type{ &BufferType{TypeCommon: TypeCommon{TypeName: "stringnoz", FldName: "name", TypeSize: 3}, Kind: 2, Values: []string{"nls"}, NoZ: true}, &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "eq", TypeSize: 1}}, Val: 61}, @@ -3917,7 +3925,7 @@ var structDescs_ppc64le = []*KeyedStruct{ &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "eq", TypeSize: 1}}, Val: 61}, &ArrayType{TypeCommon: TypeCommon{TypeName: "array", FldName: "val", IsVarlen: true}, Type: &FlagsType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "fs_opt_digits", TypeSize: 1}}, Vals: []uint64{45, 120, 48, 49, 50, 51, 52, 53, 54, 55, 56, 57}}}, }}}, - {Key: StructKey{Name: "fs_opt[\"uid\", array[int8[0x30:0x37]]]"}, Desc: &StructDesc{TypeCommon: TypeCommon{TypeName: "fs_opt[\"uid\", array[int8[0x30:0x37]]]", IsVarlen: true}, Fields: []Type{ + {Key: StructKey{Name: "fs_opt[\"uid\", array[int8['0':'7']]]"}, Desc: &StructDesc{TypeCommon: TypeCommon{TypeName: "fs_opt[\"uid\", array[int8['0':'7']]]", IsVarlen: true}, Fields: []Type{ &BufferType{TypeCommon: TypeCommon{TypeName: "stringnoz", FldName: "name", TypeSize: 3}, Kind: 2, Values: []string{"uid"}, NoZ: true}, &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "eq", TypeSize: 1}}, Val: 61}, &ArrayType{TypeCommon: TypeCommon{TypeName: "array", FldName: "val", IsVarlen: true}, Type: &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int8", TypeSize: 1}}, Kind: 2, RangeBegin: 48, RangeEnd: 55}}, @@ -3927,7 +3935,7 @@ var structDescs_ppc64le = []*KeyedStruct{ &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "eq", TypeSize: 1}}, Val: 61}, &ArrayType{TypeCommon: TypeCommon{TypeName: "array", FldName: "val", IsVarlen: true}, Type: &FlagsType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "fs_opt_digits", TypeSize: 1}}, Vals: []uint64{45, 120, 48, 49, 50, 51, 52, 53, 54, 55, 56, 57}}}, }}}, - {Key: StructKey{Name: "fs_opt[\"umask\", array[int8[0x30:0x37]]]"}, Desc: &StructDesc{TypeCommon: TypeCommon{TypeName: "fs_opt[\"umask\", array[int8[0x30:0x37]]]", IsVarlen: true}, Fields: []Type{ + {Key: StructKey{Name: "fs_opt[\"umask\", array[int8['0':'7']]]"}, Desc: &StructDesc{TypeCommon: TypeCommon{TypeName: "fs_opt[\"umask\", array[int8['0':'7']]]", IsVarlen: true}, Fields: []Type{ &BufferType{TypeCommon: TypeCommon{TypeName: "stringnoz", FldName: "name", TypeSize: 5}, Kind: 2, Values: []string{"umask"}, NoZ: true}, &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "eq", TypeSize: 1}}, Val: 61}, &ArrayType{TypeCommon: TypeCommon{TypeName: "array", FldName: "val", IsVarlen: true}, Type: &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int8", TypeSize: 1}}, Kind: 2, RangeBegin: 48, RangeEnd: 55}}, @@ -3947,6 +3955,10 @@ var structDescs_ppc64le = []*KeyedStruct{ &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "eq", TypeSize: 1}}, Val: 61}, &BufferType{TypeCommon: TypeCommon{TypeName: "stringnoz", FldName: "val", IsVarlen: true}, Kind: 2, NoZ: true}, }}}, + {Key: StructKey{Name: "fs_opt_elem[bpf_options]"}, Desc: &StructDesc{TypeCommon: TypeCommon{TypeName: "fs_opt_elem[bpf_options]", IsVarlen: true}, Fields: []Type{ + &UnionType{Key: StructKey{Name: "bpf_options"}, FldName: "elem"}, + &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "comma", TypeSize: 1}}, Val: 44}, + }}}, {Key: StructKey{Name: "fs_opt_elem[btrfs_options]"}, Desc: &StructDesc{TypeCommon: TypeCommon{TypeName: "fs_opt_elem[btrfs_options]", IsVarlen: true}, Fields: []Type{ &UnionType{Key: StructKey{Name: "btrfs_options"}, FldName: "elem"}, &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "comma", TypeSize: 1}}, Val: 44}, @@ -3991,6 +4003,14 @@ var structDescs_ppc64le = []*KeyedStruct{ &UnionType{Key: StructKey{Name: "vfat_options"}, FldName: "elem"}, &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "comma", TypeSize: 1}}, Val: 44}, }}}, + {Key: StructKey{Name: "fs_opt_elem[xfs_options]"}, Desc: &StructDesc{TypeCommon: TypeCommon{TypeName: "fs_opt_elem[xfs_options]", IsVarlen: true}, Fields: []Type{ + &UnionType{Key: StructKey{Name: "xfs_options"}, FldName: "elem"}, + &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "comma", TypeSize: 1}}, Val: 44}, + }}}, + {Key: StructKey{Name: "fs_options[bpf_options]"}, Desc: &StructDesc{TypeCommon: TypeCommon{TypeName: "fs_options[bpf_options]", IsVarlen: true}, Fields: []Type{ + &ArrayType{TypeCommon: TypeCommon{TypeName: "array", FldName: "elems", IsVarlen: true}, Type: &StructType{Key: StructKey{Name: "fs_opt_elem[bpf_options]"}}}, + &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "null", TypeSize: 1}}}, + }}}, {Key: StructKey{Name: "fs_options[btrfs_options]"}, Desc: &StructDesc{TypeCommon: TypeCommon{TypeName: "fs_options[btrfs_options]", IsVarlen: true}, Fields: []Type{ &ArrayType{TypeCommon: TypeCommon{TypeName: "array", FldName: "elems", IsVarlen: true}, Type: &StructType{Key: StructKey{Name: "fs_opt_elem[btrfs_options]"}}}, &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "null", TypeSize: 1}}}, @@ -4035,6 +4055,10 @@ var structDescs_ppc64le = []*KeyedStruct{ &ArrayType{TypeCommon: TypeCommon{TypeName: "array", FldName: "elems", IsVarlen: true}, Type: &StructType{Key: StructKey{Name: "fs_opt_elem[vfat_options]"}}}, &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "null", TypeSize: 1}}}, }}}, + {Key: StructKey{Name: "fs_options[xfs_options]"}, Desc: &StructDesc{TypeCommon: TypeCommon{TypeName: "fs_options[xfs_options]", IsVarlen: true}, Fields: []Type{ + &ArrayType{TypeCommon: TypeCommon{TypeName: "array", FldName: "elems", IsVarlen: true}, Type: &StructType{Key: StructKey{Name: "fs_opt_elem[xfs_options]"}}}, + &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "null", TypeSize: 1}}}, + }}}, {Key: StructKey{Name: "fsxattr"}, Desc: &StructDesc{TypeCommon: TypeCommon{TypeName: "fsxattr", TypeSize: 32}, Fields: []Type{ &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int32", FldName: "fsx_xflags", TypeSize: 4}}}, &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int32", FldName: "fsx_extsize", TypeSize: 4}}}, @@ -4461,9 +4485,9 @@ var structDescs_ppc64le = []*KeyedStruct{ }}}, {Key: StructKey{Name: "hfs_options"}, Desc: &StructDesc{TypeCommon: TypeCommon{TypeName: "hfs_options", IsVarlen: true}, Fields: []Type{ &BufferType{TypeCommon: TypeCommon{TypeName: "stringnoz", FldName: "quiet", TypeSize: 5}, Kind: 2, Values: []string{"quiet"}, NoZ: true}, - &StructType{Key: StructKey{Name: "fs_opt[\"umask\", array[int8[0x30:0x37]]]"}, FldName: "umask"}, - &StructType{Key: StructKey{Name: "fs_opt[\"file_umask\", array[int8[0x30:0x37]]]"}, FldName: "file_umask"}, - &StructType{Key: StructKey{Name: "fs_opt[\"dir_umask\", array[int8[0x30:0x37]]]"}, FldName: "dir_umask"}, + &StructType{Key: StructKey{Name: "fs_opt[\"umask\", array[int8['0':'7']]]"}, FldName: "umask"}, + &StructType{Key: StructKey{Name: "fs_opt[\"file_umask\", array[int8['0':'7']]]"}, FldName: "file_umask"}, + &StructType{Key: StructKey{Name: "fs_opt[\"dir_umask\", array[int8['0':'7']]]"}, FldName: "dir_umask"}, &StructType{Key: StructKey{Name: "fs_opt[\"uid\", array[flags[fs_opt_digits, int8]]]"}, FldName: "uid"}, &StructType{Key: StructKey{Name: "fs_opt[\"gid\", array[flags[fs_opt_digits, int8]]]"}, FldName: "gid"}, &StructType{Key: StructKey{Name: "fs_opt[\"part\", array[flags[fs_opt_digits, int8]]]"}, FldName: "part"}, @@ -4479,7 +4503,7 @@ var structDescs_ppc64le = []*KeyedStruct{ &BufferType{TypeCommon: TypeCommon{TypeName: "stringnoz", FldName: "barrier", TypeSize: 7}, Kind: 2, Values: []string{"barrier"}, NoZ: true}, &BufferType{TypeCommon: TypeCommon{TypeName: "stringnoz", FldName: "nobarrier", TypeSize: 9}, Kind: 2, Values: []string{"nobarrier"}, NoZ: true}, &BufferType{TypeCommon: TypeCommon{TypeName: "stringnoz", FldName: "force", TypeSize: 5}, Kind: 2, Values: []string{"force"}, NoZ: true}, - &StructType{Key: StructKey{Name: "fs_opt[\"umask\", array[int8[0x30:0x37]]]"}, FldName: "umask"}, + &StructType{Key: StructKey{Name: "fs_opt[\"umask\", array[int8['0':'7']]]"}, FldName: "umask"}, &StructType{Key: StructKey{Name: "fs_opt[\"type\", array[int8, 4]]"}, FldName: "type"}, &StructType{Key: StructKey{Name: "fs_opt[\"creator\", array[int8, 4]]"}, FldName: "creator"}, &StructType{Key: StructKey{Name: "fs_opt[\"uid\", array[flags[fs_opt_digits, int8]]]"}, FldName: "uid"}, @@ -12531,9 +12555,9 @@ var structDescs_ppc64le = []*KeyedStruct{ {Key: StructKey{Name: "ntfs_options"}, Desc: &StructDesc{TypeCommon: TypeCommon{TypeName: "ntfs_options", IsVarlen: true}, Fields: []Type{ &StructType{Key: StructKey{Name: "fs_opt[\"uid\", array[flags[fs_opt_digits, int8]]]"}, FldName: "uid"}, &StructType{Key: StructKey{Name: "fs_opt[\"gid\", array[flags[fs_opt_digits, int8]]]"}, FldName: "gid"}, - &StructType{Key: StructKey{Name: "fs_opt[\"umask\", array[int8[0x30:0x37]]]"}, FldName: "umask"}, - &StructType{Key: StructKey{Name: "fs_opt[\"fmask\", array[int8[0x30:0x37]]]"}, FldName: "fmask"}, - &StructType{Key: StructKey{Name: "fs_opt[\"dmask\", array[int8[0x30:0x37]]]"}, FldName: "dmask"}, + &StructType{Key: StructKey{Name: "fs_opt[\"umask\", array[int8['0':'7']]]"}, FldName: "umask"}, + &StructType{Key: StructKey{Name: "fs_opt[\"fmask\", array[int8['0':'7']]]"}, FldName: "fmask"}, + &StructType{Key: StructKey{Name: "fs_opt[\"dmask\", array[int8['0':'7']]]"}, FldName: "dmask"}, &StructType{Key: StructKey{Name: "fs_opt[\"mft_zone_multiplier\", array[flags[fs_opt_digits, int8]]]"}, FldName: "mft_zone_multiplier"}, &StructType{Key: StructKey{Name: "fs_opt[\"show_sys_files=no\", array[flags[fs_opt_digits, int8]]]"}, FldName: "show_sys_files_no"}, &StructType{Key: StructKey{Name: "fs_opt[\"show_sys_files=yes\", array[flags[fs_opt_digits, int8]]]"}, FldName: "show_sys_files_yes"}, @@ -16726,12 +16750,12 @@ var structDescs_ppc64le = []*KeyedStruct{ &BufferType{TypeCommon: TypeCommon{TypeName: "stringnoz", FldName: "nfs", TypeSize: 3}, Kind: 2, Values: []string{"nfs"}, NoZ: true}, &BufferType{TypeCommon: TypeCommon{TypeName: "stringnoz", FldName: "nfs_nostale_ro", TypeSize: 14}, Kind: 2, Values: []string{"nfs=nostale_ro"}, NoZ: true}, &BufferType{TypeCommon: TypeCommon{TypeName: "stringnoz", FldName: "dos1xfloppy", TypeSize: 11}, Kind: 2, Values: []string{"dos1xfloppy"}, NoZ: true}, - &StructType{Key: StructKey{Name: "fs_opt[\"uid\", array[int8[0x30:0x37]]]"}, FldName: "uid"}, - &StructType{Key: StructKey{Name: "fs_opt[\"gid\", array[int8[0x30:0x37]]]"}, FldName: "gid"}, - &StructType{Key: StructKey{Name: "fs_opt[\"umask\", array[int8[0x30:0x37]]]"}, FldName: "umask"}, - &StructType{Key: StructKey{Name: "fs_opt[\"dmask\", array[int8[0x30:0x37]]]"}, FldName: "dmask"}, - &StructType{Key: StructKey{Name: "fs_opt[\"fmask\", array[int8[0x30:0x37]]]"}, FldName: "fmask"}, - &StructType{Key: StructKey{Name: "fs_opt[\"allow_utime\", array[int8[0x30:0x37]]]"}, FldName: "allow_utime"}, + &StructType{Key: StructKey{Name: "fs_opt[\"uid\", array[int8['0':'7']]]"}, FldName: "uid"}, + &StructType{Key: StructKey{Name: "fs_opt[\"gid\", array[int8['0':'7']]]"}, FldName: "gid"}, + &StructType{Key: StructKey{Name: "fs_opt[\"umask\", array[int8['0':'7']]]"}, FldName: "umask"}, + &StructType{Key: StructKey{Name: "fs_opt[\"dmask\", array[int8['0':'7']]]"}, FldName: "dmask"}, + &StructType{Key: StructKey{Name: "fs_opt[\"fmask\", array[int8['0':'7']]]"}, FldName: "fmask"}, + &StructType{Key: StructKey{Name: "fs_opt[\"allow_utime\", array[int8['0':'7']]]"}, FldName: "allow_utime"}, &StructType{Key: StructKey{Name: "fs_opt[\"time_offset\", array[flags[fs_opt_digits, int8]]]"}, FldName: "time_offset"}, &StructType{Key: StructKey{Name: "fs_opt[\"codepage\", stringnoz[codepage_nums]]"}, FldName: "codepage"}, }}}, @@ -25170,6 +25194,13 @@ var syscalls_ppc64le = []*Syscall{ &FlagsType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "mount_flags", FldName: "flags", TypeSize: 8}}, Vals: []uint64{4096, 128, 64, 8192, 1024, 4, 2048, 8, 2, 1, 2097152, 32, 32768, 16777216, 16, 16384, 65536, 131072, 262144, 524288, 1048576, 8388608, 33554432}, BitMask: true}, &PtrType{TypeCommon: TypeCommon{TypeName: "buffer", FldName: "data", TypeSize: 8, IsOptional: true}, Type: &BufferType{TypeCommon: TypeCommon{IsVarlen: true}}}, }}, + {NR: 21, Name: "mount$bpf", CallName: "mount", Args: []Type{ + &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "src", TypeSize: 8}}}, + &PtrType{TypeCommon: TypeCommon{TypeName: "ptr", FldName: "dst", TypeSize: 8}, Type: &BufferType{TypeCommon: TypeCommon{TypeName: "filename", IsVarlen: true}, Kind: 3}}, + &PtrType{TypeCommon: TypeCommon{TypeName: "ptr", FldName: "type", TypeSize: 8}, Type: &BufferType{TypeCommon: TypeCommon{TypeName: "string", TypeSize: 4}, Kind: 2, Values: []string{"bpf\x00"}}}, + &FlagsType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "mount_flags", FldName: "flags", TypeSize: 8}}, Vals: []uint64{4096, 128, 64, 8192, 1024, 4, 2048, 8, 2, 1, 2097152, 32, 32768, 16777216, 16, 16384, 65536, 131072, 262144, 524288, 1048576, 8388608, 33554432}, BitMask: true}, + &PtrType{TypeCommon: TypeCommon{TypeName: "ptr", FldName: "opts", TypeSize: 8}, Type: &StructType{Key: StructKey{Name: "fs_options[bpf_options]"}}}, + }}, {NR: 301, Name: "move_pages", CallName: "move_pages", Args: []Type{ &ResourceType{TypeCommon: TypeCommon{TypeName: "pid", FldName: "pid", TypeSize: 4}}, &LenType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "len", FldName: "nr", TypeSize: 8}}, Buf: "pages"}, @@ -29028,7 +29059,7 @@ var syscalls_ppc64le = []*Syscall{ &LenType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "len", FldName: "nsegs", TypeSize: 8}}, Buf: "segments"}, &PtrType{TypeCommon: TypeCommon{TypeName: "ptr", FldName: "segments", TypeSize: 8}, Type: &ArrayType{TypeCommon: TypeCommon{TypeName: "array", IsVarlen: true}, Type: &StructType{Key: StructKey{Name: "fs_image_segment"}}}}, &FlagsType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "mount_flags", FldName: "flags", TypeSize: 8}}, Vals: []uint64{4096, 128, 64, 8192, 1024, 4, 2048, 8, 2, 1, 2097152, 32, 32768, 16777216, 16, 16384, 65536, 131072, 262144, 524288, 1048576, 8388608, 33554432}, BitMask: true}, - &PtrType{TypeCommon: TypeCommon{TypeName: "ptr", FldName: "opts", TypeSize: 8}, Type: &UnionType{Key: StructKey{Name: "xfs_options"}}}, + &PtrType{TypeCommon: TypeCommon{TypeName: "ptr", FldName: "opts", TypeSize: 8}, Type: &StructType{Key: StructKey{Name: "fs_options[xfs_options]"}}}, }}, {Name: "syz_open_dev$CDROM_DEV_LINK", CallName: "syz_open_dev", Args: []Type{ &PtrType{TypeCommon: TypeCommon{TypeName: "ptr", FldName: "dev", TypeSize: 8}, Type: &BufferType{TypeCommon: TypeCommon{TypeName: "string", TypeSize: 11}, Kind: 2, Values: []string{"/dev/cdrom\x00"}}}, @@ -34578,4 +34609,4 @@ var consts_ppc64le = []ConstValue{ {Name: "bpf_insn_load_imm_dw", Value: 24}, } -const revision_ppc64le = "e810a038c6e7e93c823407bb0a01ba0d48281b55" +const revision_ppc64le = "08aad7ac72c71a5be51593af085b0358875e488b" diff --git a/sys/linux/tun.txt b/sys/linux/tun.txt index 09d998b9a..a1a106c50 100755 --- a/sys/linux/tun.txt +++ b/sys/linux/tun.txt @@ -7,7 +7,7 @@ include <uapi/linux/if_arp.h> resource fd_tun[fd] -syz_open_dev$tun(dev ptr[in, string["/dev/net/tun"]], id const[0], flags flags[open_flags]) fd_tun +openat$tun(fd const[AT_FDCWD], file ptr[in, string["/dev/net/tun"]], flags flags[open_flags], mode const[0]) fd_tun write$tun(fd fd_tun, buf ptr[in, tun_buffer], count len[buf]) ioctl$TUNGETFEATURES(fd fd_tun, cmd const[TUNGETFEATURES], arg ptr[out, int32]) ioctl$TUNSETQUEUE(fd fd_tun, cmd const[TUNSETQUEUE], arg ptr[in, ifreq_t[flags[tun_queue_flags, int16]]]) @@ -29,7 +29,7 @@ ioctl$TUNGETVNETHDRSZ(fd fd_tun, cmd const[TUNGETVNETHDRSZ], arg ptr[out, int32] ioctl$TUNSETVNETHDRSZ(fd fd_tun, cmd const[TUNSETVNETHDRSZ], arg ptr[in, int32]) ioctl$TUNATTACHFILTER(fd fd_tun, cmd const[TUNATTACHFILTER], arg ptr[in, sock_fprog]) ioctl$TUNDETACHFILTER(fd fd_tun, cmd const[TUNDETACHFILTER], arg const[0]) -ioctl$TTUNGETFILTER(fd fd_tun, cmd const[TUNGETFILTER], arg buffer[out]) +ioctl$TUNGETFILTER(fd fd_tun, cmd const[TUNGETFILTER], arg buffer[out]) ioctl$TUNSETSTEERINGEBPF(fd fd_tun, cmd const[TUNSETSTEERINGEBPF], arg ptr[in, fd_bpf_prog]) ioctl$TUNSETFILTEREBPF(fd fd_tun, cmd const[TUNSETFILTEREBPF], arg ptr[in, fd_bpf_prog]) ioctl$TUNSETVNETLE(fd fd_tun, cmd const[TUNSETVNETLE], arg ptr[in, bool32]) |
