aboutsummaryrefslogtreecommitdiffstats
path: root/sys/linux
diff options
context:
space:
mode:
authorDmitry Vyukov <dvyukov@google.com>2018-08-14 16:39:50 -0700
committerDmitry Vyukov <dvyukov@google.com>2018-08-15 01:50:08 +0200
commit9ccc1d4565436890480aea12b6ae347384b2d1ab (patch)
tree5107ffac6ed40ceb9fb8592be4ccda0a34a16165 /sys/linux
parent0e6dcb8809ad92abc3828b58e2e383f8d98b03da (diff)
sys/linux: add uinput support
Diffstat (limited to 'sys/linux')
-rw-r--r--sys/linux/gen/386.go209
-rw-r--r--sys/linux/gen/amd64.go209
-rw-r--r--sys/linux/gen/arm.go209
-rw-r--r--sys/linux/gen/arm64.go209
-rw-r--r--sys/linux/gen/ppc64le.go209
-rw-r--r--sys/linux/input.txt24
-rw-r--r--sys/linux/input_386.const4
-rw-r--r--sys/linux/input_amd64.const4
-rw-r--r--sys/linux/input_arm.const4
-rw-r--r--sys/linux/input_arm64.const4
-rw-r--r--sys/linux/input_ppc64le.const4
-rw-r--r--sys/linux/sys.txt1
-rw-r--r--sys/linux/uinput.txt78
-rw-r--r--sys/linux/uinput_386.const41
-rw-r--r--sys/linux/uinput_amd64.const41
-rw-r--r--sys/linux/uinput_arm.const41
-rw-r--r--sys/linux/uinput_arm64.const41
-rw-r--r--sys/linux/uinput_ppc64le.const41
18 files changed, 1305 insertions, 68 deletions
diff --git a/sys/linux/gen/386.go b/sys/linux/gen/386.go
index 67d7873d3..958eb68ab 100644
--- a/sys/linux/gen/386.go
+++ b/sys/linux/gen/386.go
@@ -77,6 +77,7 @@ var resources_386 = []*ResourceDesc{
{Name: "fd_tun", Type: &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int32", TypeSize: 4}}}, Kind: []string{"fd", "fd_tun"}, Values: []uint64{18446744073709551615, 18446744073709551516}},
{Name: "fd_uffd", Type: &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int32", TypeSize: 4}}}, Kind: []string{"fd", "fd_uffd"}, Values: []uint64{18446744073709551615, 18446744073709551516}},
{Name: "fd_uhid", Type: &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int32", TypeSize: 4}}}, Kind: []string{"fd", "fd_uhid"}, Values: []uint64{18446744073709551615, 18446744073709551516}},
+ {Name: "fd_uinput", Type: &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int32", TypeSize: 4}}}, Kind: []string{"fd", "fd_uinput"}, Values: []uint64{18446744073709551615, 18446744073709551516}},
{Name: "fd_v4l2_buffer", Type: &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int32", TypeSize: 4}}}, Kind: []string{"fd", "fd_v4l2_buffer"}, Values: []uint64{18446744073709551615, 18446744073709551516}},
{Name: "fd_vhost", Type: &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int32", TypeSize: 4}}}, Kind: []string{"fd", "fd_vhost"}, Values: []uint64{18446744073709551615, 18446744073709551516}},
{Name: "fd_video", Type: &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int32", TypeSize: 4}}}, Kind: []string{"fd", "fd_video"}, Values: []uint64{18446744073709551615, 18446744073709551516}},
@@ -3348,7 +3349,7 @@ var structDescs_386 = []*KeyedStruct{
&IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int16", FldName: "level", TypeSize: 2}}},
&StructType{Key: StructKey{Name: "ff_envelope"}, FldName: "envelop"},
}}},
- {Key: StructKey{Name: "ff_effect"}, Desc: &StructDesc{TypeCommon: TypeCommon{TypeName: "ff_effect", IsVarlen: true}, Fields: []Type{
+ {Key: StructKey{Name: "ff_effect"}, Desc: &StructDesc{TypeCommon: TypeCommon{TypeName: "ff_effect", TypeSize: 44}, Fields: []Type{
&FlagsType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "ff_effect_type", FldName: "type", TypeSize: 2}}, Vals: []uint64{81, 82, 83, 84, 85, 86, 87}},
&IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int16", FldName: "id", TypeSize: 2}}},
&IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int16", FldName: "dir", TypeSize: 2}}},
@@ -3357,7 +3358,7 @@ var structDescs_386 = []*KeyedStruct{
&ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "pad", TypeSize: 2}}, IsPad: true},
&UnionType{Key: StructKey{Name: "ff_effect_u"}, FldName: "u"},
}}},
- {Key: StructKey{Name: "ff_effect_u"}, Desc: &StructDesc{TypeCommon: TypeCommon{TypeName: "ff_effect_u", IsVarlen: true}, Fields: []Type{
+ {Key: StructKey{Name: "ff_effect_u"}, Desc: &StructDesc{TypeCommon: TypeCommon{TypeName: "ff_effect_u", TypeSize: 28}, Fields: []Type{
&StructType{Key: StructKey{Name: "ff_constant_effect"}, FldName: "const"},
&StructType{Key: StructKey{Name: "ff_ramp_effect"}, FldName: "ramp"},
&StructType{Key: StructKey{Name: "ff_periodic_effect"}, FldName: "period"},
@@ -3370,16 +3371,16 @@ var structDescs_386 = []*KeyedStruct{
&IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int16", FldName: "flen", TypeSize: 2}}},
&IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int16", FldName: "flevel", TypeSize: 2}}},
}}},
- {Key: StructKey{Name: "ff_periodic_effect"}, Desc: &StructDesc{TypeCommon: TypeCommon{TypeName: "ff_periodic_effect", IsVarlen: true}, Fields: []Type{
+ {Key: StructKey{Name: "ff_periodic_effect"}, Desc: &StructDesc{TypeCommon: TypeCommon{TypeName: "ff_periodic_effect", TypeSize: 28}, Fields: []Type{
&FlagsType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "ff_periodic_effect_wave", FldName: "wave", TypeSize: 2}}, Vals: []uint64{88, 89, 90, 91, 92, 93}},
&IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int16", FldName: "period", TypeSize: 2}}},
&IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int16", FldName: "magnit", TypeSize: 2}}},
&IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int16", FldName: "offset", TypeSize: 2}}},
&IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int16", FldName: "phase", TypeSize: 2}}},
- &StructType{Key: StructKey{Name: "ff_envelope"}, FldName: "envelop"},
+ &StructType{Key: StructKey{Name: "ff_envelope"}, FldName: "envelope"},
&ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "pad", TypeSize: 2}}, IsPad: true},
- &LenType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "len", FldName: "len", TypeSize: 4}}, Buf: "custom"},
- &ArrayType{TypeCommon: TypeCommon{TypeName: "array", FldName: "custom", IsVarlen: true}, Type: &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int16", TypeSize: 2}}}},
+ &LenType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "len", FldName: "custom_len", TypeSize: 4}}, Buf: "custom_data"},
+ &PtrType{TypeCommon: TypeCommon{TypeName: "ptr", FldName: "custom_data", TypeSize: 4}, Type: &ArrayType{TypeCommon: TypeCommon{TypeName: "array", IsVarlen: true}, Type: &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int16", TypeSize: 2}}}}},
}}},
{Key: StructKey{Name: "ff_ramp_effect"}, Desc: &StructDesc{TypeCommon: TypeCommon{TypeName: "ff_ramp_effect", TypeSize: 12}, Fields: []Type{
&IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int16", FldName: "slevel", TypeSize: 2}}},
@@ -5555,10 +5556,16 @@ var structDescs_386 = []*KeyedStruct{
}}},
{Key: StructKey{Name: "input_event"}, Desc: &StructDesc{TypeCommon: TypeCommon{TypeName: "input_event", TypeSize: 16}, Fields: []Type{
&StructType{Key: StructKey{Name: "timeval"}, FldName: "time"},
- &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int16", FldName: "type", TypeSize: 2}}},
+ &FlagsType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "input_codes", FldName: "type", TypeSize: 2}}, Vals: []uint64{0, 1, 2, 3, 4, 5, 17, 18, 20, 21, 22, 23, 31}},
&IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int16", FldName: "code", TypeSize: 2}}},
&IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int32", FldName: "val", TypeSize: 4}}},
}}},
+ {Key: StructKey{Name: "input_id"}, Desc: &StructDesc{TypeCommon: TypeCommon{TypeName: "input_id", TypeSize: 8}, Fields: []Type{
+ &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int16", FldName: "bustype", TypeSize: 2}}},
+ &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int16", FldName: "vendor", TypeSize: 2}}},
+ &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int16", FldName: "product", TypeSize: 2}}},
+ &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int16", FldName: "version", TypeSize: 2}}},
+ }}},
{Key: StructKey{Name: "input_keymap_entry"}, Desc: &StructDesc{TypeCommon: TypeCommon{TypeName: "input_keymap_entry", TypeSize: 40}, Fields: []Type{
&IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int8", FldName: "flags", TypeSize: 1}}},
&IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int8", FldName: "len", TypeSize: 1}}, Kind: 2, RangeEnd: 32},
@@ -5567,7 +5574,7 @@ var structDescs_386 = []*KeyedStruct{
&BufferType{TypeCommon: TypeCommon{TypeName: "array", FldName: "scancod", TypeSize: 32}, Kind: 1, RangeBegin: 32, RangeEnd: 32},
}}},
{Key: StructKey{Name: "input_mask"}, Desc: &StructDesc{TypeCommon: TypeCommon{TypeName: "input_mask", TypeSize: 12}, Fields: []Type{
- &FlagsType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "input_mask_type", FldName: "type", TypeSize: 4}}, Vals: []uint64{0, 1, 2, 3, 4, 5, 17, 18, 21}},
+ &FlagsType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "input_codes", FldName: "type", TypeSize: 4}}, Vals: []uint64{0, 1, 2, 3, 4, 5, 17, 18, 20, 21, 22, 23, 31}},
&LenType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "bytesize", FldName: "size", TypeSize: 4}}, BitSize: 8, Buf: "ptr"},
&PtrType{TypeCommon: TypeCommon{TypeName: "buffer", FldName: "ptr", TypeSize: 4}, Type: &BufferType{TypeCommon: TypeCommon{IsVarlen: true}}},
}}},
@@ -18577,6 +18584,36 @@ var structDescs_386 = []*KeyedStruct{
&LenType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "len", FldName: "size", TypeSize: 2}}, Buf: "data"},
&BufferType{TypeCommon: TypeCommon{TypeName: "array", FldName: "data", IsVarlen: true}},
}}},
+ {Key: StructKey{Name: "uinput_abs_setup"}, Desc: &StructDesc{TypeCommon: TypeCommon{TypeName: "uinput_abs_setup", TypeSize: 28}, Fields: []Type{
+ &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int16", FldName: "code", TypeSize: 2}}},
+ &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "pad", TypeSize: 2}}, IsPad: true},
+ &StructType{Key: StructKey{Name: "input_absinfo"}, FldName: "absinfo"},
+ }}},
+ {Key: StructKey{Name: "uinput_ff_erase"}, Desc: &StructDesc{TypeCommon: TypeCommon{TypeName: "uinput_ff_erase", TypeSize: 12}, Fields: []Type{
+ &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int32", FldName: "request_id", TypeSize: 4}}, Kind: 2, RangeEnd: 16},
+ &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int32", FldName: "retval", TypeSize: 4}}},
+ &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int32", FldName: "effect_id", TypeSize: 4}}},
+ }}},
+ {Key: StructKey{Name: "uinput_ff_upload"}, Desc: &StructDesc{TypeCommon: TypeCommon{TypeName: "uinput_ff_upload", TypeSize: 96}, Fields: []Type{
+ &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int32", FldName: "request_id", TypeSize: 4}}, Kind: 2, RangeEnd: 16},
+ &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int32", FldName: "retval", TypeSize: 4}}},
+ &StructType{Key: StructKey{Name: "ff_effect"}, FldName: "effect"},
+ &StructType{Key: StructKey{Name: "ff_effect"}, FldName: "old"},
+ }}},
+ {Key: StructKey{Name: "uinput_setup"}, Desc: &StructDesc{TypeCommon: TypeCommon{TypeName: "uinput_setup", TypeSize: 92}, Fields: []Type{
+ &StructType{Key: StructKey{Name: "input_id"}, FldName: "id"},
+ &BufferType{TypeCommon: TypeCommon{TypeName: "string", FldName: "name", TypeSize: 80}, Kind: 2, SubKind: "uinput_names", Values: []string{"syz0\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\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00", "syz1\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\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00"}},
+ &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int32", FldName: "ff_effects_max", TypeSize: 4}}, Kind: 2, RangeBegin: 1, RangeEnd: 87},
+ }}},
+ {Key: StructKey{Name: "uinput_user_dev"}, Desc: &StructDesc{TypeCommon: TypeCommon{TypeName: "uinput_user_dev", TypeSize: 1116}, Fields: []Type{
+ &BufferType{TypeCommon: TypeCommon{TypeName: "string", FldName: "name", TypeSize: 80}, Kind: 2, SubKind: "uinput_names", Values: []string{"syz0\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\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00", "syz1\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\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00"}},
+ &StructType{Key: StructKey{Name: "input_id"}, FldName: "id"},
+ &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int32", FldName: "ff_effects_max", TypeSize: 4}}, Kind: 2, RangeBegin: 1, RangeEnd: 87},
+ &ArrayType{TypeCommon: TypeCommon{TypeName: "array", FldName: "absmax", TypeSize: 256}, Type: &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int32", TypeSize: 4}}}, Kind: 1, RangeBegin: 64, RangeEnd: 64},
+ &ArrayType{TypeCommon: TypeCommon{TypeName: "array", FldName: "absmin", TypeSize: 256}, Type: &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int32", TypeSize: 4}}}, Kind: 1, RangeBegin: 64, RangeEnd: 64},
+ &ArrayType{TypeCommon: TypeCommon{TypeName: "array", FldName: "absfuzz", TypeSize: 256}, Type: &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int32", TypeSize: 4}}}, Kind: 1, RangeBegin: 64, RangeEnd: 64},
+ &ArrayType{TypeCommon: TypeCommon{TypeName: "array", FldName: "absflat", TypeSize: 256}, Type: &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int32", TypeSize: 4}}}, Kind: 1, RangeBegin: 64, RangeEnd: 64},
+ }}},
{Key: StructKey{Name: "unimapdesc_in"}, Desc: &StructDesc{TypeCommon: TypeCommon{TypeName: "unimapdesc_in", TypeSize: 8}, Fields: []Type{
&LenType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "len", FldName: "cnt", TypeSize: 2}}, Buf: "entries"},
&ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "pad", TypeSize: 2}}, IsPad: true},
@@ -26994,6 +27031,109 @@ var syscalls_386 = []*Syscall{
&ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "cmd", TypeSize: 4}}, Val: 3223366148},
&PtrType{TypeCommon: TypeCommon{TypeName: "ptr", FldName: "arg", TypeSize: 4}, Type: &StructType{Key: StructKey{Name: "uffdio_zeropage"}}},
}},
+ {NR: 54, Name: "ioctl$UI_ABS_SETUP", CallName: "ioctl", Args: []Type{
+ &ResourceType{TypeCommon: TypeCommon{TypeName: "fd_uinput", FldName: "fd", TypeSize: 4}},
+ &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "cmd", TypeSize: 4}}, Val: 1075598596},
+ &PtrType{TypeCommon: TypeCommon{TypeName: "ptr", FldName: "arg", TypeSize: 4}, Type: &StructType{Key: StructKey{Name: "uinput_abs_setup"}}},
+ }},
+ {NR: 54, Name: "ioctl$UI_BEGIN_FF_ERASE", CallName: "ioctl", Args: []Type{
+ &ResourceType{TypeCommon: TypeCommon{TypeName: "fd_uinput", FldName: "fd", TypeSize: 4}},
+ &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "cmd", TypeSize: 4}}, Val: 3222033866},
+ &PtrType{TypeCommon: TypeCommon{TypeName: "ptr", FldName: "arg", TypeSize: 4}, Type: &StructType{Key: StructKey{Name: "uinput_ff_erase"}}},
+ }},
+ {NR: 54, Name: "ioctl$UI_BEGIN_FF_UPLOAD", CallName: "ioctl", Args: []Type{
+ &ResourceType{TypeCommon: TypeCommon{TypeName: "fd_uinput", FldName: "fd", TypeSize: 4}},
+ &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "cmd", TypeSize: 4}}, Val: 3227538888},
+ &PtrType{TypeCommon: TypeCommon{TypeName: "ptr", FldName: "arg", TypeSize: 4}, Type: &StructType{Key: StructKey{Name: "uinput_ff_upload"}}},
+ }},
+ {NR: 54, Name: "ioctl$UI_DEV_CREATE", CallName: "ioctl", Args: []Type{
+ &ResourceType{TypeCommon: TypeCommon{TypeName: "fd_uinput", FldName: "fd", TypeSize: 4}},
+ &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "cmd", TypeSize: 4}}, Val: 21761},
+ }},
+ {NR: 54, Name: "ioctl$UI_DEV_DESTROY", CallName: "ioctl", Args: []Type{
+ &ResourceType{TypeCommon: TypeCommon{TypeName: "fd_uinput", FldName: "fd", TypeSize: 4}},
+ &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "cmd", TypeSize: 4}}, Val: 21762},
+ }},
+ {NR: 54, Name: "ioctl$UI_DEV_SETUP", CallName: "ioctl", Args: []Type{
+ &ResourceType{TypeCommon: TypeCommon{TypeName: "fd_uinput", FldName: "fd", TypeSize: 4}},
+ &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "cmd", TypeSize: 4}}, Val: 1079792899},
+ &PtrType{TypeCommon: TypeCommon{TypeName: "ptr", FldName: "arg", TypeSize: 4}, Type: &StructType{Key: StructKey{Name: "uinput_setup"}}},
+ }},
+ {NR: 54, Name: "ioctl$UI_END_FF_ERASE", CallName: "ioctl", Args: []Type{
+ &ResourceType{TypeCommon: TypeCommon{TypeName: "fd_uinput", FldName: "fd", TypeSize: 4}},
+ &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "cmd", TypeSize: 4}}, Val: 1074550219},
+ &PtrType{TypeCommon: TypeCommon{TypeName: "ptr", FldName: "arg", TypeSize: 4}, Type: &StructType{Key: StructKey{Name: "uinput_ff_erase"}}},
+ }},
+ {NR: 54, Name: "ioctl$UI_END_FF_UPLOAD", CallName: "ioctl", Args: []Type{
+ &ResourceType{TypeCommon: TypeCommon{TypeName: "fd_uinput", FldName: "fd", TypeSize: 4}},
+ &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "cmd", TypeSize: 4}}, Val: 1080055241},
+ &PtrType{TypeCommon: TypeCommon{TypeName: "ptr", FldName: "arg", TypeSize: 4}, Type: &StructType{Key: StructKey{Name: "uinput_ff_upload"}}},
+ }},
+ {NR: 54, Name: "ioctl$UI_GET_SYSNAME", CallName: "ioctl", Args: []Type{
+ &ResourceType{TypeCommon: TypeCommon{TypeName: "fd_uinput", FldName: "fd", TypeSize: 4}},
+ &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "cmd", TypeSize: 4}}, Val: 2151699756},
+ &PtrType{TypeCommon: TypeCommon{TypeName: "ptr", FldName: "arg", TypeSize: 4}, Type: &BufferType{TypeCommon: TypeCommon{TypeName: "array", TypeSize: 64, ArgDir: 1}, Kind: 1, RangeBegin: 64, RangeEnd: 64}},
+ }},
+ {NR: 54, Name: "ioctl$UI_GET_VERSION", CallName: "ioctl", Args: []Type{
+ &ResourceType{TypeCommon: TypeCommon{TypeName: "fd_uinput", FldName: "fd", TypeSize: 4}},
+ &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "cmd", TypeSize: 4}}, Val: 2147767597},
+ &PtrType{TypeCommon: TypeCommon{TypeName: "ptr", FldName: "arg", TypeSize: 4}, Type: &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int32", TypeSize: 4, ArgDir: 1}}}},
+ }},
+ {NR: 54, Name: "ioctl$UI_SET_ABSBIT", CallName: "ioctl", Args: []Type{
+ &ResourceType{TypeCommon: TypeCommon{TypeName: "fd_uinput", FldName: "fd", TypeSize: 4}},
+ &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "cmd", TypeSize: 4}}, Val: 1074025831},
+ &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "intptr", FldName: "arg", TypeSize: 4}}, Kind: 2, RangeEnd: 7},
+ }},
+ {NR: 54, Name: "ioctl$UI_SET_EVBIT", CallName: "ioctl", Args: []Type{
+ &ResourceType{TypeCommon: TypeCommon{TypeName: "fd_uinput", FldName: "fd", TypeSize: 4}},
+ &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "cmd", TypeSize: 4}}, Val: 1074025828},
+ &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "intptr", FldName: "arg", TypeSize: 4}}, Kind: 2, RangeEnd: 31},
+ }},
+ {NR: 54, Name: "ioctl$UI_SET_FFBIT", CallName: "ioctl", Args: []Type{
+ &ResourceType{TypeCommon: TypeCommon{TypeName: "fd_uinput", FldName: "fd", TypeSize: 4}},
+ &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "cmd", TypeSize: 4}}, Val: 1074025835},
+ &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "intptr", FldName: "arg", TypeSize: 4}}, Kind: 2, RangeEnd: 127},
+ }},
+ {NR: 54, Name: "ioctl$UI_SET_KEYBIT", CallName: "ioctl", Args: []Type{
+ &ResourceType{TypeCommon: TypeCommon{TypeName: "fd_uinput", FldName: "fd", TypeSize: 4}},
+ &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "cmd", TypeSize: 4}}, Val: 1074025829},
+ &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "intptr", FldName: "arg", TypeSize: 4}}, Kind: 2, RangeEnd: 767},
+ }},
+ {NR: 54, Name: "ioctl$UI_SET_LEDBIT", CallName: "ioctl", Args: []Type{
+ &ResourceType{TypeCommon: TypeCommon{TypeName: "fd_uinput", FldName: "fd", TypeSize: 4}},
+ &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "cmd", TypeSize: 4}}, Val: 1074025833},
+ &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "intptr", FldName: "arg", TypeSize: 4}}, Kind: 2, RangeEnd: 15},
+ }},
+ {NR: 54, Name: "ioctl$UI_SET_MSCBIT", CallName: "ioctl", Args: []Type{
+ &ResourceType{TypeCommon: TypeCommon{TypeName: "fd_uinput", FldName: "fd", TypeSize: 4}},
+ &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "cmd", TypeSize: 4}}, Val: 1074025832},
+ &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "intptr", FldName: "arg", TypeSize: 4}}, Kind: 2, RangeEnd: 63},
+ }},
+ {NR: 54, Name: "ioctl$UI_SET_PHYS", CallName: "ioctl", Args: []Type{
+ &ResourceType{TypeCommon: TypeCommon{TypeName: "fd_uinput", FldName: "fd", TypeSize: 4}},
+ &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "cmd", TypeSize: 4}}, Val: 1074025836},
+ &PtrType{TypeCommon: TypeCommon{TypeName: "ptr", FldName: "arg", TypeSize: 4}, Type: &BufferType{TypeCommon: TypeCommon{TypeName: "string", TypeSize: 5}, Kind: 2, SubKind: "uinput_names", Values: []string{"syz0\x00", "syz1\x00"}}},
+ }},
+ {NR: 54, Name: "ioctl$UI_SET_PROPBIT", CallName: "ioctl", Args: []Type{
+ &ResourceType{TypeCommon: TypeCommon{TypeName: "fd_uinput", FldName: "fd", TypeSize: 4}},
+ &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "cmd", TypeSize: 4}}, Val: 1074025838},
+ &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "intptr", FldName: "arg", TypeSize: 4}}, Kind: 2, RangeEnd: 31},
+ }},
+ {NR: 54, Name: "ioctl$UI_SET_RELBIT", CallName: "ioctl", Args: []Type{
+ &ResourceType{TypeCommon: TypeCommon{TypeName: "fd_uinput", FldName: "fd", TypeSize: 4}},
+ &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "cmd", TypeSize: 4}}, Val: 1074025830},
+ &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "intptr", FldName: "arg", TypeSize: 4}}, Kind: 2, RangeEnd: 15},
+ }},
+ {NR: 54, Name: "ioctl$UI_SET_SNDBIT", CallName: "ioctl", Args: []Type{
+ &ResourceType{TypeCommon: TypeCommon{TypeName: "fd_uinput", FldName: "fd", TypeSize: 4}},
+ &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "cmd", TypeSize: 4}}, Val: 1074025834},
+ &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "intptr", FldName: "arg", TypeSize: 4}}, Kind: 2, RangeEnd: 7},
+ }},
+ {NR: 54, Name: "ioctl$UI_SET_SWBIT", CallName: "ioctl", Args: []Type{
+ &ResourceType{TypeCommon: TypeCommon{TypeName: "fd_uinput", FldName: "fd", TypeSize: 4}},
+ &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "cmd", TypeSize: 4}}, Val: 1074025837},
+ &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "intptr", FldName: "arg", TypeSize: 4}}, Kind: 2, RangeEnd: 15},
+ }},
{NR: 54, Name: "ioctl$VHOST_GET_FEATURES", CallName: "ioctl", Args: []Type{
&ResourceType{TypeCommon: TypeCommon{TypeName: "fd_vhost", FldName: "fd", TypeSize: 4}},
&ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "cmd", TypeSize: 4}}, Val: 2148052736},
@@ -29018,9 +29158,9 @@ var syscalls_386 = []*Syscall{
{NR: 295, Name: "openat$uinput", CallName: "openat", Args: []Type{
&ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "fd", TypeSize: 4}}, Val: 18446744073709551516},
&PtrType{TypeCommon: TypeCommon{TypeName: "ptr", FldName: "file", TypeSize: 4}, Type: &BufferType{TypeCommon: TypeCommon{TypeName: "string", TypeSize: 12}, Kind: 2, Values: []string{"/dev/uinput\x00"}}},
- &FlagsType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "open_flags", FldName: "flags", TypeSize: 4}}, Vals: []uint64{0, 1, 2, 1024, 8192, 524288, 64, 16384, 65536, 128, 32768, 262144, 256, 131072, 2048, 2097152, 1052672, 512, 4194304}, BitMask: true},
+ &FlagsType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "uinput_open_flags", FldName: "flags", TypeSize: 4}}, Vals: []uint64{2, 2050}},
&ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "mode", TypeSize: 4}}},
- }, Ret: &ResourceType{TypeCommon: TypeCommon{TypeName: "fd", FldName: "ret", TypeSize: 4, ArgDir: 1}}},
+ }, Ret: &ResourceType{TypeCommon: TypeCommon{TypeName: "fd_uinput", FldName: "ret", TypeSize: 4, ArgDir: 1}}},
{NR: 295, Name: "openat$urandom", CallName: "openat", Args: []Type{
&ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "fd", TypeSize: 4}}, Val: 18446744073709551516},
&PtrType{TypeCommon: TypeCommon{TypeName: "ptr", FldName: "file", TypeSize: 4}, Type: &BufferType{TypeCommon: TypeCommon{TypeName: "string", TypeSize: 13}, Kind: 2, Values: []string{"/dev/urandom\x00"}}},
@@ -33230,6 +33370,11 @@ var syscalls_386 = []*Syscall{
&PtrType{TypeCommon: TypeCommon{TypeName: "ptr", FldName: "val", TypeSize: 4}, Type: &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int64", TypeSize: 8}}}},
&LenType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "len", FldName: "len", TypeSize: 4}}, Buf: "val"},
}},
+ {NR: 4, Name: "write$input_event", CallName: "write", Args: []Type{
+ &ResourceType{TypeCommon: TypeCommon{TypeName: "fd_uinput", FldName: "fd", TypeSize: 4}},
+ &PtrType{TypeCommon: TypeCommon{TypeName: "ptr", FldName: "data", TypeSize: 4}, Type: &StructType{Key: StructKey{Name: "input_event"}}},
+ &LenType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "len", FldName: "len", TypeSize: 4}}, Buf: "data"},
+ }},
{NR: 4, Name: "write$selinux_access", CallName: "write", Args: []Type{
&ResourceType{TypeCommon: TypeCommon{TypeName: "fd_selinux_access", FldName: "fd", TypeSize: 4}},
&PtrType{TypeCommon: TypeCommon{TypeName: "ptr", FldName: "buf", TypeSize: 4}, Type: &StructType{Key: StructKey{Name: "selinux_access_req"}}},
@@ -33270,6 +33415,11 @@ var syscalls_386 = []*Syscall{
&PtrType{TypeCommon: TypeCommon{TypeName: "ptr", FldName: "buf", TypeSize: 4}, Type: &StructType{Key: StructKey{Name: "tun_buffer"}}},
&LenType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "len", FldName: "count", TypeSize: 4}}, Buf: "buf"},
}},
+ {NR: 4, Name: "write$uinput_user_dev", CallName: "write", Args: []Type{
+ &ResourceType{TypeCommon: TypeCommon{TypeName: "fd_uinput", FldName: "fd", TypeSize: 4}},
+ &PtrType{TypeCommon: TypeCommon{TypeName: "ptr", FldName: "data", TypeSize: 4}, Type: &StructType{Key: StructKey{Name: "uinput_user_dev"}}},
+ &LenType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "len", FldName: "len", TypeSize: 4}}, Buf: "data"},
+ }},
{NR: 4, Name: "write$vnet", CallName: "write", Args: []Type{
&ResourceType{TypeCommon: TypeCommon{TypeName: "vhost_net", FldName: "fd", TypeSize: 4}},
&PtrType{TypeCommon: TypeCommon{TypeName: "ptr", FldName: "buf", TypeSize: 4}, Type: &StructType{Key: StructKey{Name: "vhost_msg"}}},
@@ -33283,6 +33433,8 @@ var syscalls_386 = []*Syscall{
}
var consts_386 = []ConstValue{
+ {Name: "ABS_CNT", Value: 64},
+ {Name: "ABS_MAX", Value: 63},
{Name: "ADDR_COMPAT_LAYOUT", Value: 2097152},
{Name: "ADDR_LIMIT_32BIT", Value: 8388608},
{Name: "ADDR_LIMIT_3GB", Value: 134217728},
@@ -34251,10 +34403,14 @@ var consts_386 = []ConstValue{
{Name: "EVIOCSREP", Value: 1074283779},
{Name: "EV_ABS", Value: 3},
{Name: "EV_FF", Value: 21},
+ {Name: "EV_FF_STATUS", Value: 23},
{Name: "EV_KEY", Value: 1},
{Name: "EV_LED", Value: 17},
+ {Name: "EV_MAX", Value: 31},
{Name: "EV_MSC", Value: 4},
+ {Name: "EV_PWR", Value: 22},
{Name: "EV_REL", Value: 2},
+ {Name: "EV_REP", Value: 20},
{Name: "EV_SND", Value: 18},
{Name: "EV_SW", Value: 5},
{Name: "EV_SYN"},
@@ -34294,8 +34450,10 @@ var consts_386 = []ConstValue{
{Name: "FF_CONSTANT", Value: 82},
{Name: "FF_CUSTOM", Value: 93},
{Name: "FF_DAMPER", Value: 85},
+ {Name: "FF_EFFECT_MAX", Value: 87},
{Name: "FF_FRICTION", Value: 84},
{Name: "FF_INERTIA", Value: 86},
+ {Name: "FF_MAX", Value: 127},
{Name: "FF_PERIODIC", Value: 81},
{Name: "FF_RAMP", Value: 87},
{Name: "FF_SAW_DOWN", Value: 92},
@@ -34861,6 +35019,7 @@ var consts_386 = []ConstValue{
{Name: "IGMP_PIM", Value: 20},
{Name: "IGMP_TRACE", Value: 21},
{Name: "INOTIFY_IOC_SETNEXTWD", Value: 1074022656},
+ {Name: "INPUT_PROP_MAX", Value: 31},
{Name: "IN_ACCESS", Value: 1},
{Name: "IN_ATTRIB", Value: 4},
{Name: "IN_CLOEXEC", Value: 524288},
@@ -35396,6 +35555,7 @@ var consts_386 = []ConstValue{
{Name: "KEY_GRP_SETATTR", Value: 8192},
{Name: "KEY_GRP_VIEW", Value: 256},
{Name: "KEY_GRP_WRITE", Value: 1024},
+ {Name: "KEY_MAX", Value: 767},
{Name: "KEY_OTH_LINK", Value: 16},
{Name: "KEY_OTH_READ", Value: 2},
{Name: "KEY_OTH_SEARCH", Value: 8},
@@ -35599,6 +35759,7 @@ var consts_386 = []ConstValue{
{Name: "L2CAP_LM_SECURE", Value: 32},
{Name: "L2CAP_LM_TRUSTED", Value: 8},
{Name: "L2CAP_OPTIONS", Value: 1},
+ {Name: "LED_MAX", Value: 15},
{Name: "LLC_OPT_ACK_TMR_EXP", Value: 3},
{Name: "LLC_OPT_BUSY_TMR_EXP", Value: 6},
{Name: "LLC_OPT_PKTINFO", Value: 9},
@@ -35878,6 +36039,7 @@ var consts_386 = []ConstValue{
{Name: "MRT6_PIM", Value: 208},
{Name: "MRT6_TABLE", Value: 209},
{Name: "MRT6_VERSION", Value: 206},
+ {Name: "MSC_MAX", Value: 7},
{Name: "MSG_BATCH", Value: 262144},
{Name: "MSG_CMSG_CLOEXEC", Value: 1073741824},
{Name: "MSG_CONFIRM", Value: 2048},
@@ -36585,6 +36747,7 @@ var consts_386 = []ConstValue{
{Name: "RDS_TRANS_NONE", Value: 18446744073709551615},
{Name: "RDS_TRANS_TCP", Value: 2},
{Name: "READ_IMPLIES_EXEC", Value: 4194304},
+ {Name: "REL_MAX", Value: 15},
{Name: "RENAME_EXCHANGE", Value: 2},
{Name: "RENAME_NOREPLACE", Value: 1},
{Name: "RENAME_WHITEOUT", Value: 4},
@@ -37280,6 +37443,7 @@ var consts_386 = []ConstValue{
{Name: "SNDRV_TIMER_SCLASS_SEQUENCER", Value: 2},
{Name: "SND_CTL_ELEM_INFO_SIZE", Value: 272},
{Name: "SND_CTL_ELEM_VALUE_SIZE", Value: 708},
+ {Name: "SND_MAX", Value: 7},
{Name: "SOCKADDR_PPPOX_SIZE", Value: 30},
{Name: "SOCKADDR_SIZE", Value: 16},
{Name: "SOCKADDR_STORAGE_SIZE", Value: 128},
@@ -37430,6 +37594,7 @@ var consts_386 = []ConstValue{
{Name: "STATX_TYPE", Value: 1},
{Name: "STATX_UID", Value: 8},
{Name: "STICKY_TIMEOUTS", Value: 67108864},
+ {Name: "SW_MAX", Value: 15},
{Name: "SYNC_FILE_RANGE_WAIT_AFTER", Value: 4},
{Name: "SYNC_FILE_RANGE_WAIT_BEFORE", Value: 1},
{Name: "SYNC_FILE_RANGE_WRITE", Value: 2},
@@ -37963,6 +38128,28 @@ var consts_386 = []ConstValue{
{Name: "UHID_INPUT", Value: 8},
{Name: "UHID_INPUT2", Value: 12},
{Name: "UHID_SET_REPORT_REPLY", Value: 14},
+ {Name: "UINPUT_MAX_NAME_SIZE", Value: 80},
+ {Name: "UI_ABS_SETUP", Value: 1075598596},
+ {Name: "UI_BEGIN_FF_ERASE", Value: 3222033866},
+ {Name: "UI_BEGIN_FF_UPLOAD", Value: 3227538888},
+ {Name: "UI_DEV_CREATE", Value: 21761},
+ {Name: "UI_DEV_DESTROY", Value: 21762},
+ {Name: "UI_DEV_SETUP", Value: 1079792899},
+ {Name: "UI_END_FF_ERASE", Value: 1074550219},
+ {Name: "UI_END_FF_UPLOAD", Value: 1080055241},
+ {Name: "UI_GET_SYSNAME_64", Value: 2151699756},
+ {Name: "UI_GET_VERSION", Value: 2147767597},
+ {Name: "UI_SET_ABSBIT", Value: 1074025831},
+ {Name: "UI_SET_EVBIT", Value: 1074025828},
+ {Name: "UI_SET_FFBIT", Value: 1074025835},
+ {Name: "UI_SET_KEYBIT", Value: 1074025829},
+ {Name: "UI_SET_LEDBIT", Value: 1074025833},
+ {Name: "UI_SET_MSCBIT", Value: 1074025832},
+ {Name: "UI_SET_PHYS", Value: 1074025836},
+ {Name: "UI_SET_PROPBIT", Value: 1074025838},
+ {Name: "UI_SET_RELBIT", Value: 1074025830},
+ {Name: "UI_SET_SNDBIT", Value: 1074025834},
+ {Name: "UI_SET_SWBIT", Value: 1074025837},
{Name: "UMOUNT_NOFOLLOW", Value: 8},
{Name: "UNIX_PATH_MAX", Value: 108},
{Name: "USER_CLIENT", Value: 1},
@@ -39618,4 +39805,4 @@ var consts_386 = []ConstValue{
{Name: "bpf_insn_load_imm_dw", Value: 24},
}
-const revision_386 = "371f5cdf7a566e7e713ac05de90dcd82eea01e96"
+const revision_386 = "8600e9d5ccdb9ef2faf96e906017cd916330b6cd"
diff --git a/sys/linux/gen/amd64.go b/sys/linux/gen/amd64.go
index 5c29819cc..2e8a4a7f6 100644
--- a/sys/linux/gen/amd64.go
+++ b/sys/linux/gen/amd64.go
@@ -77,6 +77,7 @@ var resources_amd64 = []*ResourceDesc{
{Name: "fd_tun", Type: &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int32", TypeSize: 4}}}, Kind: []string{"fd", "fd_tun"}, Values: []uint64{18446744073709551615, 18446744073709551516}},
{Name: "fd_uffd", Type: &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int32", TypeSize: 4}}}, Kind: []string{"fd", "fd_uffd"}, Values: []uint64{18446744073709551615, 18446744073709551516}},
{Name: "fd_uhid", Type: &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int32", TypeSize: 4}}}, Kind: []string{"fd", "fd_uhid"}, Values: []uint64{18446744073709551615, 18446744073709551516}},
+ {Name: "fd_uinput", Type: &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int32", TypeSize: 4}}}, Kind: []string{"fd", "fd_uinput"}, Values: []uint64{18446744073709551615, 18446744073709551516}},
{Name: "fd_v4l2_buffer", Type: &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int32", TypeSize: 4}}}, Kind: []string{"fd", "fd_v4l2_buffer"}, Values: []uint64{18446744073709551615, 18446744073709551516}},
{Name: "fd_vhost", Type: &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int32", TypeSize: 4}}}, Kind: []string{"fd", "fd_vhost"}, Values: []uint64{18446744073709551615, 18446744073709551516}},
{Name: "fd_video", Type: &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int32", TypeSize: 4}}}, Kind: []string{"fd", "fd_video"}, Values: []uint64{18446744073709551615, 18446744073709551516}},
@@ -3432,7 +3433,7 @@ var structDescs_amd64 = []*KeyedStruct{
&IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int16", FldName: "level", TypeSize: 2}}},
&StructType{Key: StructKey{Name: "ff_envelope"}, FldName: "envelop"},
}}},
- {Key: StructKey{Name: "ff_effect"}, Desc: &StructDesc{TypeCommon: TypeCommon{TypeName: "ff_effect", IsVarlen: true}, Fields: []Type{
+ {Key: StructKey{Name: "ff_effect"}, Desc: &StructDesc{TypeCommon: TypeCommon{TypeName: "ff_effect", TypeSize: 48}, Fields: []Type{
&FlagsType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "ff_effect_type", FldName: "type", TypeSize: 2}}, Vals: []uint64{81, 82, 83, 84, 85, 86, 87}},
&IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int16", FldName: "id", TypeSize: 2}}},
&IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int16", FldName: "dir", TypeSize: 2}}},
@@ -3441,7 +3442,7 @@ var structDescs_amd64 = []*KeyedStruct{
&ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "pad", TypeSize: 2}}, IsPad: true},
&UnionType{Key: StructKey{Name: "ff_effect_u"}, FldName: "u"},
}}},
- {Key: StructKey{Name: "ff_effect_u"}, Desc: &StructDesc{TypeCommon: TypeCommon{TypeName: "ff_effect_u", IsVarlen: true}, Fields: []Type{
+ {Key: StructKey{Name: "ff_effect_u"}, Desc: &StructDesc{TypeCommon: TypeCommon{TypeName: "ff_effect_u", TypeSize: 32}, Fields: []Type{
&StructType{Key: StructKey{Name: "ff_constant_effect"}, FldName: "const"},
&StructType{Key: StructKey{Name: "ff_ramp_effect"}, FldName: "ramp"},
&StructType{Key: StructKey{Name: "ff_periodic_effect"}, FldName: "period"},
@@ -3454,16 +3455,16 @@ var structDescs_amd64 = []*KeyedStruct{
&IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int16", FldName: "flen", TypeSize: 2}}},
&IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int16", FldName: "flevel", TypeSize: 2}}},
}}},
- {Key: StructKey{Name: "ff_periodic_effect"}, Desc: &StructDesc{TypeCommon: TypeCommon{TypeName: "ff_periodic_effect", IsVarlen: true}, Fields: []Type{
+ {Key: StructKey{Name: "ff_periodic_effect"}, Desc: &StructDesc{TypeCommon: TypeCommon{TypeName: "ff_periodic_effect", TypeSize: 32}, Fields: []Type{
&FlagsType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "ff_periodic_effect_wave", FldName: "wave", TypeSize: 2}}, Vals: []uint64{88, 89, 90, 91, 92, 93}},
&IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int16", FldName: "period", TypeSize: 2}}},
&IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int16", FldName: "magnit", TypeSize: 2}}},
&IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int16", FldName: "offset", TypeSize: 2}}},
&IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int16", FldName: "phase", TypeSize: 2}}},
- &StructType{Key: StructKey{Name: "ff_envelope"}, FldName: "envelop"},
+ &StructType{Key: StructKey{Name: "ff_envelope"}, FldName: "envelope"},
&ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "pad", TypeSize: 2}}, IsPad: true},
- &LenType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "len", FldName: "len", TypeSize: 4}}, Buf: "custom"},
- &ArrayType{TypeCommon: TypeCommon{TypeName: "array", FldName: "custom", IsVarlen: true}, Type: &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int16", TypeSize: 2}}}},
+ &LenType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "len", FldName: "custom_len", TypeSize: 4}}, Buf: "custom_data"},
+ &PtrType{TypeCommon: TypeCommon{TypeName: "ptr", FldName: "custom_data", TypeSize: 8}, Type: &ArrayType{TypeCommon: TypeCommon{TypeName: "array", IsVarlen: true}, Type: &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int16", TypeSize: 2}}}}},
}}},
{Key: StructKey{Name: "ff_ramp_effect"}, Desc: &StructDesc{TypeCommon: TypeCommon{TypeName: "ff_ramp_effect", TypeSize: 12}, Fields: []Type{
&IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int16", FldName: "slevel", TypeSize: 2}}},
@@ -5656,10 +5657,16 @@ var structDescs_amd64 = []*KeyedStruct{
}}},
{Key: StructKey{Name: "input_event"}, Desc: &StructDesc{TypeCommon: TypeCommon{TypeName: "input_event", TypeSize: 24}, Fields: []Type{
&StructType{Key: StructKey{Name: "timeval"}, FldName: "time"},
- &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int16", FldName: "type", TypeSize: 2}}},
+ &FlagsType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "input_codes", FldName: "type", TypeSize: 2}}, Vals: []uint64{0, 1, 2, 3, 4, 5, 17, 18, 20, 21, 22, 23, 31}},
&IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int16", FldName: "code", TypeSize: 2}}},
&IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int32", FldName: "val", TypeSize: 4}}},
}}},
+ {Key: StructKey{Name: "input_id"}, Desc: &StructDesc{TypeCommon: TypeCommon{TypeName: "input_id", TypeSize: 8}, Fields: []Type{
+ &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int16", FldName: "bustype", TypeSize: 2}}},
+ &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int16", FldName: "vendor", TypeSize: 2}}},
+ &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int16", FldName: "product", TypeSize: 2}}},
+ &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int16", FldName: "version", TypeSize: 2}}},
+ }}},
{Key: StructKey{Name: "input_keymap_entry"}, Desc: &StructDesc{TypeCommon: TypeCommon{TypeName: "input_keymap_entry", TypeSize: 40}, Fields: []Type{
&IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int8", FldName: "flags", TypeSize: 1}}},
&IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int8", FldName: "len", TypeSize: 1}}, Kind: 2, RangeEnd: 32},
@@ -5668,7 +5675,7 @@ var structDescs_amd64 = []*KeyedStruct{
&BufferType{TypeCommon: TypeCommon{TypeName: "array", FldName: "scancod", TypeSize: 32}, Kind: 1, RangeBegin: 32, RangeEnd: 32},
}}},
{Key: StructKey{Name: "input_mask"}, Desc: &StructDesc{TypeCommon: TypeCommon{TypeName: "input_mask", TypeSize: 16}, Fields: []Type{
- &FlagsType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "input_mask_type", FldName: "type", TypeSize: 4}}, Vals: []uint64{0, 1, 2, 3, 4, 5, 17, 18, 21}},
+ &FlagsType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "input_codes", FldName: "type", TypeSize: 4}}, Vals: []uint64{0, 1, 2, 3, 4, 5, 17, 18, 20, 21, 22, 23, 31}},
&LenType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "bytesize", FldName: "size", TypeSize: 4}}, BitSize: 8, Buf: "ptr"},
&PtrType{TypeCommon: TypeCommon{TypeName: "buffer", FldName: "ptr", TypeSize: 8}, Type: &BufferType{TypeCommon: TypeCommon{IsVarlen: true}}},
}}},
@@ -18895,6 +18902,36 @@ var structDescs_amd64 = []*KeyedStruct{
&LenType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "len", FldName: "size", TypeSize: 2}}, Buf: "data"},
&BufferType{TypeCommon: TypeCommon{TypeName: "array", FldName: "data", IsVarlen: true}},
}}},
+ {Key: StructKey{Name: "uinput_abs_setup"}, Desc: &StructDesc{TypeCommon: TypeCommon{TypeName: "uinput_abs_setup", TypeSize: 28}, Fields: []Type{
+ &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int16", FldName: "code", TypeSize: 2}}},
+ &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "pad", TypeSize: 2}}, IsPad: true},
+ &StructType{Key: StructKey{Name: "input_absinfo"}, FldName: "absinfo"},
+ }}},
+ {Key: StructKey{Name: "uinput_ff_erase"}, Desc: &StructDesc{TypeCommon: TypeCommon{TypeName: "uinput_ff_erase", TypeSize: 12}, Fields: []Type{
+ &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int32", FldName: "request_id", TypeSize: 4}}, Kind: 2, RangeEnd: 16},
+ &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int32", FldName: "retval", TypeSize: 4}}},
+ &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int32", FldName: "effect_id", TypeSize: 4}}},
+ }}},
+ {Key: StructKey{Name: "uinput_ff_upload"}, Desc: &StructDesc{TypeCommon: TypeCommon{TypeName: "uinput_ff_upload", TypeSize: 104}, Fields: []Type{
+ &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int32", FldName: "request_id", TypeSize: 4}}, Kind: 2, RangeEnd: 16},
+ &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int32", FldName: "retval", TypeSize: 4}}},
+ &StructType{Key: StructKey{Name: "ff_effect"}, FldName: "effect"},
+ &StructType{Key: StructKey{Name: "ff_effect"}, FldName: "old"},
+ }}},
+ {Key: StructKey{Name: "uinput_setup"}, Desc: &StructDesc{TypeCommon: TypeCommon{TypeName: "uinput_setup", TypeSize: 92}, Fields: []Type{
+ &StructType{Key: StructKey{Name: "input_id"}, FldName: "id"},
+ &BufferType{TypeCommon: TypeCommon{TypeName: "string", FldName: "name", TypeSize: 80}, Kind: 2, SubKind: "uinput_names", Values: []string{"syz0\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\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00", "syz1\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\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00"}},
+ &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int32", FldName: "ff_effects_max", TypeSize: 4}}, Kind: 2, RangeBegin: 1, RangeEnd: 87},
+ }}},
+ {Key: StructKey{Name: "uinput_user_dev"}, Desc: &StructDesc{TypeCommon: TypeCommon{TypeName: "uinput_user_dev", TypeSize: 1116}, Fields: []Type{
+ &BufferType{TypeCommon: TypeCommon{TypeName: "string", FldName: "name", TypeSize: 80}, Kind: 2, SubKind: "uinput_names", Values: []string{"syz0\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\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00", "syz1\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\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00"}},
+ &StructType{Key: StructKey{Name: "input_id"}, FldName: "id"},
+ &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int32", FldName: "ff_effects_max", TypeSize: 4}}, Kind: 2, RangeBegin: 1, RangeEnd: 87},
+ &ArrayType{TypeCommon: TypeCommon{TypeName: "array", FldName: "absmax", TypeSize: 256}, Type: &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int32", TypeSize: 4}}}, Kind: 1, RangeBegin: 64, RangeEnd: 64},
+ &ArrayType{TypeCommon: TypeCommon{TypeName: "array", FldName: "absmin", TypeSize: 256}, Type: &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int32", TypeSize: 4}}}, Kind: 1, RangeBegin: 64, RangeEnd: 64},
+ &ArrayType{TypeCommon: TypeCommon{TypeName: "array", FldName: "absfuzz", TypeSize: 256}, Type: &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int32", TypeSize: 4}}}, Kind: 1, RangeBegin: 64, RangeEnd: 64},
+ &ArrayType{TypeCommon: TypeCommon{TypeName: "array", FldName: "absflat", TypeSize: 256}, Type: &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int32", TypeSize: 4}}}, Kind: 1, RangeBegin: 64, RangeEnd: 64},
+ }}},
{Key: StructKey{Name: "unimapdesc_in"}, Desc: &StructDesc{TypeCommon: TypeCommon{TypeName: "unimapdesc_in", TypeSize: 16}, Fields: []Type{
&LenType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "len", FldName: "cnt", TypeSize: 2}}, Buf: "entries"},
&ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "pad", TypeSize: 6}}, IsPad: true},
@@ -27457,6 +27494,109 @@ var syscalls_amd64 = []*Syscall{
&ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "cmd", TypeSize: 8}}, Val: 3223366148},
&PtrType{TypeCommon: TypeCommon{TypeName: "ptr", FldName: "arg", TypeSize: 8}, Type: &StructType{Key: StructKey{Name: "uffdio_zeropage"}}},
}},
+ {NR: 16, Name: "ioctl$UI_ABS_SETUP", CallName: "ioctl", Args: []Type{
+ &ResourceType{TypeCommon: TypeCommon{TypeName: "fd_uinput", FldName: "fd", TypeSize: 4}},
+ &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "cmd", TypeSize: 8}}, Val: 1075598596},
+ &PtrType{TypeCommon: TypeCommon{TypeName: "ptr", FldName: "arg", TypeSize: 8}, Type: &StructType{Key: StructKey{Name: "uinput_abs_setup"}}},
+ }},
+ {NR: 16, Name: "ioctl$UI_BEGIN_FF_ERASE", CallName: "ioctl", Args: []Type{
+ &ResourceType{TypeCommon: TypeCommon{TypeName: "fd_uinput", FldName: "fd", TypeSize: 4}},
+ &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "cmd", TypeSize: 8}}, Val: 3222033866},
+ &PtrType{TypeCommon: TypeCommon{TypeName: "ptr", FldName: "arg", TypeSize: 8}, Type: &StructType{Key: StructKey{Name: "uinput_ff_erase"}}},
+ }},
+ {NR: 16, Name: "ioctl$UI_BEGIN_FF_UPLOAD", CallName: "ioctl", Args: []Type{
+ &ResourceType{TypeCommon: TypeCommon{TypeName: "fd_uinput", FldName: "fd", TypeSize: 4}},
+ &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "cmd", TypeSize: 8}}, Val: 3228063176},
+ &PtrType{TypeCommon: TypeCommon{TypeName: "ptr", FldName: "arg", TypeSize: 8}, Type: &StructType{Key: StructKey{Name: "uinput_ff_upload"}}},
+ }},
+ {NR: 16, Name: "ioctl$UI_DEV_CREATE", CallName: "ioctl", Args: []Type{
+ &ResourceType{TypeCommon: TypeCommon{TypeName: "fd_uinput", FldName: "fd", TypeSize: 4}},
+ &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "cmd", TypeSize: 8}}, Val: 21761},
+ }},
+ {NR: 16, Name: "ioctl$UI_DEV_DESTROY", CallName: "ioctl", Args: []Type{
+ &ResourceType{TypeCommon: TypeCommon{TypeName: "fd_uinput", FldName: "fd", TypeSize: 4}},
+ &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "cmd", TypeSize: 8}}, Val: 21762},
+ }},
+ {NR: 16, Name: "ioctl$UI_DEV_SETUP", CallName: "ioctl", Args: []Type{
+ &ResourceType{TypeCommon: TypeCommon{TypeName: "fd_uinput", FldName: "fd", TypeSize: 4}},
+ &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "cmd", TypeSize: 8}}, Val: 1079792899},
+ &PtrType{TypeCommon: TypeCommon{TypeName: "ptr", FldName: "arg", TypeSize: 8}, Type: &StructType{Key: StructKey{Name: "uinput_setup"}}},
+ }},
+ {NR: 16, Name: "ioctl$UI_END_FF_ERASE", CallName: "ioctl", Args: []Type{
+ &ResourceType{TypeCommon: TypeCommon{TypeName: "fd_uinput", FldName: "fd", TypeSize: 4}},
+ &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "cmd", TypeSize: 8}}, Val: 1074550219},
+ &PtrType{TypeCommon: TypeCommon{TypeName: "ptr", FldName: "arg", TypeSize: 8}, Type: &StructType{Key: StructKey{Name: "uinput_ff_erase"}}},
+ }},
+ {NR: 16, Name: "ioctl$UI_END_FF_UPLOAD", CallName: "ioctl", Args: []Type{
+ &ResourceType{TypeCommon: TypeCommon{TypeName: "fd_uinput", FldName: "fd", TypeSize: 4}},
+ &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "cmd", TypeSize: 8}}, Val: 1080579529},
+ &PtrType{TypeCommon: TypeCommon{TypeName: "ptr", FldName: "arg", TypeSize: 8}, Type: &StructType{Key: StructKey{Name: "uinput_ff_upload"}}},
+ }},
+ {NR: 16, Name: "ioctl$UI_GET_SYSNAME", CallName: "ioctl", Args: []Type{
+ &ResourceType{TypeCommon: TypeCommon{TypeName: "fd_uinput", FldName: "fd", TypeSize: 4}},
+ &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "cmd", TypeSize: 8}}, Val: 2151699756},
+ &PtrType{TypeCommon: TypeCommon{TypeName: "ptr", FldName: "arg", TypeSize: 8}, Type: &BufferType{TypeCommon: TypeCommon{TypeName: "array", TypeSize: 64, ArgDir: 1}, Kind: 1, RangeBegin: 64, RangeEnd: 64}},
+ }},
+ {NR: 16, Name: "ioctl$UI_GET_VERSION", CallName: "ioctl", Args: []Type{
+ &ResourceType{TypeCommon: TypeCommon{TypeName: "fd_uinput", FldName: "fd", TypeSize: 4}},
+ &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "cmd", TypeSize: 8}}, Val: 2147767597},
+ &PtrType{TypeCommon: TypeCommon{TypeName: "ptr", FldName: "arg", TypeSize: 8}, Type: &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int32", TypeSize: 4, ArgDir: 1}}}},
+ }},
+ {NR: 16, Name: "ioctl$UI_SET_ABSBIT", CallName: "ioctl", Args: []Type{
+ &ResourceType{TypeCommon: TypeCommon{TypeName: "fd_uinput", FldName: "fd", TypeSize: 4}},
+ &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "cmd", TypeSize: 8}}, Val: 1074025831},
+ &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "intptr", FldName: "arg", TypeSize: 8}}, Kind: 2, RangeEnd: 7},
+ }},
+ {NR: 16, Name: "ioctl$UI_SET_EVBIT", CallName: "ioctl", Args: []Type{
+ &ResourceType{TypeCommon: TypeCommon{TypeName: "fd_uinput", FldName: "fd", TypeSize: 4}},
+ &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "cmd", TypeSize: 8}}, Val: 1074025828},
+ &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "intptr", FldName: "arg", TypeSize: 8}}, Kind: 2, RangeEnd: 31},
+ }},
+ {NR: 16, Name: "ioctl$UI_SET_FFBIT", CallName: "ioctl", Args: []Type{
+ &ResourceType{TypeCommon: TypeCommon{TypeName: "fd_uinput", FldName: "fd", TypeSize: 4}},
+ &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "cmd", TypeSize: 8}}, Val: 1074025835},
+ &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "intptr", FldName: "arg", TypeSize: 8}}, Kind: 2, RangeEnd: 127},
+ }},
+ {NR: 16, Name: "ioctl$UI_SET_KEYBIT", CallName: "ioctl", Args: []Type{
+ &ResourceType{TypeCommon: TypeCommon{TypeName: "fd_uinput", FldName: "fd", TypeSize: 4}},
+ &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "cmd", TypeSize: 8}}, Val: 1074025829},
+ &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "intptr", FldName: "arg", TypeSize: 8}}, Kind: 2, RangeEnd: 767},
+ }},
+ {NR: 16, Name: "ioctl$UI_SET_LEDBIT", CallName: "ioctl", Args: []Type{
+ &ResourceType{TypeCommon: TypeCommon{TypeName: "fd_uinput", FldName: "fd", TypeSize: 4}},
+ &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "cmd", TypeSize: 8}}, Val: 1074025833},
+ &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "intptr", FldName: "arg", TypeSize: 8}}, Kind: 2, RangeEnd: 15},
+ }},
+ {NR: 16, Name: "ioctl$UI_SET_MSCBIT", CallName: "ioctl", Args: []Type{
+ &ResourceType{TypeCommon: TypeCommon{TypeName: "fd_uinput", FldName: "fd", TypeSize: 4}},
+ &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "cmd", TypeSize: 8}}, Val: 1074025832},
+ &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "intptr", FldName: "arg", TypeSize: 8}}, Kind: 2, RangeEnd: 63},
+ }},
+ {NR: 16, Name: "ioctl$UI_SET_PHYS", CallName: "ioctl", Args: []Type{
+ &ResourceType{TypeCommon: TypeCommon{TypeName: "fd_uinput", FldName: "fd", TypeSize: 4}},
+ &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "cmd", TypeSize: 8}}, Val: 1074287980},
+ &PtrType{TypeCommon: TypeCommon{TypeName: "ptr", FldName: "arg", TypeSize: 8}, Type: &BufferType{TypeCommon: TypeCommon{TypeName: "string", TypeSize: 5}, Kind: 2, SubKind: "uinput_names", Values: []string{"syz0\x00", "syz1\x00"}}},
+ }},
+ {NR: 16, Name: "ioctl$UI_SET_PROPBIT", CallName: "ioctl", Args: []Type{
+ &ResourceType{TypeCommon: TypeCommon{TypeName: "fd_uinput", FldName: "fd", TypeSize: 4}},
+ &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "cmd", TypeSize: 8}}, Val: 1074025838},
+ &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "intptr", FldName: "arg", TypeSize: 8}}, Kind: 2, RangeEnd: 31},
+ }},
+ {NR: 16, Name: "ioctl$UI_SET_RELBIT", CallName: "ioctl", Args: []Type{
+ &ResourceType{TypeCommon: TypeCommon{TypeName: "fd_uinput", FldName: "fd", TypeSize: 4}},
+ &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "cmd", TypeSize: 8}}, Val: 1074025830},
+ &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "intptr", FldName: "arg", TypeSize: 8}}, Kind: 2, RangeEnd: 15},
+ }},
+ {NR: 16, Name: "ioctl$UI_SET_SNDBIT", CallName: "ioctl", Args: []Type{
+ &ResourceType{TypeCommon: TypeCommon{TypeName: "fd_uinput", FldName: "fd", TypeSize: 4}},
+ &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "cmd", TypeSize: 8}}, Val: 1074025834},
+ &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "intptr", FldName: "arg", TypeSize: 8}}, Kind: 2, RangeEnd: 7},
+ }},
+ {NR: 16, Name: "ioctl$UI_SET_SWBIT", CallName: "ioctl", Args: []Type{
+ &ResourceType{TypeCommon: TypeCommon{TypeName: "fd_uinput", FldName: "fd", TypeSize: 4}},
+ &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "cmd", TypeSize: 8}}, Val: 1074025837},
+ &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "intptr", FldName: "arg", TypeSize: 8}}, Kind: 2, RangeEnd: 15},
+ }},
{NR: 16, Name: "ioctl$VHOST_GET_FEATURES", CallName: "ioctl", Args: []Type{
&ResourceType{TypeCommon: TypeCommon{TypeName: "fd_vhost", FldName: "fd", TypeSize: 4}},
&ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "cmd", TypeSize: 8}}, Val: 2148052736},
@@ -29531,9 +29671,9 @@ var syscalls_amd64 = []*Syscall{
{NR: 257, Name: "openat$uinput", CallName: "openat", Args: []Type{
&ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "fd", TypeSize: 8}}, Val: 18446744073709551516},
&PtrType{TypeCommon: TypeCommon{TypeName: "ptr", FldName: "file", TypeSize: 8}, Type: &BufferType{TypeCommon: TypeCommon{TypeName: "string", TypeSize: 12}, Kind: 2, Values: []string{"/dev/uinput\x00"}}},
- &FlagsType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "open_flags", FldName: "flags", TypeSize: 8}}, Vals: []uint64{0, 1, 2, 1024, 8192, 524288, 64, 16384, 65536, 128, 32768, 262144, 256, 131072, 2048, 2097152, 1052672, 512, 4194304}, BitMask: true},
+ &FlagsType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "uinput_open_flags", FldName: "flags", TypeSize: 8}}, Vals: []uint64{2, 2050}},
&ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "mode", TypeSize: 8}}},
- }, Ret: &ResourceType{TypeCommon: TypeCommon{TypeName: "fd", FldName: "ret", TypeSize: 4, ArgDir: 1}}},
+ }, Ret: &ResourceType{TypeCommon: TypeCommon{TypeName: "fd_uinput", FldName: "ret", TypeSize: 4, ArgDir: 1}}},
{NR: 257, Name: "openat$urandom", CallName: "openat", Args: []Type{
&ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "fd", TypeSize: 8}}, Val: 18446744073709551516},
&PtrType{TypeCommon: TypeCommon{TypeName: "ptr", FldName: "file", TypeSize: 8}, Type: &BufferType{TypeCommon: TypeCommon{TypeName: "string", TypeSize: 13}, Kind: 2, Values: []string{"/dev/urandom\x00"}}},
@@ -33892,6 +34032,11 @@ var syscalls_amd64 = []*Syscall{
&PtrType{TypeCommon: TypeCommon{TypeName: "ptr", FldName: "val", TypeSize: 8}, Type: &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int64", TypeSize: 8}}}},
&LenType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "len", FldName: "len", TypeSize: 8}}, Buf: "val"},
}},
+ {NR: 1, Name: "write$input_event", CallName: "write", Args: []Type{
+ &ResourceType{TypeCommon: TypeCommon{TypeName: "fd_uinput", FldName: "fd", TypeSize: 4}},
+ &PtrType{TypeCommon: TypeCommon{TypeName: "ptr", FldName: "data", TypeSize: 8}, Type: &StructType{Key: StructKey{Name: "input_event"}}},
+ &LenType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "len", FldName: "len", TypeSize: 8}}, Buf: "data"},
+ }},
{NR: 1, Name: "write$selinux_access", CallName: "write", Args: []Type{
&ResourceType{TypeCommon: TypeCommon{TypeName: "fd_selinux_access", FldName: "fd", TypeSize: 4}},
&PtrType{TypeCommon: TypeCommon{TypeName: "ptr", FldName: "buf", TypeSize: 8}, Type: &StructType{Key: StructKey{Name: "selinux_access_req"}}},
@@ -33932,6 +34077,11 @@ var syscalls_amd64 = []*Syscall{
&PtrType{TypeCommon: TypeCommon{TypeName: "ptr", FldName: "buf", TypeSize: 8}, Type: &StructType{Key: StructKey{Name: "tun_buffer"}}},
&LenType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "len", FldName: "count", TypeSize: 8}}, Buf: "buf"},
}},
+ {NR: 1, Name: "write$uinput_user_dev", CallName: "write", Args: []Type{
+ &ResourceType{TypeCommon: TypeCommon{TypeName: "fd_uinput", FldName: "fd", TypeSize: 4}},
+ &PtrType{TypeCommon: TypeCommon{TypeName: "ptr", FldName: "data", TypeSize: 8}, Type: &StructType{Key: StructKey{Name: "uinput_user_dev"}}},
+ &LenType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "len", FldName: "len", TypeSize: 8}}, Buf: "data"},
+ }},
{NR: 1, Name: "write$vnet", CallName: "write", Args: []Type{
&ResourceType{TypeCommon: TypeCommon{TypeName: "vhost_net", FldName: "fd", TypeSize: 4}},
&PtrType{TypeCommon: TypeCommon{TypeName: "ptr", FldName: "buf", TypeSize: 8}, Type: &StructType{Key: StructKey{Name: "vhost_msg"}}},
@@ -33945,6 +34095,8 @@ var syscalls_amd64 = []*Syscall{
}
var consts_amd64 = []ConstValue{
+ {Name: "ABS_CNT", Value: 64},
+ {Name: "ABS_MAX", Value: 63},
{Name: "ADDR_COMPAT_LAYOUT", Value: 2097152},
{Name: "ADDR_LIMIT_32BIT", Value: 8388608},
{Name: "ADDR_LIMIT_3GB", Value: 134217728},
@@ -34913,10 +35065,14 @@ var consts_amd64 = []ConstValue{
{Name: "EVIOCSREP", Value: 1074283779},
{Name: "EV_ABS", Value: 3},
{Name: "EV_FF", Value: 21},
+ {Name: "EV_FF_STATUS", Value: 23},
{Name: "EV_KEY", Value: 1},
{Name: "EV_LED", Value: 17},
+ {Name: "EV_MAX", Value: 31},
{Name: "EV_MSC", Value: 4},
+ {Name: "EV_PWR", Value: 22},
{Name: "EV_REL", Value: 2},
+ {Name: "EV_REP", Value: 20},
{Name: "EV_SND", Value: 18},
{Name: "EV_SW", Value: 5},
{Name: "EV_SYN"},
@@ -34956,8 +35112,10 @@ var consts_amd64 = []ConstValue{
{Name: "FF_CONSTANT", Value: 82},
{Name: "FF_CUSTOM", Value: 93},
{Name: "FF_DAMPER", Value: 85},
+ {Name: "FF_EFFECT_MAX", Value: 87},
{Name: "FF_FRICTION", Value: 84},
{Name: "FF_INERTIA", Value: 86},
+ {Name: "FF_MAX", Value: 127},
{Name: "FF_PERIODIC", Value: 81},
{Name: "FF_RAMP", Value: 87},
{Name: "FF_SAW_DOWN", Value: 92},
@@ -35523,6 +35681,7 @@ var consts_amd64 = []ConstValue{
{Name: "IGMP_PIM", Value: 20},
{Name: "IGMP_TRACE", Value: 21},
{Name: "INOTIFY_IOC_SETNEXTWD", Value: 1074022656},
+ {Name: "INPUT_PROP_MAX", Value: 31},
{Name: "IN_ACCESS", Value: 1},
{Name: "IN_ATTRIB", Value: 4},
{Name: "IN_CLOEXEC", Value: 524288},
@@ -36058,6 +36217,7 @@ var consts_amd64 = []ConstValue{
{Name: "KEY_GRP_SETATTR", Value: 8192},
{Name: "KEY_GRP_VIEW", Value: 256},
{Name: "KEY_GRP_WRITE", Value: 1024},
+ {Name: "KEY_MAX", Value: 767},
{Name: "KEY_OTH_LINK", Value: 16},
{Name: "KEY_OTH_READ", Value: 2},
{Name: "KEY_OTH_SEARCH", Value: 8},
@@ -36261,6 +36421,7 @@ var consts_amd64 = []ConstValue{
{Name: "L2CAP_LM_SECURE", Value: 32},
{Name: "L2CAP_LM_TRUSTED", Value: 8},
{Name: "L2CAP_OPTIONS", Value: 1},
+ {Name: "LED_MAX", Value: 15},
{Name: "LLC_OPT_ACK_TMR_EXP", Value: 3},
{Name: "LLC_OPT_BUSY_TMR_EXP", Value: 6},
{Name: "LLC_OPT_PKTINFO", Value: 9},
@@ -36540,6 +36701,7 @@ var consts_amd64 = []ConstValue{
{Name: "MRT6_PIM", Value: 208},
{Name: "MRT6_TABLE", Value: 209},
{Name: "MRT6_VERSION", Value: 206},
+ {Name: "MSC_MAX", Value: 7},
{Name: "MSG_BATCH", Value: 262144},
{Name: "MSG_CMSG_CLOEXEC", Value: 1073741824},
{Name: "MSG_CONFIRM", Value: 2048},
@@ -37247,6 +37409,7 @@ var consts_amd64 = []ConstValue{
{Name: "RDS_TRANS_NONE", Value: 18446744073709551615},
{Name: "RDS_TRANS_TCP", Value: 2},
{Name: "READ_IMPLIES_EXEC", Value: 4194304},
+ {Name: "REL_MAX", Value: 15},
{Name: "RENAME_EXCHANGE", Value: 2},
{Name: "RENAME_NOREPLACE", Value: 1},
{Name: "RENAME_WHITEOUT", Value: 4},
@@ -37942,6 +38105,7 @@ var consts_amd64 = []ConstValue{
{Name: "SNDRV_TIMER_SCLASS_SEQUENCER", Value: 2},
{Name: "SND_CTL_ELEM_INFO_SIZE", Value: 272},
{Name: "SND_CTL_ELEM_VALUE_SIZE", Value: 1224},
+ {Name: "SND_MAX", Value: 7},
{Name: "SOCKADDR_PPPOX_SIZE", Value: 30},
{Name: "SOCKADDR_SIZE", Value: 16},
{Name: "SOCKADDR_STORAGE_SIZE", Value: 128},
@@ -38092,6 +38256,7 @@ var consts_amd64 = []ConstValue{
{Name: "STATX_TYPE", Value: 1},
{Name: "STATX_UID", Value: 8},
{Name: "STICKY_TIMEOUTS", Value: 67108864},
+ {Name: "SW_MAX", Value: 15},
{Name: "SYNC_FILE_RANGE_WAIT_AFTER", Value: 4},
{Name: "SYNC_FILE_RANGE_WAIT_BEFORE", Value: 1},
{Name: "SYNC_FILE_RANGE_WRITE", Value: 2},
@@ -38639,6 +38804,28 @@ var consts_amd64 = []ConstValue{
{Name: "UHID_INPUT", Value: 8},
{Name: "UHID_INPUT2", Value: 12},
{Name: "UHID_SET_REPORT_REPLY", Value: 14},
+ {Name: "UINPUT_MAX_NAME_SIZE", Value: 80},
+ {Name: "UI_ABS_SETUP", Value: 1075598596},
+ {Name: "UI_BEGIN_FF_ERASE", Value: 3222033866},
+ {Name: "UI_BEGIN_FF_UPLOAD", Value: 3228063176},
+ {Name: "UI_DEV_CREATE", Value: 21761},
+ {Name: "UI_DEV_DESTROY", Value: 21762},
+ {Name: "UI_DEV_SETUP", Value: 1079792899},
+ {Name: "UI_END_FF_ERASE", Value: 1074550219},
+ {Name: "UI_END_FF_UPLOAD", Value: 1080579529},
+ {Name: "UI_GET_SYSNAME_64", Value: 2151699756},
+ {Name: "UI_GET_VERSION", Value: 2147767597},
+ {Name: "UI_SET_ABSBIT", Value: 1074025831},
+ {Name: "UI_SET_EVBIT", Value: 1074025828},
+ {Name: "UI_SET_FFBIT", Value: 1074025835},
+ {Name: "UI_SET_KEYBIT", Value: 1074025829},
+ {Name: "UI_SET_LEDBIT", Value: 1074025833},
+ {Name: "UI_SET_MSCBIT", Value: 1074025832},
+ {Name: "UI_SET_PHYS", Value: 1074287980},
+ {Name: "UI_SET_PROPBIT", Value: 1074025838},
+ {Name: "UI_SET_RELBIT", Value: 1074025830},
+ {Name: "UI_SET_SNDBIT", Value: 1074025834},
+ {Name: "UI_SET_SWBIT", Value: 1074025837},
{Name: "UMOUNT_NOFOLLOW", Value: 8},
{Name: "UNIX_PATH_MAX", Value: 108},
{Name: "USER_CLIENT", Value: 1},
@@ -40305,4 +40492,4 @@ var consts_amd64 = []ConstValue{
{Name: "bpf_insn_load_imm_dw", Value: 24},
}
-const revision_amd64 = "984f61ad7433dadde7090f073c7199f6a678d440"
+const revision_amd64 = "59a1b42d93f9b942a6d7feb28265f13e5f18f59b"
diff --git a/sys/linux/gen/arm.go b/sys/linux/gen/arm.go
index feda29dcc..0cb4eb6e6 100644
--- a/sys/linux/gen/arm.go
+++ b/sys/linux/gen/arm.go
@@ -77,6 +77,7 @@ var resources_arm = []*ResourceDesc{
{Name: "fd_tun", Type: &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int32", TypeSize: 4}}}, Kind: []string{"fd", "fd_tun"}, Values: []uint64{18446744073709551615, 18446744073709551516}},
{Name: "fd_uffd", Type: &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int32", TypeSize: 4}}}, Kind: []string{"fd", "fd_uffd"}, Values: []uint64{18446744073709551615, 18446744073709551516}},
{Name: "fd_uhid", Type: &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int32", TypeSize: 4}}}, Kind: []string{"fd", "fd_uhid"}, Values: []uint64{18446744073709551615, 18446744073709551516}},
+ {Name: "fd_uinput", Type: &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int32", TypeSize: 4}}}, Kind: []string{"fd", "fd_uinput"}, Values: []uint64{18446744073709551615, 18446744073709551516}},
{Name: "fd_v4l2_buffer", Type: &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int32", TypeSize: 4}}}, Kind: []string{"fd", "fd_v4l2_buffer"}, Values: []uint64{18446744073709551615, 18446744073709551516}},
{Name: "fd_vhost", Type: &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int32", TypeSize: 4}}}, Kind: []string{"fd", "fd_vhost"}, Values: []uint64{18446744073709551615, 18446744073709551516}},
{Name: "fd_video", Type: &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int32", TypeSize: 4}}}, Kind: []string{"fd", "fd_video"}, Values: []uint64{18446744073709551615, 18446744073709551516}},
@@ -3353,7 +3354,7 @@ var structDescs_arm = []*KeyedStruct{
&IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int16", FldName: "level", TypeSize: 2}}},
&StructType{Key: StructKey{Name: "ff_envelope"}, FldName: "envelop"},
}}},
- {Key: StructKey{Name: "ff_effect"}, Desc: &StructDesc{TypeCommon: TypeCommon{TypeName: "ff_effect", IsVarlen: true}, Fields: []Type{
+ {Key: StructKey{Name: "ff_effect"}, Desc: &StructDesc{TypeCommon: TypeCommon{TypeName: "ff_effect", TypeSize: 44}, Fields: []Type{
&FlagsType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "ff_effect_type", FldName: "type", TypeSize: 2}}, Vals: []uint64{81, 82, 83, 84, 85, 86, 87}},
&IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int16", FldName: "id", TypeSize: 2}}},
&IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int16", FldName: "dir", TypeSize: 2}}},
@@ -3362,7 +3363,7 @@ var structDescs_arm = []*KeyedStruct{
&ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "pad", TypeSize: 2}}, IsPad: true},
&UnionType{Key: StructKey{Name: "ff_effect_u"}, FldName: "u"},
}}},
- {Key: StructKey{Name: "ff_effect_u"}, Desc: &StructDesc{TypeCommon: TypeCommon{TypeName: "ff_effect_u", IsVarlen: true}, Fields: []Type{
+ {Key: StructKey{Name: "ff_effect_u"}, Desc: &StructDesc{TypeCommon: TypeCommon{TypeName: "ff_effect_u", TypeSize: 28}, Fields: []Type{
&StructType{Key: StructKey{Name: "ff_constant_effect"}, FldName: "const"},
&StructType{Key: StructKey{Name: "ff_ramp_effect"}, FldName: "ramp"},
&StructType{Key: StructKey{Name: "ff_periodic_effect"}, FldName: "period"},
@@ -3375,16 +3376,16 @@ var structDescs_arm = []*KeyedStruct{
&IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int16", FldName: "flen", TypeSize: 2}}},
&IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int16", FldName: "flevel", TypeSize: 2}}},
}}},
- {Key: StructKey{Name: "ff_periodic_effect"}, Desc: &StructDesc{TypeCommon: TypeCommon{TypeName: "ff_periodic_effect", IsVarlen: true}, Fields: []Type{
+ {Key: StructKey{Name: "ff_periodic_effect"}, Desc: &StructDesc{TypeCommon: TypeCommon{TypeName: "ff_periodic_effect", TypeSize: 28}, Fields: []Type{
&FlagsType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "ff_periodic_effect_wave", FldName: "wave", TypeSize: 2}}, Vals: []uint64{88, 89, 90, 91, 92, 93}},
&IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int16", FldName: "period", TypeSize: 2}}},
&IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int16", FldName: "magnit", TypeSize: 2}}},
&IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int16", FldName: "offset", TypeSize: 2}}},
&IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int16", FldName: "phase", TypeSize: 2}}},
- &StructType{Key: StructKey{Name: "ff_envelope"}, FldName: "envelop"},
+ &StructType{Key: StructKey{Name: "ff_envelope"}, FldName: "envelope"},
&ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "pad", TypeSize: 2}}, IsPad: true},
- &LenType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "len", FldName: "len", TypeSize: 4}}, Buf: "custom"},
- &ArrayType{TypeCommon: TypeCommon{TypeName: "array", FldName: "custom", IsVarlen: true}, Type: &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int16", TypeSize: 2}}}},
+ &LenType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "len", FldName: "custom_len", TypeSize: 4}}, Buf: "custom_data"},
+ &PtrType{TypeCommon: TypeCommon{TypeName: "ptr", FldName: "custom_data", TypeSize: 4}, Type: &ArrayType{TypeCommon: TypeCommon{TypeName: "array", IsVarlen: true}, Type: &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int16", TypeSize: 2}}}}},
}}},
{Key: StructKey{Name: "ff_ramp_effect"}, Desc: &StructDesc{TypeCommon: TypeCommon{TypeName: "ff_ramp_effect", TypeSize: 12}, Fields: []Type{
&IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int16", FldName: "slevel", TypeSize: 2}}},
@@ -5560,10 +5561,16 @@ var structDescs_arm = []*KeyedStruct{
}}},
{Key: StructKey{Name: "input_event"}, Desc: &StructDesc{TypeCommon: TypeCommon{TypeName: "input_event", TypeSize: 16}, Fields: []Type{
&StructType{Key: StructKey{Name: "timeval"}, FldName: "time"},
- &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int16", FldName: "type", TypeSize: 2}}},
+ &FlagsType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "input_codes", FldName: "type", TypeSize: 2}}, Vals: []uint64{0, 1, 2, 3, 4, 5, 17, 18, 20, 21, 22, 23, 31}},
&IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int16", FldName: "code", TypeSize: 2}}},
&IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int32", FldName: "val", TypeSize: 4}}},
}}},
+ {Key: StructKey{Name: "input_id"}, Desc: &StructDesc{TypeCommon: TypeCommon{TypeName: "input_id", TypeSize: 8}, Fields: []Type{
+ &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int16", FldName: "bustype", TypeSize: 2}}},
+ &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int16", FldName: "vendor", TypeSize: 2}}},
+ &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int16", FldName: "product", TypeSize: 2}}},
+ &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int16", FldName: "version", TypeSize: 2}}},
+ }}},
{Key: StructKey{Name: "input_keymap_entry"}, Desc: &StructDesc{TypeCommon: TypeCommon{TypeName: "input_keymap_entry", TypeSize: 40}, Fields: []Type{
&IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int8", FldName: "flags", TypeSize: 1}}},
&IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int8", FldName: "len", TypeSize: 1}}, Kind: 2, RangeEnd: 32},
@@ -5572,7 +5579,7 @@ var structDescs_arm = []*KeyedStruct{
&BufferType{TypeCommon: TypeCommon{TypeName: "array", FldName: "scancod", TypeSize: 32}, Kind: 1, RangeBegin: 32, RangeEnd: 32},
}}},
{Key: StructKey{Name: "input_mask"}, Desc: &StructDesc{TypeCommon: TypeCommon{TypeName: "input_mask", TypeSize: 12}, Fields: []Type{
- &FlagsType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "input_mask_type", FldName: "type", TypeSize: 4}}, Vals: []uint64{0, 1, 2, 3, 4, 5, 17, 18, 21}},
+ &FlagsType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "input_codes", FldName: "type", TypeSize: 4}}, Vals: []uint64{0, 1, 2, 3, 4, 5, 17, 18, 20, 21, 22, 23, 31}},
&LenType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "bytesize", FldName: "size", TypeSize: 4}}, BitSize: 8, Buf: "ptr"},
&PtrType{TypeCommon: TypeCommon{TypeName: "buffer", FldName: "ptr", TypeSize: 4}, Type: &BufferType{TypeCommon: TypeCommon{IsVarlen: true}}},
}}},
@@ -18446,6 +18453,36 @@ var structDescs_arm = []*KeyedStruct{
&LenType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "len", FldName: "size", TypeSize: 2}}, Buf: "data"},
&BufferType{TypeCommon: TypeCommon{TypeName: "array", FldName: "data", IsVarlen: true}},
}}},
+ {Key: StructKey{Name: "uinput_abs_setup"}, Desc: &StructDesc{TypeCommon: TypeCommon{TypeName: "uinput_abs_setup", TypeSize: 28}, Fields: []Type{
+ &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int16", FldName: "code", TypeSize: 2}}},
+ &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "pad", TypeSize: 2}}, IsPad: true},
+ &StructType{Key: StructKey{Name: "input_absinfo"}, FldName: "absinfo"},
+ }}},
+ {Key: StructKey{Name: "uinput_ff_erase"}, Desc: &StructDesc{TypeCommon: TypeCommon{TypeName: "uinput_ff_erase", TypeSize: 12}, Fields: []Type{
+ &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int32", FldName: "request_id", TypeSize: 4}}, Kind: 2, RangeEnd: 16},
+ &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int32", FldName: "retval", TypeSize: 4}}},
+ &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int32", FldName: "effect_id", TypeSize: 4}}},
+ }}},
+ {Key: StructKey{Name: "uinput_ff_upload"}, Desc: &StructDesc{TypeCommon: TypeCommon{TypeName: "uinput_ff_upload", TypeSize: 96}, Fields: []Type{
+ &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int32", FldName: "request_id", TypeSize: 4}}, Kind: 2, RangeEnd: 16},
+ &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int32", FldName: "retval", TypeSize: 4}}},
+ &StructType{Key: StructKey{Name: "ff_effect"}, FldName: "effect"},
+ &StructType{Key: StructKey{Name: "ff_effect"}, FldName: "old"},
+ }}},
+ {Key: StructKey{Name: "uinput_setup"}, Desc: &StructDesc{TypeCommon: TypeCommon{TypeName: "uinput_setup", TypeSize: 92}, Fields: []Type{
+ &StructType{Key: StructKey{Name: "input_id"}, FldName: "id"},
+ &BufferType{TypeCommon: TypeCommon{TypeName: "string", FldName: "name", TypeSize: 80}, Kind: 2, SubKind: "uinput_names", Values: []string{"syz0\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\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00", "syz1\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\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00"}},
+ &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int32", FldName: "ff_effects_max", TypeSize: 4}}, Kind: 2, RangeBegin: 1, RangeEnd: 87},
+ }}},
+ {Key: StructKey{Name: "uinput_user_dev"}, Desc: &StructDesc{TypeCommon: TypeCommon{TypeName: "uinput_user_dev", TypeSize: 1116}, Fields: []Type{
+ &BufferType{TypeCommon: TypeCommon{TypeName: "string", FldName: "name", TypeSize: 80}, Kind: 2, SubKind: "uinput_names", Values: []string{"syz0\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\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00", "syz1\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\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00"}},
+ &StructType{Key: StructKey{Name: "input_id"}, FldName: "id"},
+ &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int32", FldName: "ff_effects_max", TypeSize: 4}}, Kind: 2, RangeBegin: 1, RangeEnd: 87},
+ &ArrayType{TypeCommon: TypeCommon{TypeName: "array", FldName: "absmax", TypeSize: 256}, Type: &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int32", TypeSize: 4}}}, Kind: 1, RangeBegin: 64, RangeEnd: 64},
+ &ArrayType{TypeCommon: TypeCommon{TypeName: "array", FldName: "absmin", TypeSize: 256}, Type: &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int32", TypeSize: 4}}}, Kind: 1, RangeBegin: 64, RangeEnd: 64},
+ &ArrayType{TypeCommon: TypeCommon{TypeName: "array", FldName: "absfuzz", TypeSize: 256}, Type: &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int32", TypeSize: 4}}}, Kind: 1, RangeBegin: 64, RangeEnd: 64},
+ &ArrayType{TypeCommon: TypeCommon{TypeName: "array", FldName: "absflat", TypeSize: 256}, Type: &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int32", TypeSize: 4}}}, Kind: 1, RangeBegin: 64, RangeEnd: 64},
+ }}},
{Key: StructKey{Name: "unimapdesc_in"}, Desc: &StructDesc{TypeCommon: TypeCommon{TypeName: "unimapdesc_in", TypeSize: 8}, Fields: []Type{
&LenType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "len", FldName: "cnt", TypeSize: 2}}, Buf: "entries"},
&ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "pad", TypeSize: 2}}, IsPad: true},
@@ -26754,6 +26791,109 @@ var syscalls_arm = []*Syscall{
&ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "cmd", TypeSize: 4}}, Val: 3223366148},
&PtrType{TypeCommon: TypeCommon{TypeName: "ptr", FldName: "arg", TypeSize: 4}, Type: &StructType{Key: StructKey{Name: "uffdio_zeropage"}}},
}},
+ {NR: 54, Name: "ioctl$UI_ABS_SETUP", CallName: "ioctl", Args: []Type{
+ &ResourceType{TypeCommon: TypeCommon{TypeName: "fd_uinput", FldName: "fd", TypeSize: 4}},
+ &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "cmd", TypeSize: 4}}, Val: 1075598596},
+ &PtrType{TypeCommon: TypeCommon{TypeName: "ptr", FldName: "arg", TypeSize: 4}, Type: &StructType{Key: StructKey{Name: "uinput_abs_setup"}}},
+ }},
+ {NR: 54, Name: "ioctl$UI_BEGIN_FF_ERASE", CallName: "ioctl", Args: []Type{
+ &ResourceType{TypeCommon: TypeCommon{TypeName: "fd_uinput", FldName: "fd", TypeSize: 4}},
+ &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "cmd", TypeSize: 4}}, Val: 3222033866},
+ &PtrType{TypeCommon: TypeCommon{TypeName: "ptr", FldName: "arg", TypeSize: 4}, Type: &StructType{Key: StructKey{Name: "uinput_ff_erase"}}},
+ }},
+ {NR: 54, Name: "ioctl$UI_BEGIN_FF_UPLOAD", CallName: "ioctl", Args: []Type{
+ &ResourceType{TypeCommon: TypeCommon{TypeName: "fd_uinput", FldName: "fd", TypeSize: 4}},
+ &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "cmd", TypeSize: 4}}, Val: 3227538888},
+ &PtrType{TypeCommon: TypeCommon{TypeName: "ptr", FldName: "arg", TypeSize: 4}, Type: &StructType{Key: StructKey{Name: "uinput_ff_upload"}}},
+ }},
+ {NR: 54, Name: "ioctl$UI_DEV_CREATE", CallName: "ioctl", Args: []Type{
+ &ResourceType{TypeCommon: TypeCommon{TypeName: "fd_uinput", FldName: "fd", TypeSize: 4}},
+ &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "cmd", TypeSize: 4}}, Val: 21761},
+ }},
+ {NR: 54, Name: "ioctl$UI_DEV_DESTROY", CallName: "ioctl", Args: []Type{
+ &ResourceType{TypeCommon: TypeCommon{TypeName: "fd_uinput", FldName: "fd", TypeSize: 4}},
+ &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "cmd", TypeSize: 4}}, Val: 21762},
+ }},
+ {NR: 54, Name: "ioctl$UI_DEV_SETUP", CallName: "ioctl", Args: []Type{
+ &ResourceType{TypeCommon: TypeCommon{TypeName: "fd_uinput", FldName: "fd", TypeSize: 4}},
+ &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "cmd", TypeSize: 4}}, Val: 1079792899},
+ &PtrType{TypeCommon: TypeCommon{TypeName: "ptr", FldName: "arg", TypeSize: 4}, Type: &StructType{Key: StructKey{Name: "uinput_setup"}}},
+ }},
+ {NR: 54, Name: "ioctl$UI_END_FF_ERASE", CallName: "ioctl", Args: []Type{
+ &ResourceType{TypeCommon: TypeCommon{TypeName: "fd_uinput", FldName: "fd", TypeSize: 4}},
+ &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "cmd", TypeSize: 4}}, Val: 1074550219},
+ &PtrType{TypeCommon: TypeCommon{TypeName: "ptr", FldName: "arg", TypeSize: 4}, Type: &StructType{Key: StructKey{Name: "uinput_ff_erase"}}},
+ }},
+ {NR: 54, Name: "ioctl$UI_END_FF_UPLOAD", CallName: "ioctl", Args: []Type{
+ &ResourceType{TypeCommon: TypeCommon{TypeName: "fd_uinput", FldName: "fd", TypeSize: 4}},
+ &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "cmd", TypeSize: 4}}, Val: 1080055241},
+ &PtrType{TypeCommon: TypeCommon{TypeName: "ptr", FldName: "arg", TypeSize: 4}, Type: &StructType{Key: StructKey{Name: "uinput_ff_upload"}}},
+ }},
+ {NR: 54, Name: "ioctl$UI_GET_SYSNAME", CallName: "ioctl", Args: []Type{
+ &ResourceType{TypeCommon: TypeCommon{TypeName: "fd_uinput", FldName: "fd", TypeSize: 4}},
+ &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "cmd", TypeSize: 4}}, Val: 2151699756},
+ &PtrType{TypeCommon: TypeCommon{TypeName: "ptr", FldName: "arg", TypeSize: 4}, Type: &BufferType{TypeCommon: TypeCommon{TypeName: "array", TypeSize: 64, ArgDir: 1}, Kind: 1, RangeBegin: 64, RangeEnd: 64}},
+ }},
+ {NR: 54, Name: "ioctl$UI_GET_VERSION", CallName: "ioctl", Args: []Type{
+ &ResourceType{TypeCommon: TypeCommon{TypeName: "fd_uinput", FldName: "fd", TypeSize: 4}},
+ &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "cmd", TypeSize: 4}}, Val: 2147767597},
+ &PtrType{TypeCommon: TypeCommon{TypeName: "ptr", FldName: "arg", TypeSize: 4}, Type: &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int32", TypeSize: 4, ArgDir: 1}}}},
+ }},
+ {NR: 54, Name: "ioctl$UI_SET_ABSBIT", CallName: "ioctl", Args: []Type{
+ &ResourceType{TypeCommon: TypeCommon{TypeName: "fd_uinput", FldName: "fd", TypeSize: 4}},
+ &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "cmd", TypeSize: 4}}, Val: 1074025831},
+ &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "intptr", FldName: "arg", TypeSize: 4}}, Kind: 2, RangeEnd: 7},
+ }},
+ {NR: 54, Name: "ioctl$UI_SET_EVBIT", CallName: "ioctl", Args: []Type{
+ &ResourceType{TypeCommon: TypeCommon{TypeName: "fd_uinput", FldName: "fd", TypeSize: 4}},
+ &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "cmd", TypeSize: 4}}, Val: 1074025828},
+ &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "intptr", FldName: "arg", TypeSize: 4}}, Kind: 2, RangeEnd: 31},
+ }},
+ {NR: 54, Name: "ioctl$UI_SET_FFBIT", CallName: "ioctl", Args: []Type{
+ &ResourceType{TypeCommon: TypeCommon{TypeName: "fd_uinput", FldName: "fd", TypeSize: 4}},
+ &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "cmd", TypeSize: 4}}, Val: 1074025835},
+ &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "intptr", FldName: "arg", TypeSize: 4}}, Kind: 2, RangeEnd: 127},
+ }},
+ {NR: 54, Name: "ioctl$UI_SET_KEYBIT", CallName: "ioctl", Args: []Type{
+ &ResourceType{TypeCommon: TypeCommon{TypeName: "fd_uinput", FldName: "fd", TypeSize: 4}},
+ &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "cmd", TypeSize: 4}}, Val: 1074025829},
+ &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "intptr", FldName: "arg", TypeSize: 4}}, Kind: 2, RangeEnd: 767},
+ }},
+ {NR: 54, Name: "ioctl$UI_SET_LEDBIT", CallName: "ioctl", Args: []Type{
+ &ResourceType{TypeCommon: TypeCommon{TypeName: "fd_uinput", FldName: "fd", TypeSize: 4}},
+ &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "cmd", TypeSize: 4}}, Val: 1074025833},
+ &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "intptr", FldName: "arg", TypeSize: 4}}, Kind: 2, RangeEnd: 15},
+ }},
+ {NR: 54, Name: "ioctl$UI_SET_MSCBIT", CallName: "ioctl", Args: []Type{
+ &ResourceType{TypeCommon: TypeCommon{TypeName: "fd_uinput", FldName: "fd", TypeSize: 4}},
+ &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "cmd", TypeSize: 4}}, Val: 1074025832},
+ &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "intptr", FldName: "arg", TypeSize: 4}}, Kind: 2, RangeEnd: 63},
+ }},
+ {NR: 54, Name: "ioctl$UI_SET_PHYS", CallName: "ioctl", Args: []Type{
+ &ResourceType{TypeCommon: TypeCommon{TypeName: "fd_uinput", FldName: "fd", TypeSize: 4}},
+ &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "cmd", TypeSize: 4}}, Val: 1074025836},
+ &PtrType{TypeCommon: TypeCommon{TypeName: "ptr", FldName: "arg", TypeSize: 4}, Type: &BufferType{TypeCommon: TypeCommon{TypeName: "string", TypeSize: 5}, Kind: 2, SubKind: "uinput_names", Values: []string{"syz0\x00", "syz1\x00"}}},
+ }},
+ {NR: 54, Name: "ioctl$UI_SET_PROPBIT", CallName: "ioctl", Args: []Type{
+ &ResourceType{TypeCommon: TypeCommon{TypeName: "fd_uinput", FldName: "fd", TypeSize: 4}},
+ &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "cmd", TypeSize: 4}}, Val: 1074025838},
+ &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "intptr", FldName: "arg", TypeSize: 4}}, Kind: 2, RangeEnd: 31},
+ }},
+ {NR: 54, Name: "ioctl$UI_SET_RELBIT", CallName: "ioctl", Args: []Type{
+ &ResourceType{TypeCommon: TypeCommon{TypeName: "fd_uinput", FldName: "fd", TypeSize: 4}},
+ &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "cmd", TypeSize: 4}}, Val: 1074025830},
+ &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "intptr", FldName: "arg", TypeSize: 4}}, Kind: 2, RangeEnd: 15},
+ }},
+ {NR: 54, Name: "ioctl$UI_SET_SNDBIT", CallName: "ioctl", Args: []Type{
+ &ResourceType{TypeCommon: TypeCommon{TypeName: "fd_uinput", FldName: "fd", TypeSize: 4}},
+ &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "cmd", TypeSize: 4}}, Val: 1074025834},
+ &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "intptr", FldName: "arg", TypeSize: 4}}, Kind: 2, RangeEnd: 7},
+ }},
+ {NR: 54, Name: "ioctl$UI_SET_SWBIT", CallName: "ioctl", Args: []Type{
+ &ResourceType{TypeCommon: TypeCommon{TypeName: "fd_uinput", FldName: "fd", TypeSize: 4}},
+ &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "cmd", TypeSize: 4}}, Val: 1074025837},
+ &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "intptr", FldName: "arg", TypeSize: 4}}, Kind: 2, RangeEnd: 15},
+ }},
{NR: 54, Name: "ioctl$VHOST_GET_FEATURES", CallName: "ioctl", Args: []Type{
&ResourceType{TypeCommon: TypeCommon{TypeName: "fd_vhost", FldName: "fd", TypeSize: 4}},
&ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "cmd", TypeSize: 4}}, Val: 2148052736},
@@ -28794,9 +28934,9 @@ var syscalls_arm = []*Syscall{
{NR: 322, Name: "openat$uinput", CallName: "openat", Args: []Type{
&ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "fd", TypeSize: 4}}, Val: 18446744073709551516},
&PtrType{TypeCommon: TypeCommon{TypeName: "ptr", FldName: "file", TypeSize: 4}, Type: &BufferType{TypeCommon: TypeCommon{TypeName: "string", TypeSize: 12}, Kind: 2, Values: []string{"/dev/uinput\x00"}}},
- &FlagsType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "open_flags", FldName: "flags", TypeSize: 4}}, Vals: []uint64{0, 1, 2, 1024, 8192, 524288, 64, 65536, 16384, 128, 131072, 262144, 256, 32768, 2048, 2097152, 1052672, 512, 4194304}, BitMask: true},
+ &FlagsType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "uinput_open_flags", FldName: "flags", TypeSize: 4}}, Vals: []uint64{2, 2050}},
&ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "mode", TypeSize: 4}}},
- }, Ret: &ResourceType{TypeCommon: TypeCommon{TypeName: "fd", FldName: "ret", TypeSize: 4, ArgDir: 1}}},
+ }, Ret: &ResourceType{TypeCommon: TypeCommon{TypeName: "fd_uinput", FldName: "ret", TypeSize: 4, ArgDir: 1}}},
{NR: 322, Name: "openat$urandom", CallName: "openat", Args: []Type{
&ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "fd", TypeSize: 4}}, Val: 18446744073709551516},
&PtrType{TypeCommon: TypeCommon{TypeName: "ptr", FldName: "file", TypeSize: 4}, Type: &BufferType{TypeCommon: TypeCommon{TypeName: "string", TypeSize: 13}, Kind: 2, Values: []string{"/dev/urandom\x00"}}},
@@ -33138,6 +33278,11 @@ var syscalls_arm = []*Syscall{
&PtrType{TypeCommon: TypeCommon{TypeName: "ptr", FldName: "val", TypeSize: 4}, Type: &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int64", TypeSize: 8}}}},
&LenType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "len", FldName: "len", TypeSize: 4}}, Buf: "val"},
}},
+ {NR: 4, Name: "write$input_event", CallName: "write", Args: []Type{
+ &ResourceType{TypeCommon: TypeCommon{TypeName: "fd_uinput", FldName: "fd", TypeSize: 4}},
+ &PtrType{TypeCommon: TypeCommon{TypeName: "ptr", FldName: "data", TypeSize: 4}, Type: &StructType{Key: StructKey{Name: "input_event"}}},
+ &LenType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "len", FldName: "len", TypeSize: 4}}, Buf: "data"},
+ }},
{NR: 4, Name: "write$selinux_access", CallName: "write", Args: []Type{
&ResourceType{TypeCommon: TypeCommon{TypeName: "fd_selinux_access", FldName: "fd", TypeSize: 4}},
&PtrType{TypeCommon: TypeCommon{TypeName: "ptr", FldName: "buf", TypeSize: 4}, Type: &StructType{Key: StructKey{Name: "selinux_access_req"}}},
@@ -33178,6 +33323,11 @@ var syscalls_arm = []*Syscall{
&PtrType{TypeCommon: TypeCommon{TypeName: "ptr", FldName: "buf", TypeSize: 4}, Type: &StructType{Key: StructKey{Name: "tun_buffer"}}},
&LenType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "len", FldName: "count", TypeSize: 4}}, Buf: "buf"},
}},
+ {NR: 4, Name: "write$uinput_user_dev", CallName: "write", Args: []Type{
+ &ResourceType{TypeCommon: TypeCommon{TypeName: "fd_uinput", FldName: "fd", TypeSize: 4}},
+ &PtrType{TypeCommon: TypeCommon{TypeName: "ptr", FldName: "data", TypeSize: 4}, Type: &StructType{Key: StructKey{Name: "uinput_user_dev"}}},
+ &LenType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "len", FldName: "len", TypeSize: 4}}, Buf: "data"},
+ }},
{NR: 4, Name: "write$vnet", CallName: "write", Args: []Type{
&ResourceType{TypeCommon: TypeCommon{TypeName: "vhost_net", FldName: "fd", TypeSize: 4}},
&PtrType{TypeCommon: TypeCommon{TypeName: "ptr", FldName: "buf", TypeSize: 4}, Type: &StructType{Key: StructKey{Name: "vhost_msg"}}},
@@ -33191,6 +33341,8 @@ var syscalls_arm = []*Syscall{
}
var consts_arm = []ConstValue{
+ {Name: "ABS_CNT", Value: 64},
+ {Name: "ABS_MAX", Value: 63},
{Name: "ADDR_COMPAT_LAYOUT", Value: 2097152},
{Name: "ADDR_LIMIT_32BIT", Value: 8388608},
{Name: "ADDR_LIMIT_3GB", Value: 134217728},
@@ -34159,10 +34311,14 @@ var consts_arm = []ConstValue{
{Name: "EVIOCSREP", Value: 1074283779},
{Name: "EV_ABS", Value: 3},
{Name: "EV_FF", Value: 21},
+ {Name: "EV_FF_STATUS", Value: 23},
{Name: "EV_KEY", Value: 1},
{Name: "EV_LED", Value: 17},
+ {Name: "EV_MAX", Value: 31},
{Name: "EV_MSC", Value: 4},
+ {Name: "EV_PWR", Value: 22},
{Name: "EV_REL", Value: 2},
+ {Name: "EV_REP", Value: 20},
{Name: "EV_SND", Value: 18},
{Name: "EV_SW", Value: 5},
{Name: "EV_SYN"},
@@ -34202,8 +34358,10 @@ var consts_arm = []ConstValue{
{Name: "FF_CONSTANT", Value: 82},
{Name: "FF_CUSTOM", Value: 93},
{Name: "FF_DAMPER", Value: 85},
+ {Name: "FF_EFFECT_MAX", Value: 87},
{Name: "FF_FRICTION", Value: 84},
{Name: "FF_INERTIA", Value: 86},
+ {Name: "FF_MAX", Value: 127},
{Name: "FF_PERIODIC", Value: 81},
{Name: "FF_RAMP", Value: 87},
{Name: "FF_SAW_DOWN", Value: 92},
@@ -34769,6 +34927,7 @@ var consts_arm = []ConstValue{
{Name: "IGMP_PIM", Value: 20},
{Name: "IGMP_TRACE", Value: 21},
{Name: "INOTIFY_IOC_SETNEXTWD", Value: 1074022656},
+ {Name: "INPUT_PROP_MAX", Value: 31},
{Name: "IN_ACCESS", Value: 1},
{Name: "IN_ATTRIB", Value: 4},
{Name: "IN_CLOEXEC", Value: 524288},
@@ -35304,6 +35463,7 @@ var consts_arm = []ConstValue{
{Name: "KEY_GRP_SETATTR", Value: 8192},
{Name: "KEY_GRP_VIEW", Value: 256},
{Name: "KEY_GRP_WRITE", Value: 1024},
+ {Name: "KEY_MAX", Value: 767},
{Name: "KEY_OTH_LINK", Value: 16},
{Name: "KEY_OTH_READ", Value: 2},
{Name: "KEY_OTH_SEARCH", Value: 8},
@@ -35474,6 +35634,7 @@ var consts_arm = []ConstValue{
{Name: "L2CAP_LM_SECURE", Value: 32},
{Name: "L2CAP_LM_TRUSTED", Value: 8},
{Name: "L2CAP_OPTIONS", Value: 1},
+ {Name: "LED_MAX", Value: 15},
{Name: "LLC_OPT_ACK_TMR_EXP", Value: 3},
{Name: "LLC_OPT_BUSY_TMR_EXP", Value: 6},
{Name: "LLC_OPT_PKTINFO", Value: 9},
@@ -35740,6 +35901,7 @@ var consts_arm = []ConstValue{
{Name: "MRT6_PIM", Value: 208},
{Name: "MRT6_TABLE", Value: 209},
{Name: "MRT6_VERSION", Value: 206},
+ {Name: "MSC_MAX", Value: 7},
{Name: "MSG_BATCH", Value: 262144},
{Name: "MSG_CMSG_CLOEXEC", Value: 1073741824},
{Name: "MSG_CONFIRM", Value: 2048},
@@ -36445,6 +36607,7 @@ var consts_arm = []ConstValue{
{Name: "RDS_TRANS_NONE", Value: 18446744073709551615},
{Name: "RDS_TRANS_TCP", Value: 2},
{Name: "READ_IMPLIES_EXEC", Value: 4194304},
+ {Name: "REL_MAX", Value: 15},
{Name: "RENAME_EXCHANGE", Value: 2},
{Name: "RENAME_NOREPLACE", Value: 1},
{Name: "RENAME_WHITEOUT", Value: 4},
@@ -37140,6 +37303,7 @@ var consts_arm = []ConstValue{
{Name: "SNDRV_TIMER_SCLASS_SEQUENCER", Value: 2},
{Name: "SND_CTL_ELEM_INFO_SIZE", Value: 272},
{Name: "SND_CTL_ELEM_VALUE_SIZE", Value: 708},
+ {Name: "SND_MAX", Value: 7},
{Name: "SOCKADDR_PPPOX_SIZE", Value: 30},
{Name: "SOCKADDR_SIZE", Value: 16},
{Name: "SOCKADDR_STORAGE_SIZE", Value: 128},
@@ -37290,6 +37454,7 @@ var consts_arm = []ConstValue{
{Name: "STATX_TYPE", Value: 1},
{Name: "STATX_UID", Value: 8},
{Name: "STICKY_TIMEOUTS", Value: 67108864},
+ {Name: "SW_MAX", Value: 15},
{Name: "SYNC_FILE_RANGE_WAIT_AFTER", Value: 4},
{Name: "SYNC_FILE_RANGE_WAIT_BEFORE", Value: 1},
{Name: "SYNC_FILE_RANGE_WRITE", Value: 2},
@@ -37823,6 +37988,28 @@ var consts_arm = []ConstValue{
{Name: "UHID_INPUT", Value: 8},
{Name: "UHID_INPUT2", Value: 12},
{Name: "UHID_SET_REPORT_REPLY", Value: 14},
+ {Name: "UINPUT_MAX_NAME_SIZE", Value: 80},
+ {Name: "UI_ABS_SETUP", Value: 1075598596},
+ {Name: "UI_BEGIN_FF_ERASE", Value: 3222033866},
+ {Name: "UI_BEGIN_FF_UPLOAD", Value: 3227538888},
+ {Name: "UI_DEV_CREATE", Value: 21761},
+ {Name: "UI_DEV_DESTROY", Value: 21762},
+ {Name: "UI_DEV_SETUP", Value: 1079792899},
+ {Name: "UI_END_FF_ERASE", Value: 1074550219},
+ {Name: "UI_END_FF_UPLOAD", Value: 1080055241},
+ {Name: "UI_GET_SYSNAME_64", Value: 2151699756},
+ {Name: "UI_GET_VERSION", Value: 2147767597},
+ {Name: "UI_SET_ABSBIT", Value: 1074025831},
+ {Name: "UI_SET_EVBIT", Value: 1074025828},
+ {Name: "UI_SET_FFBIT", Value: 1074025835},
+ {Name: "UI_SET_KEYBIT", Value: 1074025829},
+ {Name: "UI_SET_LEDBIT", Value: 1074025833},
+ {Name: "UI_SET_MSCBIT", Value: 1074025832},
+ {Name: "UI_SET_PHYS", Value: 1074025836},
+ {Name: "UI_SET_PROPBIT", Value: 1074025838},
+ {Name: "UI_SET_RELBIT", Value: 1074025830},
+ {Name: "UI_SET_SNDBIT", Value: 1074025834},
+ {Name: "UI_SET_SWBIT", Value: 1074025837},
{Name: "UMOUNT_NOFOLLOW", Value: 8},
{Name: "UNIX_PATH_MAX", Value: 108},
{Name: "USER_CLIENT", Value: 1},
@@ -39476,4 +39663,4 @@ var consts_arm = []ConstValue{
{Name: "bpf_insn_load_imm_dw", Value: 24},
}
-const revision_arm = "40fd31fbf1a70e5b6dc22c8c9423e1ddda42cbf1"
+const revision_arm = "b0dd9abc7a5acfffcc6da3159ae9df0700a84a4a"
diff --git a/sys/linux/gen/arm64.go b/sys/linux/gen/arm64.go
index cf3dacb62..4617b8c4e 100644
--- a/sys/linux/gen/arm64.go
+++ b/sys/linux/gen/arm64.go
@@ -77,6 +77,7 @@ var resources_arm64 = []*ResourceDesc{
{Name: "fd_tun", Type: &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int32", TypeSize: 4}}}, Kind: []string{"fd", "fd_tun"}, Values: []uint64{18446744073709551615, 18446744073709551516}},
{Name: "fd_uffd", Type: &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int32", TypeSize: 4}}}, Kind: []string{"fd", "fd_uffd"}, Values: []uint64{18446744073709551615, 18446744073709551516}},
{Name: "fd_uhid", Type: &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int32", TypeSize: 4}}}, Kind: []string{"fd", "fd_uhid"}, Values: []uint64{18446744073709551615, 18446744073709551516}},
+ {Name: "fd_uinput", Type: &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int32", TypeSize: 4}}}, Kind: []string{"fd", "fd_uinput"}, Values: []uint64{18446744073709551615, 18446744073709551516}},
{Name: "fd_v4l2_buffer", Type: &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int32", TypeSize: 4}}}, Kind: []string{"fd", "fd_v4l2_buffer"}, Values: []uint64{18446744073709551615, 18446744073709551516}},
{Name: "fd_vhost", Type: &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int32", TypeSize: 4}}}, Kind: []string{"fd", "fd_vhost"}, Values: []uint64{18446744073709551615, 18446744073709551516}},
{Name: "fd_video", Type: &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int32", TypeSize: 4}}}, Kind: []string{"fd", "fd_video"}, Values: []uint64{18446744073709551615, 18446744073709551516}},
@@ -3432,7 +3433,7 @@ var structDescs_arm64 = []*KeyedStruct{
&IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int16", FldName: "level", TypeSize: 2}}},
&StructType{Key: StructKey{Name: "ff_envelope"}, FldName: "envelop"},
}}},
- {Key: StructKey{Name: "ff_effect"}, Desc: &StructDesc{TypeCommon: TypeCommon{TypeName: "ff_effect", IsVarlen: true}, Fields: []Type{
+ {Key: StructKey{Name: "ff_effect"}, Desc: &StructDesc{TypeCommon: TypeCommon{TypeName: "ff_effect", TypeSize: 48}, Fields: []Type{
&FlagsType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "ff_effect_type", FldName: "type", TypeSize: 2}}, Vals: []uint64{81, 82, 83, 84, 85, 86, 87}},
&IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int16", FldName: "id", TypeSize: 2}}},
&IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int16", FldName: "dir", TypeSize: 2}}},
@@ -3441,7 +3442,7 @@ var structDescs_arm64 = []*KeyedStruct{
&ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "pad", TypeSize: 2}}, IsPad: true},
&UnionType{Key: StructKey{Name: "ff_effect_u"}, FldName: "u"},
}}},
- {Key: StructKey{Name: "ff_effect_u"}, Desc: &StructDesc{TypeCommon: TypeCommon{TypeName: "ff_effect_u", IsVarlen: true}, Fields: []Type{
+ {Key: StructKey{Name: "ff_effect_u"}, Desc: &StructDesc{TypeCommon: TypeCommon{TypeName: "ff_effect_u", TypeSize: 32}, Fields: []Type{
&StructType{Key: StructKey{Name: "ff_constant_effect"}, FldName: "const"},
&StructType{Key: StructKey{Name: "ff_ramp_effect"}, FldName: "ramp"},
&StructType{Key: StructKey{Name: "ff_periodic_effect"}, FldName: "period"},
@@ -3454,16 +3455,16 @@ var structDescs_arm64 = []*KeyedStruct{
&IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int16", FldName: "flen", TypeSize: 2}}},
&IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int16", FldName: "flevel", TypeSize: 2}}},
}}},
- {Key: StructKey{Name: "ff_periodic_effect"}, Desc: &StructDesc{TypeCommon: TypeCommon{TypeName: "ff_periodic_effect", IsVarlen: true}, Fields: []Type{
+ {Key: StructKey{Name: "ff_periodic_effect"}, Desc: &StructDesc{TypeCommon: TypeCommon{TypeName: "ff_periodic_effect", TypeSize: 32}, Fields: []Type{
&FlagsType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "ff_periodic_effect_wave", FldName: "wave", TypeSize: 2}}, Vals: []uint64{88, 89, 90, 91, 92, 93}},
&IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int16", FldName: "period", TypeSize: 2}}},
&IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int16", FldName: "magnit", TypeSize: 2}}},
&IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int16", FldName: "offset", TypeSize: 2}}},
&IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int16", FldName: "phase", TypeSize: 2}}},
- &StructType{Key: StructKey{Name: "ff_envelope"}, FldName: "envelop"},
+ &StructType{Key: StructKey{Name: "ff_envelope"}, FldName: "envelope"},
&ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "pad", TypeSize: 2}}, IsPad: true},
- &LenType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "len", FldName: "len", TypeSize: 4}}, Buf: "custom"},
- &ArrayType{TypeCommon: TypeCommon{TypeName: "array", FldName: "custom", IsVarlen: true}, Type: &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int16", TypeSize: 2}}}},
+ &LenType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "len", FldName: "custom_len", TypeSize: 4}}, Buf: "custom_data"},
+ &PtrType{TypeCommon: TypeCommon{TypeName: "ptr", FldName: "custom_data", TypeSize: 8}, Type: &ArrayType{TypeCommon: TypeCommon{TypeName: "array", IsVarlen: true}, Type: &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int16", TypeSize: 2}}}}},
}}},
{Key: StructKey{Name: "ff_ramp_effect"}, Desc: &StructDesc{TypeCommon: TypeCommon{TypeName: "ff_ramp_effect", TypeSize: 12}, Fields: []Type{
&IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int16", FldName: "slevel", TypeSize: 2}}},
@@ -5656,10 +5657,16 @@ var structDescs_arm64 = []*KeyedStruct{
}}},
{Key: StructKey{Name: "input_event"}, Desc: &StructDesc{TypeCommon: TypeCommon{TypeName: "input_event", TypeSize: 24}, Fields: []Type{
&StructType{Key: StructKey{Name: "timeval"}, FldName: "time"},
- &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int16", FldName: "type", TypeSize: 2}}},
+ &FlagsType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "input_codes", FldName: "type", TypeSize: 2}}, Vals: []uint64{0, 1, 2, 3, 4, 5, 17, 18, 20, 21, 22, 23, 31}},
&IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int16", FldName: "code", TypeSize: 2}}},
&IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int32", FldName: "val", TypeSize: 4}}},
}}},
+ {Key: StructKey{Name: "input_id"}, Desc: &StructDesc{TypeCommon: TypeCommon{TypeName: "input_id", TypeSize: 8}, Fields: []Type{
+ &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int16", FldName: "bustype", TypeSize: 2}}},
+ &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int16", FldName: "vendor", TypeSize: 2}}},
+ &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int16", FldName: "product", TypeSize: 2}}},
+ &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int16", FldName: "version", TypeSize: 2}}},
+ }}},
{Key: StructKey{Name: "input_keymap_entry"}, Desc: &StructDesc{TypeCommon: TypeCommon{TypeName: "input_keymap_entry", TypeSize: 40}, Fields: []Type{
&IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int8", FldName: "flags", TypeSize: 1}}},
&IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int8", FldName: "len", TypeSize: 1}}, Kind: 2, RangeEnd: 32},
@@ -5668,7 +5675,7 @@ var structDescs_arm64 = []*KeyedStruct{
&BufferType{TypeCommon: TypeCommon{TypeName: "array", FldName: "scancod", TypeSize: 32}, Kind: 1, RangeBegin: 32, RangeEnd: 32},
}}},
{Key: StructKey{Name: "input_mask"}, Desc: &StructDesc{TypeCommon: TypeCommon{TypeName: "input_mask", TypeSize: 16}, Fields: []Type{
- &FlagsType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "input_mask_type", FldName: "type", TypeSize: 4}}, Vals: []uint64{0, 1, 2, 3, 4, 5, 17, 18, 21}},
+ &FlagsType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "input_codes", FldName: "type", TypeSize: 4}}, Vals: []uint64{0, 1, 2, 3, 4, 5, 17, 18, 20, 21, 22, 23, 31}},
&LenType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "bytesize", FldName: "size", TypeSize: 4}}, BitSize: 8, Buf: "ptr"},
&PtrType{TypeCommon: TypeCommon{TypeName: "buffer", FldName: "ptr", TypeSize: 8}, Type: &BufferType{TypeCommon: TypeCommon{IsVarlen: true}}},
}}},
@@ -18686,6 +18693,36 @@ var structDescs_arm64 = []*KeyedStruct{
&LenType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "len", FldName: "size", TypeSize: 2}}, Buf: "data"},
&BufferType{TypeCommon: TypeCommon{TypeName: "array", FldName: "data", IsVarlen: true}},
}}},
+ {Key: StructKey{Name: "uinput_abs_setup"}, Desc: &StructDesc{TypeCommon: TypeCommon{TypeName: "uinput_abs_setup", TypeSize: 28}, Fields: []Type{
+ &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int16", FldName: "code", TypeSize: 2}}},
+ &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "pad", TypeSize: 2}}, IsPad: true},
+ &StructType{Key: StructKey{Name: "input_absinfo"}, FldName: "absinfo"},
+ }}},
+ {Key: StructKey{Name: "uinput_ff_erase"}, Desc: &StructDesc{TypeCommon: TypeCommon{TypeName: "uinput_ff_erase", TypeSize: 12}, Fields: []Type{
+ &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int32", FldName: "request_id", TypeSize: 4}}, Kind: 2, RangeEnd: 16},
+ &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int32", FldName: "retval", TypeSize: 4}}},
+ &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int32", FldName: "effect_id", TypeSize: 4}}},
+ }}},
+ {Key: StructKey{Name: "uinput_ff_upload"}, Desc: &StructDesc{TypeCommon: TypeCommon{TypeName: "uinput_ff_upload", TypeSize: 104}, Fields: []Type{
+ &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int32", FldName: "request_id", TypeSize: 4}}, Kind: 2, RangeEnd: 16},
+ &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int32", FldName: "retval", TypeSize: 4}}},
+ &StructType{Key: StructKey{Name: "ff_effect"}, FldName: "effect"},
+ &StructType{Key: StructKey{Name: "ff_effect"}, FldName: "old"},
+ }}},
+ {Key: StructKey{Name: "uinput_setup"}, Desc: &StructDesc{TypeCommon: TypeCommon{TypeName: "uinput_setup", TypeSize: 92}, Fields: []Type{
+ &StructType{Key: StructKey{Name: "input_id"}, FldName: "id"},
+ &BufferType{TypeCommon: TypeCommon{TypeName: "string", FldName: "name", TypeSize: 80}, Kind: 2, SubKind: "uinput_names", Values: []string{"syz0\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\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00", "syz1\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\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00"}},
+ &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int32", FldName: "ff_effects_max", TypeSize: 4}}, Kind: 2, RangeBegin: 1, RangeEnd: 87},
+ }}},
+ {Key: StructKey{Name: "uinput_user_dev"}, Desc: &StructDesc{TypeCommon: TypeCommon{TypeName: "uinput_user_dev", TypeSize: 1116}, Fields: []Type{
+ &BufferType{TypeCommon: TypeCommon{TypeName: "string", FldName: "name", TypeSize: 80}, Kind: 2, SubKind: "uinput_names", Values: []string{"syz0\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\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00", "syz1\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\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00"}},
+ &StructType{Key: StructKey{Name: "input_id"}, FldName: "id"},
+ &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int32", FldName: "ff_effects_max", TypeSize: 4}}, Kind: 2, RangeBegin: 1, RangeEnd: 87},
+ &ArrayType{TypeCommon: TypeCommon{TypeName: "array", FldName: "absmax", TypeSize: 256}, Type: &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int32", TypeSize: 4}}}, Kind: 1, RangeBegin: 64, RangeEnd: 64},
+ &ArrayType{TypeCommon: TypeCommon{TypeName: "array", FldName: "absmin", TypeSize: 256}, Type: &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int32", TypeSize: 4}}}, Kind: 1, RangeBegin: 64, RangeEnd: 64},
+ &ArrayType{TypeCommon: TypeCommon{TypeName: "array", FldName: "absfuzz", TypeSize: 256}, Type: &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int32", TypeSize: 4}}}, Kind: 1, RangeBegin: 64, RangeEnd: 64},
+ &ArrayType{TypeCommon: TypeCommon{TypeName: "array", FldName: "absflat", TypeSize: 256}, Type: &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int32", TypeSize: 4}}}, Kind: 1, RangeBegin: 64, RangeEnd: 64},
+ }}},
{Key: StructKey{Name: "unimapdesc_in"}, Desc: &StructDesc{TypeCommon: TypeCommon{TypeName: "unimapdesc_in", TypeSize: 16}, Fields: []Type{
&LenType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "len", FldName: "cnt", TypeSize: 2}}, Buf: "entries"},
&ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "pad", TypeSize: 6}}, IsPad: true},
@@ -27055,6 +27092,109 @@ var syscalls_arm64 = []*Syscall{
&ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "cmd", TypeSize: 8}}, Val: 3223366148},
&PtrType{TypeCommon: TypeCommon{TypeName: "ptr", FldName: "arg", TypeSize: 8}, Type: &StructType{Key: StructKey{Name: "uffdio_zeropage"}}},
}},
+ {NR: 29, Name: "ioctl$UI_ABS_SETUP", CallName: "ioctl", Args: []Type{
+ &ResourceType{TypeCommon: TypeCommon{TypeName: "fd_uinput", FldName: "fd", TypeSize: 4}},
+ &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "cmd", TypeSize: 8}}, Val: 1075598596},
+ &PtrType{TypeCommon: TypeCommon{TypeName: "ptr", FldName: "arg", TypeSize: 8}, Type: &StructType{Key: StructKey{Name: "uinput_abs_setup"}}},
+ }},
+ {NR: 29, Name: "ioctl$UI_BEGIN_FF_ERASE", CallName: "ioctl", Args: []Type{
+ &ResourceType{TypeCommon: TypeCommon{TypeName: "fd_uinput", FldName: "fd", TypeSize: 4}},
+ &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "cmd", TypeSize: 8}}, Val: 3222033866},
+ &PtrType{TypeCommon: TypeCommon{TypeName: "ptr", FldName: "arg", TypeSize: 8}, Type: &StructType{Key: StructKey{Name: "uinput_ff_erase"}}},
+ }},
+ {NR: 29, Name: "ioctl$UI_BEGIN_FF_UPLOAD", CallName: "ioctl", Args: []Type{
+ &ResourceType{TypeCommon: TypeCommon{TypeName: "fd_uinput", FldName: "fd", TypeSize: 4}},
+ &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "cmd", TypeSize: 8}}, Val: 3228063176},
+ &PtrType{TypeCommon: TypeCommon{TypeName: "ptr", FldName: "arg", TypeSize: 8}, Type: &StructType{Key: StructKey{Name: "uinput_ff_upload"}}},
+ }},
+ {NR: 29, Name: "ioctl$UI_DEV_CREATE", CallName: "ioctl", Args: []Type{
+ &ResourceType{TypeCommon: TypeCommon{TypeName: "fd_uinput", FldName: "fd", TypeSize: 4}},
+ &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "cmd", TypeSize: 8}}, Val: 21761},
+ }},
+ {NR: 29, Name: "ioctl$UI_DEV_DESTROY", CallName: "ioctl", Args: []Type{
+ &ResourceType{TypeCommon: TypeCommon{TypeName: "fd_uinput", FldName: "fd", TypeSize: 4}},
+ &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "cmd", TypeSize: 8}}, Val: 21762},
+ }},
+ {NR: 29, Name: "ioctl$UI_DEV_SETUP", CallName: "ioctl", Args: []Type{
+ &ResourceType{TypeCommon: TypeCommon{TypeName: "fd_uinput", FldName: "fd", TypeSize: 4}},
+ &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "cmd", TypeSize: 8}}, Val: 1079792899},
+ &PtrType{TypeCommon: TypeCommon{TypeName: "ptr", FldName: "arg", TypeSize: 8}, Type: &StructType{Key: StructKey{Name: "uinput_setup"}}},
+ }},
+ {NR: 29, Name: "ioctl$UI_END_FF_ERASE", CallName: "ioctl", Args: []Type{
+ &ResourceType{TypeCommon: TypeCommon{TypeName: "fd_uinput", FldName: "fd", TypeSize: 4}},
+ &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "cmd", TypeSize: 8}}, Val: 1074550219},
+ &PtrType{TypeCommon: TypeCommon{TypeName: "ptr", FldName: "arg", TypeSize: 8}, Type: &StructType{Key: StructKey{Name: "uinput_ff_erase"}}},
+ }},
+ {NR: 29, Name: "ioctl$UI_END_FF_UPLOAD", CallName: "ioctl", Args: []Type{
+ &ResourceType{TypeCommon: TypeCommon{TypeName: "fd_uinput", FldName: "fd", TypeSize: 4}},
+ &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "cmd", TypeSize: 8}}, Val: 1080579529},
+ &PtrType{TypeCommon: TypeCommon{TypeName: "ptr", FldName: "arg", TypeSize: 8}, Type: &StructType{Key: StructKey{Name: "uinput_ff_upload"}}},
+ }},
+ {NR: 29, Name: "ioctl$UI_GET_SYSNAME", CallName: "ioctl", Args: []Type{
+ &ResourceType{TypeCommon: TypeCommon{TypeName: "fd_uinput", FldName: "fd", TypeSize: 4}},
+ &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "cmd", TypeSize: 8}}, Val: 2151699756},
+ &PtrType{TypeCommon: TypeCommon{TypeName: "ptr", FldName: "arg", TypeSize: 8}, Type: &BufferType{TypeCommon: TypeCommon{TypeName: "array", TypeSize: 64, ArgDir: 1}, Kind: 1, RangeBegin: 64, RangeEnd: 64}},
+ }},
+ {NR: 29, Name: "ioctl$UI_GET_VERSION", CallName: "ioctl", Args: []Type{
+ &ResourceType{TypeCommon: TypeCommon{TypeName: "fd_uinput", FldName: "fd", TypeSize: 4}},
+ &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "cmd", TypeSize: 8}}, Val: 2147767597},
+ &PtrType{TypeCommon: TypeCommon{TypeName: "ptr", FldName: "arg", TypeSize: 8}, Type: &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int32", TypeSize: 4, ArgDir: 1}}}},
+ }},
+ {NR: 29, Name: "ioctl$UI_SET_ABSBIT", CallName: "ioctl", Args: []Type{
+ &ResourceType{TypeCommon: TypeCommon{TypeName: "fd_uinput", FldName: "fd", TypeSize: 4}},
+ &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "cmd", TypeSize: 8}}, Val: 1074025831},
+ &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "intptr", FldName: "arg", TypeSize: 8}}, Kind: 2, RangeEnd: 7},
+ }},
+ {NR: 29, Name: "ioctl$UI_SET_EVBIT", CallName: "ioctl", Args: []Type{
+ &ResourceType{TypeCommon: TypeCommon{TypeName: "fd_uinput", FldName: "fd", TypeSize: 4}},
+ &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "cmd", TypeSize: 8}}, Val: 1074025828},
+ &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "intptr", FldName: "arg", TypeSize: 8}}, Kind: 2, RangeEnd: 31},
+ }},
+ {NR: 29, Name: "ioctl$UI_SET_FFBIT", CallName: "ioctl", Args: []Type{
+ &ResourceType{TypeCommon: TypeCommon{TypeName: "fd_uinput", FldName: "fd", TypeSize: 4}},
+ &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "cmd", TypeSize: 8}}, Val: 1074025835},
+ &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "intptr", FldName: "arg", TypeSize: 8}}, Kind: 2, RangeEnd: 127},
+ }},
+ {NR: 29, Name: "ioctl$UI_SET_KEYBIT", CallName: "ioctl", Args: []Type{
+ &ResourceType{TypeCommon: TypeCommon{TypeName: "fd_uinput", FldName: "fd", TypeSize: 4}},
+ &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "cmd", TypeSize: 8}}, Val: 1074025829},
+ &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "intptr", FldName: "arg", TypeSize: 8}}, Kind: 2, RangeEnd: 767},
+ }},
+ {NR: 29, Name: "ioctl$UI_SET_LEDBIT", CallName: "ioctl", Args: []Type{
+ &ResourceType{TypeCommon: TypeCommon{TypeName: "fd_uinput", FldName: "fd", TypeSize: 4}},
+ &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "cmd", TypeSize: 8}}, Val: 1074025833},
+ &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "intptr", FldName: "arg", TypeSize: 8}}, Kind: 2, RangeEnd: 15},
+ }},
+ {NR: 29, Name: "ioctl$UI_SET_MSCBIT", CallName: "ioctl", Args: []Type{
+ &ResourceType{TypeCommon: TypeCommon{TypeName: "fd_uinput", FldName: "fd", TypeSize: 4}},
+ &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "cmd", TypeSize: 8}}, Val: 1074025832},
+ &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "intptr", FldName: "arg", TypeSize: 8}}, Kind: 2, RangeEnd: 63},
+ }},
+ {NR: 29, Name: "ioctl$UI_SET_PHYS", CallName: "ioctl", Args: []Type{
+ &ResourceType{TypeCommon: TypeCommon{TypeName: "fd_uinput", FldName: "fd", TypeSize: 4}},
+ &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "cmd", TypeSize: 8}}, Val: 1074287980},
+ &PtrType{TypeCommon: TypeCommon{TypeName: "ptr", FldName: "arg", TypeSize: 8}, Type: &BufferType{TypeCommon: TypeCommon{TypeName: "string", TypeSize: 5}, Kind: 2, SubKind: "uinput_names", Values: []string{"syz0\x00", "syz1\x00"}}},
+ }},
+ {NR: 29, Name: "ioctl$UI_SET_PROPBIT", CallName: "ioctl", Args: []Type{
+ &ResourceType{TypeCommon: TypeCommon{TypeName: "fd_uinput", FldName: "fd", TypeSize: 4}},
+ &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "cmd", TypeSize: 8}}, Val: 1074025838},
+ &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "intptr", FldName: "arg", TypeSize: 8}}, Kind: 2, RangeEnd: 31},
+ }},
+ {NR: 29, Name: "ioctl$UI_SET_RELBIT", CallName: "ioctl", Args: []Type{
+ &ResourceType{TypeCommon: TypeCommon{TypeName: "fd_uinput", FldName: "fd", TypeSize: 4}},
+ &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "cmd", TypeSize: 8}}, Val: 1074025830},
+ &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "intptr", FldName: "arg", TypeSize: 8}}, Kind: 2, RangeEnd: 15},
+ }},
+ {NR: 29, Name: "ioctl$UI_SET_SNDBIT", CallName: "ioctl", Args: []Type{
+ &ResourceType{TypeCommon: TypeCommon{TypeName: "fd_uinput", FldName: "fd", TypeSize: 4}},
+ &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "cmd", TypeSize: 8}}, Val: 1074025834},
+ &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "intptr", FldName: "arg", TypeSize: 8}}, Kind: 2, RangeEnd: 7},
+ }},
+ {NR: 29, Name: "ioctl$UI_SET_SWBIT", CallName: "ioctl", Args: []Type{
+ &ResourceType{TypeCommon: TypeCommon{TypeName: "fd_uinput", FldName: "fd", TypeSize: 4}},
+ &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "cmd", TypeSize: 8}}, Val: 1074025837},
+ &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "intptr", FldName: "arg", TypeSize: 8}}, Kind: 2, RangeEnd: 15},
+ }},
{NR: 29, Name: "ioctl$VHOST_GET_FEATURES", CallName: "ioctl", Args: []Type{
&ResourceType{TypeCommon: TypeCommon{TypeName: "fd_vhost", FldName: "fd", TypeSize: 4}},
&ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "cmd", TypeSize: 8}}, Val: 2148052736},
@@ -29064,9 +29204,9 @@ var syscalls_arm64 = []*Syscall{
{NR: 56, Name: "openat$uinput", CallName: "openat", Args: []Type{
&ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "fd", TypeSize: 8}}, Val: 18446744073709551516},
&PtrType{TypeCommon: TypeCommon{TypeName: "ptr", FldName: "file", TypeSize: 8}, Type: &BufferType{TypeCommon: TypeCommon{TypeName: "string", TypeSize: 12}, Kind: 2, Values: []string{"/dev/uinput\x00"}}},
- &FlagsType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "open_flags", FldName: "flags", TypeSize: 8}}, Vals: []uint64{0, 1, 2, 1024, 8192, 524288, 64, 65536, 16384, 128, 131072, 262144, 256, 32768, 2048, 2097152, 1052672, 512, 4194304}, BitMask: true},
+ &FlagsType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "uinput_open_flags", FldName: "flags", TypeSize: 8}}, Vals: []uint64{2, 2050}},
&ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "mode", TypeSize: 8}}},
- }, Ret: &ResourceType{TypeCommon: TypeCommon{TypeName: "fd", FldName: "ret", TypeSize: 4, ArgDir: 1}}},
+ }, Ret: &ResourceType{TypeCommon: TypeCommon{TypeName: "fd_uinput", FldName: "ret", TypeSize: 4, ArgDir: 1}}},
{NR: 56, Name: "openat$urandom", CallName: "openat", Args: []Type{
&ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "fd", TypeSize: 8}}, Val: 18446744073709551516},
&PtrType{TypeCommon: TypeCommon{TypeName: "ptr", FldName: "file", TypeSize: 8}, Type: &BufferType{TypeCommon: TypeCommon{TypeName: "string", TypeSize: 13}, Kind: 2, Values: []string{"/dev/urandom\x00"}}},
@@ -33342,6 +33482,11 @@ var syscalls_arm64 = []*Syscall{
&PtrType{TypeCommon: TypeCommon{TypeName: "ptr", FldName: "val", TypeSize: 8}, Type: &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int64", TypeSize: 8}}}},
&LenType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "len", FldName: "len", TypeSize: 8}}, Buf: "val"},
}},
+ {NR: 64, Name: "write$input_event", CallName: "write", Args: []Type{
+ &ResourceType{TypeCommon: TypeCommon{TypeName: "fd_uinput", FldName: "fd", TypeSize: 4}},
+ &PtrType{TypeCommon: TypeCommon{TypeName: "ptr", FldName: "data", TypeSize: 8}, Type: &StructType{Key: StructKey{Name: "input_event"}}},
+ &LenType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "len", FldName: "len", TypeSize: 8}}, Buf: "data"},
+ }},
{NR: 64, Name: "write$selinux_access", CallName: "write", Args: []Type{
&ResourceType{TypeCommon: TypeCommon{TypeName: "fd_selinux_access", FldName: "fd", TypeSize: 4}},
&PtrType{TypeCommon: TypeCommon{TypeName: "ptr", FldName: "buf", TypeSize: 8}, Type: &StructType{Key: StructKey{Name: "selinux_access_req"}}},
@@ -33382,6 +33527,11 @@ var syscalls_arm64 = []*Syscall{
&PtrType{TypeCommon: TypeCommon{TypeName: "ptr", FldName: "buf", TypeSize: 8}, Type: &StructType{Key: StructKey{Name: "tun_buffer"}}},
&LenType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "len", FldName: "count", TypeSize: 8}}, Buf: "buf"},
}},
+ {NR: 64, Name: "write$uinput_user_dev", CallName: "write", Args: []Type{
+ &ResourceType{TypeCommon: TypeCommon{TypeName: "fd_uinput", FldName: "fd", TypeSize: 4}},
+ &PtrType{TypeCommon: TypeCommon{TypeName: "ptr", FldName: "data", TypeSize: 8}, Type: &StructType{Key: StructKey{Name: "uinput_user_dev"}}},
+ &LenType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "len", FldName: "len", TypeSize: 8}}, Buf: "data"},
+ }},
{NR: 64, Name: "write$vnet", CallName: "write", Args: []Type{
&ResourceType{TypeCommon: TypeCommon{TypeName: "vhost_net", FldName: "fd", TypeSize: 4}},
&PtrType{TypeCommon: TypeCommon{TypeName: "ptr", FldName: "buf", TypeSize: 8}, Type: &StructType{Key: StructKey{Name: "vhost_msg"}}},
@@ -33395,6 +33545,8 @@ var syscalls_arm64 = []*Syscall{
}
var consts_arm64 = []ConstValue{
+ {Name: "ABS_CNT", Value: 64},
+ {Name: "ABS_MAX", Value: 63},
{Name: "ADDR_COMPAT_LAYOUT", Value: 2097152},
{Name: "ADDR_LIMIT_32BIT", Value: 8388608},
{Name: "ADDR_LIMIT_3GB", Value: 134217728},
@@ -34363,10 +34515,14 @@ var consts_arm64 = []ConstValue{
{Name: "EVIOCSREP", Value: 1074283779},
{Name: "EV_ABS", Value: 3},
{Name: "EV_FF", Value: 21},
+ {Name: "EV_FF_STATUS", Value: 23},
{Name: "EV_KEY", Value: 1},
{Name: "EV_LED", Value: 17},
+ {Name: "EV_MAX", Value: 31},
{Name: "EV_MSC", Value: 4},
+ {Name: "EV_PWR", Value: 22},
{Name: "EV_REL", Value: 2},
+ {Name: "EV_REP", Value: 20},
{Name: "EV_SND", Value: 18},
{Name: "EV_SW", Value: 5},
{Name: "EV_SYN"},
@@ -34406,8 +34562,10 @@ var consts_arm64 = []ConstValue{
{Name: "FF_CONSTANT", Value: 82},
{Name: "FF_CUSTOM", Value: 93},
{Name: "FF_DAMPER", Value: 85},
+ {Name: "FF_EFFECT_MAX", Value: 87},
{Name: "FF_FRICTION", Value: 84},
{Name: "FF_INERTIA", Value: 86},
+ {Name: "FF_MAX", Value: 127},
{Name: "FF_PERIODIC", Value: 81},
{Name: "FF_RAMP", Value: 87},
{Name: "FF_SAW_DOWN", Value: 92},
@@ -34973,6 +35131,7 @@ var consts_arm64 = []ConstValue{
{Name: "IGMP_PIM", Value: 20},
{Name: "IGMP_TRACE", Value: 21},
{Name: "INOTIFY_IOC_SETNEXTWD", Value: 1074022656},
+ {Name: "INPUT_PROP_MAX", Value: 31},
{Name: "IN_ACCESS", Value: 1},
{Name: "IN_ATTRIB", Value: 4},
{Name: "IN_CLOEXEC", Value: 524288},
@@ -35508,6 +35667,7 @@ var consts_arm64 = []ConstValue{
{Name: "KEY_GRP_SETATTR", Value: 8192},
{Name: "KEY_GRP_VIEW", Value: 256},
{Name: "KEY_GRP_WRITE", Value: 1024},
+ {Name: "KEY_MAX", Value: 767},
{Name: "KEY_OTH_LINK", Value: 16},
{Name: "KEY_OTH_READ", Value: 2},
{Name: "KEY_OTH_SEARCH", Value: 8},
@@ -35687,6 +35847,7 @@ var consts_arm64 = []ConstValue{
{Name: "L2CAP_LM_SECURE", Value: 32},
{Name: "L2CAP_LM_TRUSTED", Value: 8},
{Name: "L2CAP_OPTIONS", Value: 1},
+ {Name: "LED_MAX", Value: 15},
{Name: "LLC_OPT_ACK_TMR_EXP", Value: 3},
{Name: "LLC_OPT_BUSY_TMR_EXP", Value: 6},
{Name: "LLC_OPT_PKTINFO", Value: 9},
@@ -35953,6 +36114,7 @@ var consts_arm64 = []ConstValue{
{Name: "MRT6_PIM", Value: 208},
{Name: "MRT6_TABLE", Value: 209},
{Name: "MRT6_VERSION", Value: 206},
+ {Name: "MSC_MAX", Value: 7},
{Name: "MSG_BATCH", Value: 262144},
{Name: "MSG_CMSG_CLOEXEC", Value: 1073741824},
{Name: "MSG_CONFIRM", Value: 2048},
@@ -36654,6 +36816,7 @@ var consts_arm64 = []ConstValue{
{Name: "RDS_TRANS_NONE", Value: 18446744073709551615},
{Name: "RDS_TRANS_TCP", Value: 2},
{Name: "READ_IMPLIES_EXEC", Value: 4194304},
+ {Name: "REL_MAX", Value: 15},
{Name: "RENAME_EXCHANGE", Value: 2},
{Name: "RENAME_NOREPLACE", Value: 1},
{Name: "RENAME_WHITEOUT", Value: 4},
@@ -37349,6 +37512,7 @@ var consts_arm64 = []ConstValue{
{Name: "SNDRV_TIMER_SCLASS_SEQUENCER", Value: 2},
{Name: "SND_CTL_ELEM_INFO_SIZE", Value: 272},
{Name: "SND_CTL_ELEM_VALUE_SIZE", Value: 1224},
+ {Name: "SND_MAX", Value: 7},
{Name: "SOCKADDR_PPPOX_SIZE", Value: 30},
{Name: "SOCKADDR_SIZE", Value: 16},
{Name: "SOCKADDR_STORAGE_SIZE", Value: 128},
@@ -37499,6 +37663,7 @@ var consts_arm64 = []ConstValue{
{Name: "STATX_TYPE", Value: 1},
{Name: "STATX_UID", Value: 8},
{Name: "STICKY_TIMEOUTS", Value: 67108864},
+ {Name: "SW_MAX", Value: 15},
{Name: "SYNC_FILE_RANGE_WAIT_AFTER", Value: 4},
{Name: "SYNC_FILE_RANGE_WAIT_BEFORE", Value: 1},
{Name: "SYNC_FILE_RANGE_WRITE", Value: 2},
@@ -38046,6 +38211,28 @@ var consts_arm64 = []ConstValue{
{Name: "UHID_INPUT", Value: 8},
{Name: "UHID_INPUT2", Value: 12},
{Name: "UHID_SET_REPORT_REPLY", Value: 14},
+ {Name: "UINPUT_MAX_NAME_SIZE", Value: 80},
+ {Name: "UI_ABS_SETUP", Value: 1075598596},
+ {Name: "UI_BEGIN_FF_ERASE", Value: 3222033866},
+ {Name: "UI_BEGIN_FF_UPLOAD", Value: 3228063176},
+ {Name: "UI_DEV_CREATE", Value: 21761},
+ {Name: "UI_DEV_DESTROY", Value: 21762},
+ {Name: "UI_DEV_SETUP", Value: 1079792899},
+ {Name: "UI_END_FF_ERASE", Value: 1074550219},
+ {Name: "UI_END_FF_UPLOAD", Value: 1080579529},
+ {Name: "UI_GET_SYSNAME_64", Value: 2151699756},
+ {Name: "UI_GET_VERSION", Value: 2147767597},
+ {Name: "UI_SET_ABSBIT", Value: 1074025831},
+ {Name: "UI_SET_EVBIT", Value: 1074025828},
+ {Name: "UI_SET_FFBIT", Value: 1074025835},
+ {Name: "UI_SET_KEYBIT", Value: 1074025829},
+ {Name: "UI_SET_LEDBIT", Value: 1074025833},
+ {Name: "UI_SET_MSCBIT", Value: 1074025832},
+ {Name: "UI_SET_PHYS", Value: 1074287980},
+ {Name: "UI_SET_PROPBIT", Value: 1074025838},
+ {Name: "UI_SET_RELBIT", Value: 1074025830},
+ {Name: "UI_SET_SNDBIT", Value: 1074025834},
+ {Name: "UI_SET_SWBIT", Value: 1074025837},
{Name: "UMOUNT_NOFOLLOW", Value: 8},
{Name: "UNIX_PATH_MAX", Value: 108},
{Name: "USER_CLIENT", Value: 1},
@@ -39670,4 +39857,4 @@ var consts_arm64 = []ConstValue{
{Name: "bpf_insn_load_imm_dw", Value: 24},
}
-const revision_arm64 = "8c06a1a26ab471ea14705baab58d60e9a706c1c9"
+const revision_arm64 = "a704fd29cde1884c766605de62de1d34ec317232"
diff --git a/sys/linux/gen/ppc64le.go b/sys/linux/gen/ppc64le.go
index 3edebeed0..553a53105 100644
--- a/sys/linux/gen/ppc64le.go
+++ b/sys/linux/gen/ppc64le.go
@@ -76,6 +76,7 @@ var resources_ppc64le = []*ResourceDesc{
{Name: "fd_tun", Type: &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int32", TypeSize: 4}}}, Kind: []string{"fd", "fd_tun"}, Values: []uint64{18446744073709551615, 18446744073709551516}},
{Name: "fd_uffd", Type: &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int32", TypeSize: 4}}}, Kind: []string{"fd", "fd_uffd"}, Values: []uint64{18446744073709551615, 18446744073709551516}},
{Name: "fd_uhid", Type: &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int32", TypeSize: 4}}}, Kind: []string{"fd", "fd_uhid"}, Values: []uint64{18446744073709551615, 18446744073709551516}},
+ {Name: "fd_uinput", Type: &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int32", TypeSize: 4}}}, Kind: []string{"fd", "fd_uinput"}, Values: []uint64{18446744073709551615, 18446744073709551516}},
{Name: "fd_vhost", Type: &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int32", TypeSize: 4}}}, Kind: []string{"fd", "fd_vhost"}, Values: []uint64{18446744073709551615, 18446744073709551516}},
{Name: "fd_video", Type: &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int32", TypeSize: 4}}}, Kind: []string{"fd", "fd_video"}, Values: []uint64{18446744073709551615, 18446744073709551516}},
{Name: "genl_fou_family_id", Type: &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int16", TypeSize: 2}}}, Kind: []string{"genl_fou_family_id"}, Values: []uint64{0}},
@@ -3423,7 +3424,7 @@ var structDescs_ppc64le = []*KeyedStruct{
&IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int16", FldName: "level", TypeSize: 2}}},
&StructType{Key: StructKey{Name: "ff_envelope"}, FldName: "envelop"},
}}},
- {Key: StructKey{Name: "ff_effect"}, Desc: &StructDesc{TypeCommon: TypeCommon{TypeName: "ff_effect", IsVarlen: true}, Fields: []Type{
+ {Key: StructKey{Name: "ff_effect"}, Desc: &StructDesc{TypeCommon: TypeCommon{TypeName: "ff_effect", TypeSize: 48}, Fields: []Type{
&FlagsType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "ff_effect_type", FldName: "type", TypeSize: 2}}, Vals: []uint64{81, 82, 83, 84, 85, 86, 87}},
&IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int16", FldName: "id", TypeSize: 2}}},
&IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int16", FldName: "dir", TypeSize: 2}}},
@@ -3432,7 +3433,7 @@ var structDescs_ppc64le = []*KeyedStruct{
&ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "pad", TypeSize: 2}}, IsPad: true},
&UnionType{Key: StructKey{Name: "ff_effect_u"}, FldName: "u"},
}}},
- {Key: StructKey{Name: "ff_effect_u"}, Desc: &StructDesc{TypeCommon: TypeCommon{TypeName: "ff_effect_u", IsVarlen: true}, Fields: []Type{
+ {Key: StructKey{Name: "ff_effect_u"}, Desc: &StructDesc{TypeCommon: TypeCommon{TypeName: "ff_effect_u", TypeSize: 32}, Fields: []Type{
&StructType{Key: StructKey{Name: "ff_constant_effect"}, FldName: "const"},
&StructType{Key: StructKey{Name: "ff_ramp_effect"}, FldName: "ramp"},
&StructType{Key: StructKey{Name: "ff_periodic_effect"}, FldName: "period"},
@@ -3445,16 +3446,16 @@ var structDescs_ppc64le = []*KeyedStruct{
&IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int16", FldName: "flen", TypeSize: 2}}},
&IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int16", FldName: "flevel", TypeSize: 2}}},
}}},
- {Key: StructKey{Name: "ff_periodic_effect"}, Desc: &StructDesc{TypeCommon: TypeCommon{TypeName: "ff_periodic_effect", IsVarlen: true}, Fields: []Type{
+ {Key: StructKey{Name: "ff_periodic_effect"}, Desc: &StructDesc{TypeCommon: TypeCommon{TypeName: "ff_periodic_effect", TypeSize: 32}, Fields: []Type{
&FlagsType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "ff_periodic_effect_wave", FldName: "wave", TypeSize: 2}}, Vals: []uint64{88, 89, 90, 91, 92, 93}},
&IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int16", FldName: "period", TypeSize: 2}}},
&IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int16", FldName: "magnit", TypeSize: 2}}},
&IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int16", FldName: "offset", TypeSize: 2}}},
&IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int16", FldName: "phase", TypeSize: 2}}},
- &StructType{Key: StructKey{Name: "ff_envelope"}, FldName: "envelop"},
+ &StructType{Key: StructKey{Name: "ff_envelope"}, FldName: "envelope"},
&ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "pad", TypeSize: 2}}, IsPad: true},
- &LenType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "len", FldName: "len", TypeSize: 4}}, Buf: "custom"},
- &ArrayType{TypeCommon: TypeCommon{TypeName: "array", FldName: "custom", IsVarlen: true}, Type: &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int16", TypeSize: 2}}}},
+ &LenType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "len", FldName: "custom_len", TypeSize: 4}}, Buf: "custom_data"},
+ &PtrType{TypeCommon: TypeCommon{TypeName: "ptr", FldName: "custom_data", TypeSize: 8}, Type: &ArrayType{TypeCommon: TypeCommon{TypeName: "array", IsVarlen: true}, Type: &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int16", TypeSize: 2}}}}},
}}},
{Key: StructKey{Name: "ff_ramp_effect"}, Desc: &StructDesc{TypeCommon: TypeCommon{TypeName: "ff_ramp_effect", TypeSize: 12}, Fields: []Type{
&IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int16", FldName: "slevel", TypeSize: 2}}},
@@ -5647,10 +5648,16 @@ var structDescs_ppc64le = []*KeyedStruct{
}}},
{Key: StructKey{Name: "input_event"}, Desc: &StructDesc{TypeCommon: TypeCommon{TypeName: "input_event", TypeSize: 24}, Fields: []Type{
&StructType{Key: StructKey{Name: "timeval"}, FldName: "time"},
- &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int16", FldName: "type", TypeSize: 2}}},
+ &FlagsType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "input_codes", FldName: "type", TypeSize: 2}}, Vals: []uint64{0, 1, 2, 3, 4, 5, 17, 18, 20, 21, 22, 23, 31}},
&IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int16", FldName: "code", TypeSize: 2}}},
&IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int32", FldName: "val", TypeSize: 4}}},
}}},
+ {Key: StructKey{Name: "input_id"}, Desc: &StructDesc{TypeCommon: TypeCommon{TypeName: "input_id", TypeSize: 8}, Fields: []Type{
+ &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int16", FldName: "bustype", TypeSize: 2}}},
+ &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int16", FldName: "vendor", TypeSize: 2}}},
+ &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int16", FldName: "product", TypeSize: 2}}},
+ &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int16", FldName: "version", TypeSize: 2}}},
+ }}},
{Key: StructKey{Name: "input_keymap_entry"}, Desc: &StructDesc{TypeCommon: TypeCommon{TypeName: "input_keymap_entry", TypeSize: 40}, Fields: []Type{
&IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int8", FldName: "flags", TypeSize: 1}}},
&IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int8", FldName: "len", TypeSize: 1}}, Kind: 2, RangeEnd: 32},
@@ -5659,7 +5666,7 @@ var structDescs_ppc64le = []*KeyedStruct{
&BufferType{TypeCommon: TypeCommon{TypeName: "array", FldName: "scancod", TypeSize: 32}, Kind: 1, RangeBegin: 32, RangeEnd: 32},
}}},
{Key: StructKey{Name: "input_mask"}, Desc: &StructDesc{TypeCommon: TypeCommon{TypeName: "input_mask", TypeSize: 16}, Fields: []Type{
- &FlagsType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "input_mask_type", FldName: "type", TypeSize: 4}}, Vals: []uint64{0, 1, 2, 3, 4, 5, 17, 18, 21}},
+ &FlagsType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "input_codes", FldName: "type", TypeSize: 4}}, Vals: []uint64{0, 1, 2, 3, 4, 5, 17, 18, 20, 21, 22, 23, 31}},
&LenType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "bytesize", FldName: "size", TypeSize: 4}}, BitSize: 8, Buf: "ptr"},
&PtrType{TypeCommon: TypeCommon{TypeName: "buffer", FldName: "ptr", TypeSize: 8}, Type: &BufferType{TypeCommon: TypeCommon{IsVarlen: true}}},
}}},
@@ -18548,6 +18555,36 @@ var structDescs_ppc64le = []*KeyedStruct{
&LenType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "len", FldName: "size", TypeSize: 2}}, Buf: "data"},
&BufferType{TypeCommon: TypeCommon{TypeName: "array", FldName: "data", IsVarlen: true}},
}}},
+ {Key: StructKey{Name: "uinput_abs_setup"}, Desc: &StructDesc{TypeCommon: TypeCommon{TypeName: "uinput_abs_setup", TypeSize: 28}, Fields: []Type{
+ &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int16", FldName: "code", TypeSize: 2}}},
+ &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "pad", TypeSize: 2}}, IsPad: true},
+ &StructType{Key: StructKey{Name: "input_absinfo"}, FldName: "absinfo"},
+ }}},
+ {Key: StructKey{Name: "uinput_ff_erase"}, Desc: &StructDesc{TypeCommon: TypeCommon{TypeName: "uinput_ff_erase", TypeSize: 12}, Fields: []Type{
+ &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int32", FldName: "request_id", TypeSize: 4}}, Kind: 2, RangeEnd: 16},
+ &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int32", FldName: "retval", TypeSize: 4}}},
+ &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int32", FldName: "effect_id", TypeSize: 4}}},
+ }}},
+ {Key: StructKey{Name: "uinput_ff_upload"}, Desc: &StructDesc{TypeCommon: TypeCommon{TypeName: "uinput_ff_upload", TypeSize: 104}, Fields: []Type{
+ &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int32", FldName: "request_id", TypeSize: 4}}, Kind: 2, RangeEnd: 16},
+ &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int32", FldName: "retval", TypeSize: 4}}},
+ &StructType{Key: StructKey{Name: "ff_effect"}, FldName: "effect"},
+ &StructType{Key: StructKey{Name: "ff_effect"}, FldName: "old"},
+ }}},
+ {Key: StructKey{Name: "uinput_setup"}, Desc: &StructDesc{TypeCommon: TypeCommon{TypeName: "uinput_setup", TypeSize: 92}, Fields: []Type{
+ &StructType{Key: StructKey{Name: "input_id"}, FldName: "id"},
+ &BufferType{TypeCommon: TypeCommon{TypeName: "string", FldName: "name", TypeSize: 80}, Kind: 2, SubKind: "uinput_names", Values: []string{"syz0\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\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00", "syz1\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\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00"}},
+ &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int32", FldName: "ff_effects_max", TypeSize: 4}}, Kind: 2, RangeBegin: 1, RangeEnd: 87},
+ }}},
+ {Key: StructKey{Name: "uinput_user_dev"}, Desc: &StructDesc{TypeCommon: TypeCommon{TypeName: "uinput_user_dev", TypeSize: 1116}, Fields: []Type{
+ &BufferType{TypeCommon: TypeCommon{TypeName: "string", FldName: "name", TypeSize: 80}, Kind: 2, SubKind: "uinput_names", Values: []string{"syz0\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\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00", "syz1\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\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00"}},
+ &StructType{Key: StructKey{Name: "input_id"}, FldName: "id"},
+ &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int32", FldName: "ff_effects_max", TypeSize: 4}}, Kind: 2, RangeBegin: 1, RangeEnd: 87},
+ &ArrayType{TypeCommon: TypeCommon{TypeName: "array", FldName: "absmax", TypeSize: 256}, Type: &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int32", TypeSize: 4}}}, Kind: 1, RangeBegin: 64, RangeEnd: 64},
+ &ArrayType{TypeCommon: TypeCommon{TypeName: "array", FldName: "absmin", TypeSize: 256}, Type: &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int32", TypeSize: 4}}}, Kind: 1, RangeBegin: 64, RangeEnd: 64},
+ &ArrayType{TypeCommon: TypeCommon{TypeName: "array", FldName: "absfuzz", TypeSize: 256}, Type: &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int32", TypeSize: 4}}}, Kind: 1, RangeBegin: 64, RangeEnd: 64},
+ &ArrayType{TypeCommon: TypeCommon{TypeName: "array", FldName: "absflat", TypeSize: 256}, Type: &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int32", TypeSize: 4}}}, Kind: 1, RangeBegin: 64, RangeEnd: 64},
+ }}},
{Key: StructKey{Name: "unimapdesc_in"}, Desc: &StructDesc{TypeCommon: TypeCommon{TypeName: "unimapdesc_in", TypeSize: 16}, Fields: []Type{
&LenType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "len", FldName: "cnt", TypeSize: 2}}, Buf: "entries"},
&ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "pad", TypeSize: 6}}, IsPad: true},
@@ -26093,6 +26130,109 @@ var syscalls_ppc64le = []*Syscall{
&ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "cmd", TypeSize: 8}}, Val: 3223366148},
&PtrType{TypeCommon: TypeCommon{TypeName: "ptr", FldName: "arg", TypeSize: 8}, Type: &StructType{Key: StructKey{Name: "uffdio_zeropage"}}},
}},
+ {NR: 54, Name: "ioctl$UI_ABS_SETUP", CallName: "ioctl", Args: []Type{
+ &ResourceType{TypeCommon: TypeCommon{TypeName: "fd_uinput", FldName: "fd", TypeSize: 4}},
+ &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "cmd", TypeSize: 8}}, Val: 2149340420},
+ &PtrType{TypeCommon: TypeCommon{TypeName: "ptr", FldName: "arg", TypeSize: 8}, Type: &StructType{Key: StructKey{Name: "uinput_abs_setup"}}},
+ }},
+ {NR: 54, Name: "ioctl$UI_BEGIN_FF_ERASE", CallName: "ioctl", Args: []Type{
+ &ResourceType{TypeCommon: TypeCommon{TypeName: "fd_uinput", FldName: "fd", TypeSize: 4}},
+ &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "cmd", TypeSize: 8}}, Val: 3222033866},
+ &PtrType{TypeCommon: TypeCommon{TypeName: "ptr", FldName: "arg", TypeSize: 8}, Type: &StructType{Key: StructKey{Name: "uinput_ff_erase"}}},
+ }},
+ {NR: 54, Name: "ioctl$UI_BEGIN_FF_UPLOAD", CallName: "ioctl", Args: []Type{
+ &ResourceType{TypeCommon: TypeCommon{TypeName: "fd_uinput", FldName: "fd", TypeSize: 4}},
+ &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "cmd", TypeSize: 8}}, Val: 3228063176},
+ &PtrType{TypeCommon: TypeCommon{TypeName: "ptr", FldName: "arg", TypeSize: 8}, Type: &StructType{Key: StructKey{Name: "uinput_ff_upload"}}},
+ }},
+ {NR: 54, Name: "ioctl$UI_DEV_CREATE", CallName: "ioctl", Args: []Type{
+ &ResourceType{TypeCommon: TypeCommon{TypeName: "fd_uinput", FldName: "fd", TypeSize: 4}},
+ &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "cmd", TypeSize: 8}}, Val: 536892673},
+ }},
+ {NR: 54, Name: "ioctl$UI_DEV_DESTROY", CallName: "ioctl", Args: []Type{
+ &ResourceType{TypeCommon: TypeCommon{TypeName: "fd_uinput", FldName: "fd", TypeSize: 4}},
+ &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "cmd", TypeSize: 8}}, Val: 536892674},
+ }},
+ {NR: 54, Name: "ioctl$UI_DEV_SETUP", CallName: "ioctl", Args: []Type{
+ &ResourceType{TypeCommon: TypeCommon{TypeName: "fd_uinput", FldName: "fd", TypeSize: 4}},
+ &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "cmd", TypeSize: 8}}, Val: 2153534723},
+ &PtrType{TypeCommon: TypeCommon{TypeName: "ptr", FldName: "arg", TypeSize: 8}, Type: &StructType{Key: StructKey{Name: "uinput_setup"}}},
+ }},
+ {NR: 54, Name: "ioctl$UI_END_FF_ERASE", CallName: "ioctl", Args: []Type{
+ &ResourceType{TypeCommon: TypeCommon{TypeName: "fd_uinput", FldName: "fd", TypeSize: 4}},
+ &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "cmd", TypeSize: 8}}, Val: 2148292043},
+ &PtrType{TypeCommon: TypeCommon{TypeName: "ptr", FldName: "arg", TypeSize: 8}, Type: &StructType{Key: StructKey{Name: "uinput_ff_erase"}}},
+ }},
+ {NR: 54, Name: "ioctl$UI_END_FF_UPLOAD", CallName: "ioctl", Args: []Type{
+ &ResourceType{TypeCommon: TypeCommon{TypeName: "fd_uinput", FldName: "fd", TypeSize: 4}},
+ &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "cmd", TypeSize: 8}}, Val: 2154321353},
+ &PtrType{TypeCommon: TypeCommon{TypeName: "ptr", FldName: "arg", TypeSize: 8}, Type: &StructType{Key: StructKey{Name: "uinput_ff_upload"}}},
+ }},
+ {NR: 54, Name: "ioctl$UI_GET_SYSNAME", CallName: "ioctl", Args: []Type{
+ &ResourceType{TypeCommon: TypeCommon{TypeName: "fd_uinput", FldName: "fd", TypeSize: 4}},
+ &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "cmd", TypeSize: 8}}, Val: 1077957932},
+ &PtrType{TypeCommon: TypeCommon{TypeName: "ptr", FldName: "arg", TypeSize: 8}, Type: &BufferType{TypeCommon: TypeCommon{TypeName: "array", TypeSize: 64, ArgDir: 1}, Kind: 1, RangeBegin: 64, RangeEnd: 64}},
+ }},
+ {NR: 54, Name: "ioctl$UI_GET_VERSION", CallName: "ioctl", Args: []Type{
+ &ResourceType{TypeCommon: TypeCommon{TypeName: "fd_uinput", FldName: "fd", TypeSize: 4}},
+ &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "cmd", TypeSize: 8}}, Val: 1074025773},
+ &PtrType{TypeCommon: TypeCommon{TypeName: "ptr", FldName: "arg", TypeSize: 8}, Type: &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int32", TypeSize: 4, ArgDir: 1}}}},
+ }},
+ {NR: 54, Name: "ioctl$UI_SET_ABSBIT", CallName: "ioctl", Args: []Type{
+ &ResourceType{TypeCommon: TypeCommon{TypeName: "fd_uinput", FldName: "fd", TypeSize: 4}},
+ &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "cmd", TypeSize: 8}}, Val: 2147767655},
+ &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "intptr", FldName: "arg", TypeSize: 8}}, Kind: 2, RangeEnd: 7},
+ }},
+ {NR: 54, Name: "ioctl$UI_SET_EVBIT", CallName: "ioctl", Args: []Type{
+ &ResourceType{TypeCommon: TypeCommon{TypeName: "fd_uinput", FldName: "fd", TypeSize: 4}},
+ &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "cmd", TypeSize: 8}}, Val: 2147767652},
+ &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "intptr", FldName: "arg", TypeSize: 8}}, Kind: 2, RangeEnd: 31},
+ }},
+ {NR: 54, Name: "ioctl$UI_SET_FFBIT", CallName: "ioctl", Args: []Type{
+ &ResourceType{TypeCommon: TypeCommon{TypeName: "fd_uinput", FldName: "fd", TypeSize: 4}},
+ &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "cmd", TypeSize: 8}}, Val: 2147767659},
+ &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "intptr", FldName: "arg", TypeSize: 8}}, Kind: 2, RangeEnd: 127},
+ }},
+ {NR: 54, Name: "ioctl$UI_SET_KEYBIT", CallName: "ioctl", Args: []Type{
+ &ResourceType{TypeCommon: TypeCommon{TypeName: "fd_uinput", FldName: "fd", TypeSize: 4}},
+ &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "cmd", TypeSize: 8}}, Val: 2147767653},
+ &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "intptr", FldName: "arg", TypeSize: 8}}, Kind: 2, RangeEnd: 767},
+ }},
+ {NR: 54, Name: "ioctl$UI_SET_LEDBIT", CallName: "ioctl", Args: []Type{
+ &ResourceType{TypeCommon: TypeCommon{TypeName: "fd_uinput", FldName: "fd", TypeSize: 4}},
+ &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "cmd", TypeSize: 8}}, Val: 2147767657},
+ &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "intptr", FldName: "arg", TypeSize: 8}}, Kind: 2, RangeEnd: 15},
+ }},
+ {NR: 54, Name: "ioctl$UI_SET_MSCBIT", CallName: "ioctl", Args: []Type{
+ &ResourceType{TypeCommon: TypeCommon{TypeName: "fd_uinput", FldName: "fd", TypeSize: 4}},
+ &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "cmd", TypeSize: 8}}, Val: 2147767656},
+ &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "intptr", FldName: "arg", TypeSize: 8}}, Kind: 2, RangeEnd: 63},
+ }},
+ {NR: 54, Name: "ioctl$UI_SET_PHYS", CallName: "ioctl", Args: []Type{
+ &ResourceType{TypeCommon: TypeCommon{TypeName: "fd_uinput", FldName: "fd", TypeSize: 4}},
+ &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "cmd", TypeSize: 8}}, Val: 2148029804},
+ &PtrType{TypeCommon: TypeCommon{TypeName: "ptr", FldName: "arg", TypeSize: 8}, Type: &BufferType{TypeCommon: TypeCommon{TypeName: "string", TypeSize: 5}, Kind: 2, SubKind: "uinput_names", Values: []string{"syz0\x00", "syz1\x00"}}},
+ }},
+ {NR: 54, Name: "ioctl$UI_SET_PROPBIT", CallName: "ioctl", Args: []Type{
+ &ResourceType{TypeCommon: TypeCommon{TypeName: "fd_uinput", FldName: "fd", TypeSize: 4}},
+ &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "cmd", TypeSize: 8}}, Val: 2147767662},
+ &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "intptr", FldName: "arg", TypeSize: 8}}, Kind: 2, RangeEnd: 31},
+ }},
+ {NR: 54, Name: "ioctl$UI_SET_RELBIT", CallName: "ioctl", Args: []Type{
+ &ResourceType{TypeCommon: TypeCommon{TypeName: "fd_uinput", FldName: "fd", TypeSize: 4}},
+ &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "cmd", TypeSize: 8}}, Val: 2147767654},
+ &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "intptr", FldName: "arg", TypeSize: 8}}, Kind: 2, RangeEnd: 15},
+ }},
+ {NR: 54, Name: "ioctl$UI_SET_SNDBIT", CallName: "ioctl", Args: []Type{
+ &ResourceType{TypeCommon: TypeCommon{TypeName: "fd_uinput", FldName: "fd", TypeSize: 4}},
+ &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "cmd", TypeSize: 8}}, Val: 2147767658},
+ &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "intptr", FldName: "arg", TypeSize: 8}}, Kind: 2, RangeEnd: 7},
+ }},
+ {NR: 54, Name: "ioctl$UI_SET_SWBIT", CallName: "ioctl", Args: []Type{
+ &ResourceType{TypeCommon: TypeCommon{TypeName: "fd_uinput", FldName: "fd", TypeSize: 4}},
+ &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "cmd", TypeSize: 8}}, Val: 2147767661},
+ &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "intptr", FldName: "arg", TypeSize: 8}}, Kind: 2, RangeEnd: 15},
+ }},
{NR: 54, Name: "ioctl$VHOST_GET_FEATURES", CallName: "ioctl", Args: []Type{
&ResourceType{TypeCommon: TypeCommon{TypeName: "fd_vhost", FldName: "fd", TypeSize: 4}},
&ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "cmd", TypeSize: 8}}, Val: 1074310912},
@@ -27612,9 +27752,9 @@ var syscalls_ppc64le = []*Syscall{
{NR: 286, Name: "openat$uinput", CallName: "openat", Args: []Type{
&ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "fd", TypeSize: 8}}, Val: 18446744073709551516},
&PtrType{TypeCommon: TypeCommon{TypeName: "ptr", FldName: "file", TypeSize: 8}, Type: &BufferType{TypeCommon: TypeCommon{TypeName: "string", TypeSize: 12}, Kind: 2, Values: []string{"/dev/uinput\x00"}}},
- &FlagsType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "open_flags", FldName: "flags", TypeSize: 8}}, Vals: []uint64{0, 1, 2, 1024, 8192, 524288, 64, 131072, 16384, 128, 65536, 262144, 256, 32768, 2048, 2097152, 1052672, 512, 4194304}, BitMask: true},
+ &FlagsType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "uinput_open_flags", FldName: "flags", TypeSize: 8}}, Vals: []uint64{2, 2050}},
&ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "mode", TypeSize: 8}}},
- }, Ret: &ResourceType{TypeCommon: TypeCommon{TypeName: "fd", FldName: "ret", TypeSize: 4, ArgDir: 1}}},
+ }, Ret: &ResourceType{TypeCommon: TypeCommon{TypeName: "fd_uinput", FldName: "ret", TypeSize: 4, ArgDir: 1}}},
{NR: 286, Name: "openat$urandom", CallName: "openat", Args: []Type{
&ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "fd", TypeSize: 8}}, Val: 18446744073709551516},
&PtrType{TypeCommon: TypeCommon{TypeName: "ptr", FldName: "file", TypeSize: 8}, Type: &BufferType{TypeCommon: TypeCommon{TypeName: "string", TypeSize: 13}, Kind: 2, Values: []string{"/dev/urandom\x00"}}},
@@ -31809,6 +31949,11 @@ var syscalls_ppc64le = []*Syscall{
&PtrType{TypeCommon: TypeCommon{TypeName: "ptr", FldName: "val", TypeSize: 8}, Type: &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int64", TypeSize: 8}}}},
&LenType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "len", FldName: "len", TypeSize: 8}}, Buf: "val"},
}},
+ {NR: 4, Name: "write$input_event", CallName: "write", Args: []Type{
+ &ResourceType{TypeCommon: TypeCommon{TypeName: "fd_uinput", FldName: "fd", TypeSize: 4}},
+ &PtrType{TypeCommon: TypeCommon{TypeName: "ptr", FldName: "data", TypeSize: 8}, Type: &StructType{Key: StructKey{Name: "input_event"}}},
+ &LenType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "len", FldName: "len", TypeSize: 8}}, Buf: "data"},
+ }},
{NR: 4, Name: "write$selinux_access", CallName: "write", Args: []Type{
&ResourceType{TypeCommon: TypeCommon{TypeName: "fd_selinux_access", FldName: "fd", TypeSize: 4}},
&PtrType{TypeCommon: TypeCommon{TypeName: "ptr", FldName: "buf", TypeSize: 8}, Type: &StructType{Key: StructKey{Name: "selinux_access_req"}}},
@@ -31849,6 +31994,11 @@ var syscalls_ppc64le = []*Syscall{
&PtrType{TypeCommon: TypeCommon{TypeName: "ptr", FldName: "buf", TypeSize: 8}, Type: &StructType{Key: StructKey{Name: "tun_buffer"}}},
&LenType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "len", FldName: "count", TypeSize: 8}}, Buf: "buf"},
}},
+ {NR: 4, Name: "write$uinput_user_dev", CallName: "write", Args: []Type{
+ &ResourceType{TypeCommon: TypeCommon{TypeName: "fd_uinput", FldName: "fd", TypeSize: 4}},
+ &PtrType{TypeCommon: TypeCommon{TypeName: "ptr", FldName: "data", TypeSize: 8}, Type: &StructType{Key: StructKey{Name: "uinput_user_dev"}}},
+ &LenType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "len", FldName: "len", TypeSize: 8}}, Buf: "data"},
+ }},
{NR: 4, Name: "write$vnet", CallName: "write", Args: []Type{
&ResourceType{TypeCommon: TypeCommon{TypeName: "vhost_net", FldName: "fd", TypeSize: 4}},
&PtrType{TypeCommon: TypeCommon{TypeName: "ptr", FldName: "buf", TypeSize: 8}, Type: &StructType{Key: StructKey{Name: "vhost_msg"}}},
@@ -31862,6 +32012,8 @@ var syscalls_ppc64le = []*Syscall{
}
var consts_ppc64le = []ConstValue{
+ {Name: "ABS_CNT", Value: 64},
+ {Name: "ABS_MAX", Value: 63},
{Name: "ADDR_COMPAT_LAYOUT", Value: 2097152},
{Name: "ADDR_LIMIT_32BIT", Value: 8388608},
{Name: "ADDR_LIMIT_3GB", Value: 134217728},
@@ -32830,10 +32982,14 @@ var consts_ppc64le = []ConstValue{
{Name: "EVIOCSREP", Value: 2148025603},
{Name: "EV_ABS", Value: 3},
{Name: "EV_FF", Value: 21},
+ {Name: "EV_FF_STATUS", Value: 23},
{Name: "EV_KEY", Value: 1},
{Name: "EV_LED", Value: 17},
+ {Name: "EV_MAX", Value: 31},
{Name: "EV_MSC", Value: 4},
+ {Name: "EV_PWR", Value: 22},
{Name: "EV_REL", Value: 2},
+ {Name: "EV_REP", Value: 20},
{Name: "EV_SND", Value: 18},
{Name: "EV_SW", Value: 5},
{Name: "EV_SYN"},
@@ -32873,8 +33029,10 @@ var consts_ppc64le = []ConstValue{
{Name: "FF_CONSTANT", Value: 82},
{Name: "FF_CUSTOM", Value: 93},
{Name: "FF_DAMPER", Value: 85},
+ {Name: "FF_EFFECT_MAX", Value: 87},
{Name: "FF_FRICTION", Value: 84},
{Name: "FF_INERTIA", Value: 86},
+ {Name: "FF_MAX", Value: 127},
{Name: "FF_PERIODIC", Value: 81},
{Name: "FF_RAMP", Value: 87},
{Name: "FF_SAW_DOWN", Value: 92},
@@ -33440,6 +33598,7 @@ var consts_ppc64le = []ConstValue{
{Name: "IGMP_PIM", Value: 20},
{Name: "IGMP_TRACE", Value: 21},
{Name: "INOTIFY_IOC_SETNEXTWD", Value: 2147764480},
+ {Name: "INPUT_PROP_MAX", Value: 31},
{Name: "IN_ACCESS", Value: 1},
{Name: "IN_ATTRIB", Value: 4},
{Name: "IN_CLOEXEC", Value: 524288},
@@ -33975,6 +34134,7 @@ var consts_ppc64le = []ConstValue{
{Name: "KEY_GRP_SETATTR", Value: 8192},
{Name: "KEY_GRP_VIEW", Value: 256},
{Name: "KEY_GRP_WRITE", Value: 1024},
+ {Name: "KEY_MAX", Value: 767},
{Name: "KEY_OTH_LINK", Value: 16},
{Name: "KEY_OTH_READ", Value: 2},
{Name: "KEY_OTH_SEARCH", Value: 8},
@@ -34144,6 +34304,7 @@ var consts_ppc64le = []ConstValue{
{Name: "L2CAP_LM_SECURE", Value: 32},
{Name: "L2CAP_LM_TRUSTED", Value: 8},
{Name: "L2CAP_OPTIONS", Value: 1},
+ {Name: "LED_MAX", Value: 15},
{Name: "LLC_OPT_ACK_TMR_EXP", Value: 3},
{Name: "LLC_OPT_BUSY_TMR_EXP", Value: 6},
{Name: "LLC_OPT_PKTINFO", Value: 9},
@@ -34322,6 +34483,7 @@ var consts_ppc64le = []ConstValue{
{Name: "MRT6_PIM", Value: 208},
{Name: "MRT6_TABLE", Value: 209},
{Name: "MRT6_VERSION", Value: 206},
+ {Name: "MSC_MAX", Value: 7},
{Name: "MSG_BATCH", Value: 262144},
{Name: "MSG_CMSG_CLOEXEC", Value: 1073741824},
{Name: "MSG_CONFIRM", Value: 2048},
@@ -35027,6 +35189,7 @@ var consts_ppc64le = []ConstValue{
{Name: "RDS_TRANS_NONE", Value: 18446744073709551615},
{Name: "RDS_TRANS_TCP", Value: 2},
{Name: "READ_IMPLIES_EXEC", Value: 4194304},
+ {Name: "REL_MAX", Value: 15},
{Name: "RENAME_EXCHANGE", Value: 2},
{Name: "RENAME_NOREPLACE", Value: 1},
{Name: "RENAME_WHITEOUT", Value: 4},
@@ -35722,6 +35885,7 @@ var consts_ppc64le = []ConstValue{
{Name: "SNDRV_TIMER_SCLASS_SEQUENCER", Value: 2},
{Name: "SND_CTL_ELEM_INFO_SIZE", Value: 272},
{Name: "SND_CTL_ELEM_VALUE_SIZE", Value: 1224},
+ {Name: "SND_MAX", Value: 7},
{Name: "SOCKADDR_PPPOX_SIZE", Value: 30},
{Name: "SOCKADDR_SIZE", Value: 16},
{Name: "SOCKADDR_STORAGE_SIZE", Value: 128},
@@ -35872,6 +36036,7 @@ var consts_ppc64le = []ConstValue{
{Name: "STATX_TYPE", Value: 1},
{Name: "STATX_UID", Value: 8},
{Name: "STICKY_TIMEOUTS", Value: 67108864},
+ {Name: "SW_MAX", Value: 15},
{Name: "SYNC_FILE_RANGE_WAIT_AFTER", Value: 4},
{Name: "SYNC_FILE_RANGE_WAIT_BEFORE", Value: 1},
{Name: "SYNC_FILE_RANGE_WRITE", Value: 2},
@@ -36395,6 +36560,28 @@ var consts_ppc64le = []ConstValue{
{Name: "UHID_INPUT", Value: 8},
{Name: "UHID_INPUT2", Value: 12},
{Name: "UHID_SET_REPORT_REPLY", Value: 14},
+ {Name: "UINPUT_MAX_NAME_SIZE", Value: 80},
+ {Name: "UI_ABS_SETUP", Value: 2149340420},
+ {Name: "UI_BEGIN_FF_ERASE", Value: 3222033866},
+ {Name: "UI_BEGIN_FF_UPLOAD", Value: 3228063176},
+ {Name: "UI_DEV_CREATE", Value: 536892673},
+ {Name: "UI_DEV_DESTROY", Value: 536892674},
+ {Name: "UI_DEV_SETUP", Value: 2153534723},
+ {Name: "UI_END_FF_ERASE", Value: 2148292043},
+ {Name: "UI_END_FF_UPLOAD", Value: 2154321353},
+ {Name: "UI_GET_SYSNAME_64", Value: 1077957932},
+ {Name: "UI_GET_VERSION", Value: 1074025773},
+ {Name: "UI_SET_ABSBIT", Value: 2147767655},
+ {Name: "UI_SET_EVBIT", Value: 2147767652},
+ {Name: "UI_SET_FFBIT", Value: 2147767659},
+ {Name: "UI_SET_KEYBIT", Value: 2147767653},
+ {Name: "UI_SET_LEDBIT", Value: 2147767657},
+ {Name: "UI_SET_MSCBIT", Value: 2147767656},
+ {Name: "UI_SET_PHYS", Value: 2148029804},
+ {Name: "UI_SET_PROPBIT", Value: 2147767662},
+ {Name: "UI_SET_RELBIT", Value: 2147767654},
+ {Name: "UI_SET_SNDBIT", Value: 2147767658},
+ {Name: "UI_SET_SWBIT", Value: 2147767661},
{Name: "UMOUNT_NOFOLLOW", Value: 8},
{Name: "UNIX_PATH_MAX", Value: 108},
{Name: "USER_CLIENT", Value: 1},
@@ -37101,4 +37288,4 @@ var consts_ppc64le = []ConstValue{
{Name: "bpf_insn_load_imm_dw", Value: 24},
}
-const revision_ppc64le = "a5a3a92ab256e785d43c4b58a12210c58ed858c5"
+const revision_ppc64le = "796e339f01a361b1b5c04a4c0cd5a06c59b26955"
diff --git a/sys/linux/input.txt b/sys/linux/input.txt
index f4114672f..409193328 100644
--- a/sys/linux/input.txt
+++ b/sys/linux/input.txt
@@ -53,11 +53,11 @@ ioctl$EVIOCSABS3F(fd fd_evdev, cmd const[EVIOCSABS3F], arg ptr[in, input_absinfo
ff_effect_type = FF_PERIODIC, FF_CONSTANT, FF_SPRING, FF_FRICTION, FF_DAMPER, FF_INERTIA, FF_RAMP
ff_periodic_effect_wave = FF_SQUARE, FF_TRIANGLE, FF_SINE, FF_SAW_UP, FF_SAW_DOWN, FF_CUSTOM
-input_mask_type = EV_SYN, EV_KEY, EV_REL, EV_ABS, EV_MSC, EV_SW, EV_LED, EV_SND, EV_FF
+input_codes = EV_SYN, EV_KEY, EV_REL, EV_ABS, EV_MSC, EV_SW, EV_LED, EV_SND, EV_REP, EV_FF, EV_PWR, EV_FF_STATUS, EV_MAX
input_event {
time timeval
- type int16
+ type flags[input_codes, int16]
code int16
val int32
}
@@ -85,7 +85,7 @@ ff_effect_u [
period ff_periodic_effect
cond array[ff_condition_effect, 2]
rumble ff_rumble_effect
-] [varlen]
+]
ff_trigger {
button int16
@@ -109,14 +109,14 @@ ff_ramp_effect {
}
ff_periodic_effect {
- wave flags[ff_periodic_effect_wave, int16]
- period int16
- magnit int16
- offset int16
- phase int16
- envelop ff_envelope
- len len[custom, int32]
- custom array[int16]
+ wave flags[ff_periodic_effect_wave, int16]
+ period int16
+ magnit int16
+ offset int16
+ phase int16
+ envelope ff_envelope
+ custom_len len[custom_data, int32]
+ custom_data ptr[in, array[int16]]
}
ff_condition_effect {
@@ -141,7 +141,7 @@ ff_envelope {
}
input_mask {
- type flags[input_mask_type, int32]
+ type flags[input_codes, int32]
size bytesize[ptr, int32]
ptr buffer[in]
}
diff --git a/sys/linux/input_386.const b/sys/linux/input_386.const
index 80892a0c1..c02ca897a 100644
--- a/sys/linux/input_386.const
+++ b/sys/linux/input_386.const
@@ -37,10 +37,14 @@ EVIOCSMASK = 1074808211
EVIOCSREP = 1074283779
EV_ABS = 3
EV_FF = 21
+EV_FF_STATUS = 23
EV_KEY = 1
EV_LED = 17
+EV_MAX = 31
EV_MSC = 4
+EV_PWR = 22
EV_REL = 2
+EV_REP = 20
EV_SND = 18
EV_SW = 5
EV_SYN = 0
diff --git a/sys/linux/input_amd64.const b/sys/linux/input_amd64.const
index 400fc1e04..146ef522a 100644
--- a/sys/linux/input_amd64.const
+++ b/sys/linux/input_amd64.const
@@ -37,10 +37,14 @@ EVIOCSMASK = 1074808211
EVIOCSREP = 1074283779
EV_ABS = 3
EV_FF = 21
+EV_FF_STATUS = 23
EV_KEY = 1
EV_LED = 17
+EV_MAX = 31
EV_MSC = 4
+EV_PWR = 22
EV_REL = 2
+EV_REP = 20
EV_SND = 18
EV_SW = 5
EV_SYN = 0
diff --git a/sys/linux/input_arm.const b/sys/linux/input_arm.const
index 80892a0c1..c02ca897a 100644
--- a/sys/linux/input_arm.const
+++ b/sys/linux/input_arm.const
@@ -37,10 +37,14 @@ EVIOCSMASK = 1074808211
EVIOCSREP = 1074283779
EV_ABS = 3
EV_FF = 21
+EV_FF_STATUS = 23
EV_KEY = 1
EV_LED = 17
+EV_MAX = 31
EV_MSC = 4
+EV_PWR = 22
EV_REL = 2
+EV_REP = 20
EV_SND = 18
EV_SW = 5
EV_SYN = 0
diff --git a/sys/linux/input_arm64.const b/sys/linux/input_arm64.const
index 1135ba47c..11310449a 100644
--- a/sys/linux/input_arm64.const
+++ b/sys/linux/input_arm64.const
@@ -37,10 +37,14 @@ EVIOCSMASK = 1074808211
EVIOCSREP = 1074283779
EV_ABS = 3
EV_FF = 21
+EV_FF_STATUS = 23
EV_KEY = 1
EV_LED = 17
+EV_MAX = 31
EV_MSC = 4
+EV_PWR = 22
EV_REL = 2
+EV_REP = 20
EV_SND = 18
EV_SW = 5
EV_SYN = 0
diff --git a/sys/linux/input_ppc64le.const b/sys/linux/input_ppc64le.const
index c0eaf0c41..f9dbc72c9 100644
--- a/sys/linux/input_ppc64le.const
+++ b/sys/linux/input_ppc64le.const
@@ -37,10 +37,14 @@ EVIOCSMASK = 2148550035
EVIOCSREP = 2148025603
EV_ABS = 3
EV_FF = 21
+EV_FF_STATUS = 23
EV_KEY = 1
EV_LED = 17
+EV_MAX = 31
EV_MSC = 4
+EV_PWR = 22
EV_REL = 2
+EV_REP = 20
EV_SND = 18
EV_SW = 5
EV_SYN = 0
diff --git a/sys/linux/sys.txt b/sys/linux/sys.txt
index f82fce42a..e27c9372c 100644
--- a/sys/linux/sys.txt
+++ b/sys/linux/sys.txt
@@ -531,7 +531,6 @@ openat$null(fd const[AT_FDCWD], file ptr[in, string["/dev/null"]], flags flags[o
openat$zero(fd const[AT_FDCWD], file ptr[in, string["/dev/zero"]], flags flags[open_flags], mode const[0]) fd
openat$full(fd const[AT_FDCWD], file ptr[in, string["/dev/full"]], flags flags[open_flags], mode const[0]) fd
openat$snapshot(fd const[AT_FDCWD], file ptr[in, string["/dev/snapshot"]], flags flags[open_flags], mode const[0]) fd
-openat$uinput(fd const[AT_FDCWD], file ptr[in, string["/dev/uinput"]], flags flags[open_flags], mode const[0]) fd
openat$vga_arbiter(fd const[AT_FDCWD], file ptr[in, string["/dev/vga_arbiter"]], flags flags[open_flags], mode const[0]) fd
openat$vhci(fd const[AT_FDCWD], file ptr[in, string["/dev/vhci"]], flags flags[open_flags], mode const[0]) fd
openat$userio(fd const[AT_FDCWD], file ptr[in, string["/dev/userio"]], flags flags[open_flags], mode const[0]) fd
diff --git a/sys/linux/uinput.txt b/sys/linux/uinput.txt
new file mode 100644
index 000000000..87006f974
--- /dev/null
+++ b/sys/linux/uinput.txt
@@ -0,0 +1,78 @@
+# Copyright 2018 syzkaller project authors. All rights reserved.
+# Use of this source code is governed by Apache 2 LICENSE that can be found in the LICENSE file.
+
+include <uapi/linux/fcntl.h>
+include <uapi/linux/uinput.h>
+
+resource fd_uinput[fd]
+
+openat$uinput(fd const[AT_FDCWD], file ptr[in, string["/dev/uinput"]], flags flags[uinput_open_flags], mode const[0]) fd_uinput
+write$uinput_user_dev(fd fd_uinput, data ptr[in, uinput_user_dev], len len[data])
+write$input_event(fd fd_uinput, data ptr[in, input_event], len len[data])
+ioctl$UI_GET_VERSION(fd fd_uinput, cmd const[UI_GET_VERSION], arg ptr[out, int32])
+ioctl$UI_DEV_CREATE(fd fd_uinput, cmd const[UI_DEV_CREATE])
+ioctl$UI_DEV_DESTROY(fd fd_uinput, cmd const[UI_DEV_DESTROY])
+ioctl$UI_DEV_SETUP(fd fd_uinput, cmd const[UI_DEV_SETUP], arg ptr[in, uinput_setup])
+ioctl$UI_SET_EVBIT(fd fd_uinput, cmd const[UI_SET_EVBIT], arg intptr[0:EV_MAX])
+ioctl$UI_SET_KEYBIT(fd fd_uinput, cmd const[UI_SET_KEYBIT], arg intptr[0:KEY_MAX])
+ioctl$UI_SET_RELBIT(fd fd_uinput, cmd const[UI_SET_RELBIT], arg intptr[0:REL_MAX])
+ioctl$UI_SET_MSCBIT(fd fd_uinput, cmd const[UI_SET_MSCBIT], arg intptr[0:ABS_MAX])
+ioctl$UI_SET_ABSBIT(fd fd_uinput, cmd const[UI_SET_ABSBIT], arg intptr[0:MSC_MAX])
+ioctl$UI_SET_LEDBIT(fd fd_uinput, cmd const[UI_SET_LEDBIT], arg intptr[0:LED_MAX])
+ioctl$UI_SET_SNDBIT(fd fd_uinput, cmd const[UI_SET_SNDBIT], arg intptr[0:SND_MAX])
+ioctl$UI_SET_FFBIT(fd fd_uinput, cmd const[UI_SET_FFBIT], arg intptr[0:FF_MAX])
+ioctl$UI_SET_SWBIT(fd fd_uinput, cmd const[UI_SET_SWBIT], arg intptr[0:SW_MAX])
+ioctl$UI_SET_PROPBIT(fd fd_uinput, cmd const[UI_SET_PROPBIT], arg intptr[0:INPUT_PROP_MAX])
+ioctl$UI_SET_PHYS(fd fd_uinput, cmd const[UI_SET_PHYS], arg ptr[in, string[uinput_names]])
+ioctl$UI_BEGIN_FF_UPLOAD(fd fd_uinput, cmd const[UI_BEGIN_FF_UPLOAD], arg ptr[in, uinput_ff_upload])
+ioctl$UI_BEGIN_FF_ERASE(fd fd_uinput, cmd const[UI_BEGIN_FF_ERASE], arg ptr[in, uinput_ff_erase])
+ioctl$UI_END_FF_UPLOAD(fd fd_uinput, cmd const[UI_END_FF_UPLOAD], arg ptr[in, uinput_ff_upload])
+ioctl$UI_END_FF_ERASE(fd fd_uinput, cmd const[UI_END_FF_ERASE], arg ptr[in, uinput_ff_erase])
+ioctl$UI_GET_SYSNAME(fd fd_uinput, cmd const[UI_GET_SYSNAME_64], arg ptr[out, array[int8, 64]])
+ioctl$UI_ABS_SETUP(fd fd_uinput, cmd const[UI_ABS_SETUP], arg ptr[in, uinput_abs_setup])
+
+input_id {
+ bustype int16
+ vendor int16
+ product int16
+ version int16
+}
+
+uinput_user_dev {
+ name string[uinput_names, UINPUT_MAX_NAME_SIZE]
+ id input_id
+ ff_effects_max int32[1:FF_EFFECT_MAX]
+ absmax array[int32, ABS_CNT]
+ absmin array[int32, ABS_CNT]
+ absfuzz array[int32, ABS_CNT]
+ absflat array[int32, ABS_CNT]
+}
+
+uinput_setup {
+ id input_id
+ name string[uinput_names, UINPUT_MAX_NAME_SIZE]
+ ff_effects_max int32[1:FF_EFFECT_MAX]
+}
+
+uinput_ff_upload {
+ request_id int32[0:16]
+ retval int32
+ effect ff_effect
+ old ff_effect
+}
+
+uinput_ff_erase {
+ request_id int32[0:16]
+ retval int32
+ effect_id int32
+}
+
+uinput_abs_setup {
+ code int16
+ absinfo input_absinfo
+}
+
+uinput_names = "syz0", "syz1"
+uinput_open_flags = O_RDWR, O_RDWR_NONBLOCK
+
+define UI_GET_SYSNAME_64 UI_GET_SYSNAME(64)
diff --git a/sys/linux/uinput_386.const b/sys/linux/uinput_386.const
new file mode 100644
index 000000000..2bd422b42
--- /dev/null
+++ b/sys/linux/uinput_386.const
@@ -0,0 +1,41 @@
+# AUTOGENERATED FILE
+ABS_CNT = 64
+ABS_MAX = 63
+AT_FDCWD = 18446744073709551516
+EV_MAX = 31
+FF_EFFECT_MAX = 87
+FF_MAX = 127
+INPUT_PROP_MAX = 31
+KEY_MAX = 767
+LED_MAX = 15
+MSC_MAX = 7
+O_RDWR = 2
+# O_RDWR_NONBLOCK is not set
+REL_MAX = 15
+SND_MAX = 7
+SW_MAX = 15
+UINPUT_MAX_NAME_SIZE = 80
+UI_ABS_SETUP = 1075598596
+UI_BEGIN_FF_ERASE = 3222033866
+UI_BEGIN_FF_UPLOAD = 3227538888
+UI_DEV_CREATE = 21761
+UI_DEV_DESTROY = 21762
+UI_DEV_SETUP = 1079792899
+UI_END_FF_ERASE = 1074550219
+UI_END_FF_UPLOAD = 1080055241
+UI_GET_SYSNAME_64 = 2151699756
+UI_GET_VERSION = 2147767597
+UI_SET_ABSBIT = 1074025831
+UI_SET_EVBIT = 1074025828
+UI_SET_FFBIT = 1074025835
+UI_SET_KEYBIT = 1074025829
+UI_SET_LEDBIT = 1074025833
+UI_SET_MSCBIT = 1074025832
+UI_SET_PHYS = 1074025836
+UI_SET_PROPBIT = 1074025838
+UI_SET_RELBIT = 1074025830
+UI_SET_SNDBIT = 1074025834
+UI_SET_SWBIT = 1074025837
+__NR_ioctl = 54
+__NR_openat = 295
+__NR_write = 4
diff --git a/sys/linux/uinput_amd64.const b/sys/linux/uinput_amd64.const
new file mode 100644
index 000000000..f1a7936fa
--- /dev/null
+++ b/sys/linux/uinput_amd64.const
@@ -0,0 +1,41 @@
+# AUTOGENERATED FILE
+ABS_CNT = 64
+ABS_MAX = 63
+AT_FDCWD = 18446744073709551516
+EV_MAX = 31
+FF_EFFECT_MAX = 87
+FF_MAX = 127
+INPUT_PROP_MAX = 31
+KEY_MAX = 767
+LED_MAX = 15
+MSC_MAX = 7
+O_RDWR = 2
+# O_RDWR_NONBLOCK is not set
+REL_MAX = 15
+SND_MAX = 7
+SW_MAX = 15
+UINPUT_MAX_NAME_SIZE = 80
+UI_ABS_SETUP = 1075598596
+UI_BEGIN_FF_ERASE = 3222033866
+UI_BEGIN_FF_UPLOAD = 3228063176
+UI_DEV_CREATE = 21761
+UI_DEV_DESTROY = 21762
+UI_DEV_SETUP = 1079792899
+UI_END_FF_ERASE = 1074550219
+UI_END_FF_UPLOAD = 1080579529
+UI_GET_SYSNAME_64 = 2151699756
+UI_GET_VERSION = 2147767597
+UI_SET_ABSBIT = 1074025831
+UI_SET_EVBIT = 1074025828
+UI_SET_FFBIT = 1074025835
+UI_SET_KEYBIT = 1074025829
+UI_SET_LEDBIT = 1074025833
+UI_SET_MSCBIT = 1074025832
+UI_SET_PHYS = 1074287980
+UI_SET_PROPBIT = 1074025838
+UI_SET_RELBIT = 1074025830
+UI_SET_SNDBIT = 1074025834
+UI_SET_SWBIT = 1074025837
+__NR_ioctl = 16
+__NR_openat = 257
+__NR_write = 1
diff --git a/sys/linux/uinput_arm.const b/sys/linux/uinput_arm.const
new file mode 100644
index 000000000..9015b6297
--- /dev/null
+++ b/sys/linux/uinput_arm.const
@@ -0,0 +1,41 @@
+# AUTOGENERATED FILE
+ABS_CNT = 64
+ABS_MAX = 63
+AT_FDCWD = 18446744073709551516
+EV_MAX = 31
+FF_EFFECT_MAX = 87
+FF_MAX = 127
+INPUT_PROP_MAX = 31
+KEY_MAX = 767
+LED_MAX = 15
+MSC_MAX = 7
+O_RDWR = 2
+# O_RDWR_NONBLOCK is not set
+REL_MAX = 15
+SND_MAX = 7
+SW_MAX = 15
+UINPUT_MAX_NAME_SIZE = 80
+UI_ABS_SETUP = 1075598596
+UI_BEGIN_FF_ERASE = 3222033866
+UI_BEGIN_FF_UPLOAD = 3227538888
+UI_DEV_CREATE = 21761
+UI_DEV_DESTROY = 21762
+UI_DEV_SETUP = 1079792899
+UI_END_FF_ERASE = 1074550219
+UI_END_FF_UPLOAD = 1080055241
+UI_GET_SYSNAME_64 = 2151699756
+UI_GET_VERSION = 2147767597
+UI_SET_ABSBIT = 1074025831
+UI_SET_EVBIT = 1074025828
+UI_SET_FFBIT = 1074025835
+UI_SET_KEYBIT = 1074025829
+UI_SET_LEDBIT = 1074025833
+UI_SET_MSCBIT = 1074025832
+UI_SET_PHYS = 1074025836
+UI_SET_PROPBIT = 1074025838
+UI_SET_RELBIT = 1074025830
+UI_SET_SNDBIT = 1074025834
+UI_SET_SWBIT = 1074025837
+__NR_ioctl = 54
+__NR_openat = 322
+__NR_write = 4
diff --git a/sys/linux/uinput_arm64.const b/sys/linux/uinput_arm64.const
new file mode 100644
index 000000000..91adb6f86
--- /dev/null
+++ b/sys/linux/uinput_arm64.const
@@ -0,0 +1,41 @@
+# AUTOGENERATED FILE
+ABS_CNT = 64
+ABS_MAX = 63
+AT_FDCWD = 18446744073709551516
+EV_MAX = 31
+FF_EFFECT_MAX = 87
+FF_MAX = 127
+INPUT_PROP_MAX = 31
+KEY_MAX = 767
+LED_MAX = 15
+MSC_MAX = 7
+O_RDWR = 2
+# O_RDWR_NONBLOCK is not set
+REL_MAX = 15
+SND_MAX = 7
+SW_MAX = 15
+UINPUT_MAX_NAME_SIZE = 80
+UI_ABS_SETUP = 1075598596
+UI_BEGIN_FF_ERASE = 3222033866
+UI_BEGIN_FF_UPLOAD = 3228063176
+UI_DEV_CREATE = 21761
+UI_DEV_DESTROY = 21762
+UI_DEV_SETUP = 1079792899
+UI_END_FF_ERASE = 1074550219
+UI_END_FF_UPLOAD = 1080579529
+UI_GET_SYSNAME_64 = 2151699756
+UI_GET_VERSION = 2147767597
+UI_SET_ABSBIT = 1074025831
+UI_SET_EVBIT = 1074025828
+UI_SET_FFBIT = 1074025835
+UI_SET_KEYBIT = 1074025829
+UI_SET_LEDBIT = 1074025833
+UI_SET_MSCBIT = 1074025832
+UI_SET_PHYS = 1074287980
+UI_SET_PROPBIT = 1074025838
+UI_SET_RELBIT = 1074025830
+UI_SET_SNDBIT = 1074025834
+UI_SET_SWBIT = 1074025837
+__NR_ioctl = 29
+__NR_openat = 56
+__NR_write = 64
diff --git a/sys/linux/uinput_ppc64le.const b/sys/linux/uinput_ppc64le.const
new file mode 100644
index 000000000..815f4a6ad
--- /dev/null
+++ b/sys/linux/uinput_ppc64le.const
@@ -0,0 +1,41 @@
+# AUTOGENERATED FILE
+ABS_CNT = 64
+ABS_MAX = 63
+AT_FDCWD = 18446744073709551516
+EV_MAX = 31
+FF_EFFECT_MAX = 87
+FF_MAX = 127
+INPUT_PROP_MAX = 31
+KEY_MAX = 767
+LED_MAX = 15
+MSC_MAX = 7
+O_RDWR = 2
+# O_RDWR_NONBLOCK is not set
+REL_MAX = 15
+SND_MAX = 7
+SW_MAX = 15
+UINPUT_MAX_NAME_SIZE = 80
+UI_ABS_SETUP = 2149340420
+UI_BEGIN_FF_ERASE = 3222033866
+UI_BEGIN_FF_UPLOAD = 3228063176
+UI_DEV_CREATE = 536892673
+UI_DEV_DESTROY = 536892674
+UI_DEV_SETUP = 2153534723
+UI_END_FF_ERASE = 2148292043
+UI_END_FF_UPLOAD = 2154321353
+UI_GET_SYSNAME_64 = 1077957932
+UI_GET_VERSION = 1074025773
+UI_SET_ABSBIT = 2147767655
+UI_SET_EVBIT = 2147767652
+UI_SET_FFBIT = 2147767659
+UI_SET_KEYBIT = 2147767653
+UI_SET_LEDBIT = 2147767657
+UI_SET_MSCBIT = 2147767656
+UI_SET_PHYS = 2148029804
+UI_SET_PROPBIT = 2147767662
+UI_SET_RELBIT = 2147767654
+UI_SET_SNDBIT = 2147767658
+UI_SET_SWBIT = 2147767661
+__NR_ioctl = 54
+__NR_openat = 286
+__NR_write = 4