aboutsummaryrefslogtreecommitdiffstats
path: root/sys/linux/gen/arm.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/arm.go
parent1bd353000d219835cc067459c5fb160466ba8bfb (diff)
sys/linux: add minimal AFS descriptions
Diffstat (limited to 'sys/linux/gen/arm.go')
-rw-r--r--sys/linux/gen/arm.go34
1 files changed, 33 insertions, 1 deletions
diff --git a/sys/linux/gen/arm.go b/sys/linux/gen/arm.go
index add7b24ab..718a09cfa 100644
--- a/sys/linux/gen/arm.go
+++ b/sys/linux/gen/arm.go
@@ -307,6 +307,15 @@ var structDescs_arm = []*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"}},
}}},
@@ -5946,6 +5955,11 @@ 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[\"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},
@@ -6081,6 +6095,10 @@ 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_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},
@@ -6193,6 +6211,11 @@ var structDescs_arm = []*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]"}}},
@@ -52203,6 +52226,15 @@ var syscalls_arm = []*Syscall{
&PtrType{TypeCommon: TypeCommon{TypeName: "ptr", FldName: "opts", TypeSize: 4}, 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: 4}}, Path: []string{"opts"}},
}},
+ {Name: "syz_mount_image$afs", CallName: "syz_mount_image", Args: []Type{
+ &PtrType{TypeCommon: TypeCommon{TypeName: "ptr", FldName: "fs", TypeSize: 4}, Type: &BufferType{TypeCommon: TypeCommon{TypeName: "string", TypeSize: 4}, Kind: 2, Values: []string{"afs\x00"}}},
+ &PtrType{TypeCommon: TypeCommon{TypeName: "ptr", FldName: "dir", TypeSize: 4}, Type: &BufferType{TypeCommon: TypeCommon{TypeName: "filename", IsVarlen: true}, Kind: 3}},
+ &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "intptr", FldName: "size", TypeSize: 4}}},
+ &LenType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "len", FldName: "nsegs", TypeSize: 4}}, Path: []string{"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: &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: 4}, Type: &BufferType{TypeCommon: TypeCommon{TypeName: "string", TypeSize: 4}, Kind: 2, Values: []string{"bfs\x00"}}},
&PtrType{TypeCommon: TypeCommon{TypeName: "ptr", FldName: "dir", TypeSize: 4}, Type: &BufferType{TypeCommon: TypeCommon{TypeName: "filename", IsVarlen: true}, Kind: 3}},
@@ -62773,4 +62805,4 @@ var consts_arm = []ConstValue{
{Name: "bpf_insn_load_imm_dw", Value: 24},
}
-const revision_arm = "919dbe85f64af29087a14d71e73a9e23255d703d"
+const revision_arm = "33f157f7e055b25d3ad1eaf28c940a18f7968296"