aboutsummaryrefslogtreecommitdiffstats
path: root/sys/linux/gen/amd64.go
diff options
context:
space:
mode:
authorDmitry Vyukov <dvyukov@google.com>2020-01-03 17:04:29 +0100
committerDmitry Vyukov <dvyukov@google.com>2020-01-03 17:04:29 +0100
commitb2a0884c1bf25c174da2503f81054bb344763f18 (patch)
treef46febaa8047a8ab6f3f66b473a7ff45dc5da6a2 /sys/linux/gen/amd64.go
parent1bd353000d219835cc067459c5fb160466ba8bfb (diff)
sys/linux: add minimal AFS descriptions
Diffstat (limited to 'sys/linux/gen/amd64.go')
-rw-r--r--sys/linux/gen/amd64.go34
1 files changed, 33 insertions, 1 deletions
diff --git a/sys/linux/gen/amd64.go b/sys/linux/gen/amd64.go
index 2a633083d..7e3df07e7 100644
--- a/sys/linux/gen/amd64.go
+++ b/sys/linux/gen/amd64.go
@@ -308,6 +308,15 @@ var structDescs_amd64 = []*KeyedStruct{
&ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "b5", TypeSize: 1, ArgDir: 2}}},
&ProcType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "proc", FldName: "b6", TypeSize: 1, ArgDir: 2}}, ValuesPerProc: 1},
}}},
+ {Key: StructKey{Name: "afs_options"}, Desc: &StructDesc{TypeCommon: TypeCommon{TypeName: "afs_options", IsVarlen: true}, Fields: []Type{
+ &BufferType{TypeCommon: TypeCommon{TypeName: "stringnoz", FldName: "autocell", TypeSize: 8}, Kind: 2, Values: []string{"autocell"}, NoZ: true},
+ &BufferType{TypeCommon: TypeCommon{TypeName: "stringnoz", FldName: "dyn", TypeSize: 3}, Kind: 2, Values: []string{"dyn"}, NoZ: true},
+ &BufferType{TypeCommon: TypeCommon{TypeName: "stringnoz", FldName: "flock_local", TypeSize: 11}, Kind: 2, Values: []string{"flock=local"}, NoZ: true},
+ &BufferType{TypeCommon: TypeCommon{TypeName: "stringnoz", FldName: "flock_openafs", TypeSize: 13}, Kind: 2, Values: []string{"flock=openafs"}, NoZ: true},
+ &BufferType{TypeCommon: TypeCommon{TypeName: "stringnoz", FldName: "flock_strict", TypeSize: 12}, Kind: 2, Values: []string{"flock=strict"}, NoZ: true},
+ &BufferType{TypeCommon: TypeCommon{TypeName: "stringnoz", FldName: "flock_write", TypeSize: 11}, Kind: 2, Values: []string{"flock=write"}, NoZ: true},
+ &StructType{Key: StructKey{Name: "fs_opt[\"source\", stringnoz]"}, FldName: "source"},
+ }}},
{Key: StructKey{Name: "alg_aead_name"}, Desc: &StructDesc{TypeCommon: TypeCommon{TypeName: "alg_aead_name", TypeSize: 64}, Fields: []Type{
&BufferType{TypeCommon: TypeCommon{TypeName: "string", FldName: "name", TypeSize: 64}, Kind: 2, Values: []string{"filled later\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00"}},
}}},
@@ -6046,6 +6055,11 @@ 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[\"source\", stringnoz]"}, Desc: &StructDesc{TypeCommon: TypeCommon{TypeName: "fs_opt[\"source\", stringnoz]", IsVarlen: true}, Fields: []Type{
+ &BufferType{TypeCommon: TypeCommon{TypeName: "stringnoz", FldName: "name", TypeSize: 6}, Kind: 2, Values: []string{"source"}, NoZ: true},
+ &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[\"sq\", fmt[hex, intptr]]"}, Desc: &StructDesc{TypeCommon: TypeCommon{TypeName: "fs_opt[\"sq\", fmt[hex, intptr]]", TypeSize: 21}, Fields: []Type{
&BufferType{TypeCommon: TypeCommon{TypeName: "stringnoz", FldName: "name", TypeSize: 2}, Kind: 2, Values: []string{"sq"}, NoZ: true},
&ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "eq", TypeSize: 1}}, Val: 61},
@@ -6181,6 +6195,10 @@ 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_elem[afs_options]"}, Desc: &StructDesc{TypeCommon: TypeCommon{TypeName: "fs_opt_elem[afs_options]", IsVarlen: true}, Fields: []Type{
+ &UnionType{Key: StructKey{Name: "afs_options"}, FldName: "elem"},
+ &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "comma", TypeSize: 1}}, Val: 44},
+ }}},
{Key: StructKey{Name: "fs_opt_elem[binder_options]"}, Desc: &StructDesc{TypeCommon: TypeCommon{TypeName: "fs_opt_elem[binder_options]", IsVarlen: true}, Fields: []Type{
&UnionType{Key: StructKey{Name: "binder_options"}, FldName: "elem"},
&ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "comma", TypeSize: 1}}, Val: 44},
@@ -6293,6 +6311,11 @@ var structDescs_amd64 = []*KeyedStruct{
&BufferType{TypeCommon: TypeCommon{TypeName: "stringnoz", FldName: "name", TypeSize: 4}, Kind: 2, Values: []string{"uid>"}, NoZ: true},
&ResourceType{TypeCommon: TypeCommon{TypeName: "uid", TypeSize: 20}, ArgFormat: 2},
}}},
+ {Key: StructKey{Name: "fs_options[afs_options]"}, Desc: &StructDesc{TypeCommon: TypeCommon{TypeName: "fs_options[afs_options]", IsVarlen: true}, Fields: []Type{
+ &ArrayType{TypeCommon: TypeCommon{TypeName: "array", FldName: "elems", IsVarlen: true}, Type: &StructType{Key: StructKey{Name: "fs_opt_elem[afs_options]"}}},
+ &ArrayType{TypeCommon: TypeCommon{TypeName: "array", FldName: "security", IsVarlen: true}, Type: &StructType{Key: StructKey{Name: "fs_opt_elem[fs_options_security]"}}},
+ &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "null", TypeSize: 1}}},
+ }}},
{Key: StructKey{Name: "fs_options[binder_options]"}, Desc: &StructDesc{TypeCommon: TypeCommon{TypeName: "fs_options[binder_options]", IsVarlen: true}, Fields: []Type{
&ArrayType{TypeCommon: TypeCommon{TypeName: "array", FldName: "elems", IsVarlen: true}, Type: &StructType{Key: StructKey{Name: "fs_opt_elem[binder_options]"}}},
&ArrayType{TypeCommon: TypeCommon{TypeName: "array", FldName: "security", IsVarlen: true}, Type: &StructType{Key: StructKey{Name: "fs_opt_elem[fs_options_security]"}}},
@@ -53235,6 +53258,15 @@ var syscalls_amd64 = []*Syscall{
&PtrType{TypeCommon: TypeCommon{TypeName: "ptr", FldName: "opts", TypeSize: 8}, Type: &ArrayType{TypeCommon: TypeCommon{TypeName: "array", IsVarlen: true}, Type: &UnionType{Key: StructKey{Name: "kvm_setup_opt_x86"}}, Kind: 1, RangeEnd: 2}},
&LenType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "len", FldName: "nopt", TypeSize: 8}}, Path: []string{"opts"}},
}},
+ {Name: "syz_mount_image$afs", CallName: "syz_mount_image", Args: []Type{
+ &PtrType{TypeCommon: TypeCommon{TypeName: "ptr", FldName: "fs", TypeSize: 8}, Type: &BufferType{TypeCommon: TypeCommon{TypeName: "string", TypeSize: 4}, Kind: 2, Values: []string{"afs\x00"}}},
+ &PtrType{TypeCommon: TypeCommon{TypeName: "ptr", FldName: "dir", TypeSize: 8}, Type: &BufferType{TypeCommon: TypeCommon{TypeName: "filename", IsVarlen: true}, Kind: 3}},
+ &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "intptr", FldName: "size", TypeSize: 8}}},
+ &LenType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "len", FldName: "nsegs", TypeSize: 8}}, Path: []string{"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: &StructType{Key: StructKey{Name: "fs_options[afs_options]"}}},
+ }},
{Name: "syz_mount_image$bfs", CallName: "syz_mount_image", Args: []Type{
&PtrType{TypeCommon: TypeCommon{TypeName: "ptr", FldName: "fs", TypeSize: 8}, Type: &BufferType{TypeCommon: TypeCommon{TypeName: "string", TypeSize: 4}, Kind: 2, Values: []string{"bfs\x00"}}},
&PtrType{TypeCommon: TypeCommon{TypeName: "ptr", FldName: "dir", TypeSize: 8}, Type: &BufferType{TypeCommon: TypeCommon{TypeName: "filename", IsVarlen: true}, Kind: 3}},
@@ -63895,4 +63927,4 @@ var consts_amd64 = []ConstValue{
{Name: "bpf_insn_load_imm_dw", Value: 24},
}
-const revision_amd64 = "38a43b930ff7be0a244868ae2a4984ba664404de"
+const revision_amd64 = "17a753d80e8bad19326f532382aa230ecb7c6c94"