Skip to content
Permalink
Browse files

sys/linux: add udmabuf descriptions

  • Loading branch information...
dvyukov committed Dec 24, 2018
1 parent a961943 commit 17c23ac1620041820967c01ebec68d94e0ade42b
@@ -60,7 +60,7 @@

#if GOARCH_386
#define GOARCH "386"
#define SYZ_REVISION "2479c0e27733afee03ac9d652596f377e4ced3a9"
#define SYZ_REVISION "1a5633beb9d179c3fe82575d38abf1802a93c31b"
#define SYZ_EXECUTOR_USES_FORK_SERVER 1
#define SYZ_EXECUTOR_USES_SHMEM 1
#define SYZ_PAGE_SIZE 4096
@@ -70,7 +70,7 @@

#if GOARCH_amd64
#define GOARCH "amd64"
#define SYZ_REVISION "3480abfb18d1a0ec7fa7dc6491cec0fa6a2dee5f"
#define SYZ_REVISION "1f11f16d0677046755435f88af960871a50043da"
#define SYZ_EXECUTOR_USES_FORK_SERVER 1
#define SYZ_EXECUTOR_USES_SHMEM 1
#define SYZ_PAGE_SIZE 4096
@@ -80,7 +80,7 @@

#if GOARCH_arm
#define GOARCH "arm"
#define SYZ_REVISION "e0f1e6b3807009e404d6493bacb8e5b61a85681f"
#define SYZ_REVISION "52c9aca80103ffffdf15d3a707e6603a549a3275"
#define SYZ_EXECUTOR_USES_FORK_SERVER 1
#define SYZ_EXECUTOR_USES_SHMEM 1
#define SYZ_PAGE_SIZE 4096
@@ -90,7 +90,7 @@

#if GOARCH_arm64
#define GOARCH "arm64"
#define SYZ_REVISION "2f600a52df44b0b5feff1920910855924039dfdc"
#define SYZ_REVISION "9c188678f938e7c70759892d86e761b187776e38"
#define SYZ_EXECUTOR_USES_FORK_SERVER 1
#define SYZ_EXECUTOR_USES_SHMEM 1
#define SYZ_PAGE_SIZE 4096
@@ -100,7 +100,7 @@

#if GOARCH_ppc64le
#define GOARCH "ppc64le"
#define SYZ_REVISION "bc3a4f56b17c100440b23c0bf74c9af11be67c34"
#define SYZ_REVISION "c650d916aea7923240c938d126e8ec80491b27c8"
#define SYZ_EXECUTOR_USES_FORK_SERVER 1
#define SYZ_EXECUTOR_USES_SHMEM 1
#define SYZ_PAGE_SIZE 4096
@@ -2451,6 +2451,8 @@ const call_t syscalls[] = {
{"ioctl$TUNSETVNETBE", 54},
{"ioctl$TUNSETVNETHDRSZ", 54},
{"ioctl$TUNSETVNETLE", 54},
{"ioctl$UDMABUF_CREATE", 54},
{"ioctl$UDMABUF_CREATE_LIST", 54},
{"ioctl$UFFDIO_API", 54},
{"ioctl$UFFDIO_COPY", 54},
{"ioctl$UFFDIO_REGISTER", 54},
@@ -2888,6 +2890,7 @@ const call_t syscalls[] = {
{"openat$sr", 295},
{"openat$sw_sync", 295},
{"openat$tun", 295},
{"openat$udambuf", 295},
{"openat$uhid", 295},
{"openat$uinput", 295},
{"openat$urandom", 295},
@@ -4886,6 +4889,8 @@ const call_t syscalls[] = {
{"ioctl$TUNSETVNETBE", 16},
{"ioctl$TUNSETVNETHDRSZ", 16},
{"ioctl$TUNSETVNETLE", 16},
{"ioctl$UDMABUF_CREATE", 16},
{"ioctl$UDMABUF_CREATE_LIST", 16},
{"ioctl$UFFDIO_API", 16},
{"ioctl$UFFDIO_COPY", 16},
{"ioctl$UFFDIO_REGISTER", 16},
@@ -5333,6 +5338,7 @@ const call_t syscalls[] = {
{"openat$sr", 257},
{"openat$sw_sync", 257},
{"openat$tun", 257},
{"openat$udambuf", 257},
{"openat$uhid", 257},
{"openat$uinput", 257},
{"openat$urandom", 257},
@@ -7320,6 +7326,8 @@ const call_t syscalls[] = {
{"ioctl$TUNSETVNETBE", 54},
{"ioctl$TUNSETVNETHDRSZ", 54},
{"ioctl$TUNSETVNETLE", 54},
{"ioctl$UDMABUF_CREATE", 54},
{"ioctl$UDMABUF_CREATE_LIST", 54},
{"ioctl$UFFDIO_API", 54},
{"ioctl$UFFDIO_COPY", 54},
{"ioctl$UFFDIO_REGISTER", 54},
@@ -7760,6 +7768,7 @@ const call_t syscalls[] = {
{"openat$sr", 322},
{"openat$sw_sync", 322},
{"openat$tun", 322},
{"openat$udambuf", 322},
{"openat$uhid", 322},
{"openat$uinput", 322},
{"openat$urandom", 322},
@@ -9738,6 +9747,8 @@ const call_t syscalls[] = {
{"ioctl$TUNSETVNETBE", 29},
{"ioctl$TUNSETVNETHDRSZ", 29},
{"ioctl$TUNSETVNETLE", 29},
{"ioctl$UDMABUF_CREATE", 29},
{"ioctl$UDMABUF_CREATE_LIST", 29},
{"ioctl$UFFDIO_API", 29},
{"ioctl$UFFDIO_COPY", 29},
{"ioctl$UFFDIO_REGISTER", 29},
@@ -10171,6 +10182,7 @@ const call_t syscalls[] = {
{"openat$sr", 56},
{"openat$sw_sync", 56},
{"openat$tun", 56},
{"openat$udambuf", 56},
{"openat$uhid", 56},
{"openat$uinput", 56},
{"openat$urandom", 56},
@@ -12128,6 +12140,8 @@ const call_t syscalls[] = {
{"ioctl$TUNSETVNETBE", 54},
{"ioctl$TUNSETVNETHDRSZ", 54},
{"ioctl$TUNSETVNETLE", 54},
{"ioctl$UDMABUF_CREATE", 54},
{"ioctl$UDMABUF_CREATE_LIST", 54},
{"ioctl$UFFDIO_API", 54},
{"ioctl$UFFDIO_COPY", 54},
{"ioctl$UFFDIO_REGISTER", 54},
@@ -12464,6 +12478,7 @@ const call_t syscalls[] = {
{"openat$sr", 286},
{"openat$sw_sync", 286},
{"openat$tun", 286},
{"openat$udambuf", 286},
{"openat$uhid", 286},
{"openat$uinput", 286},
{"openat$urandom", 286},
{Name: "fd_loop", Type: &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int32", TypeSize: 4}}}, Kind: []string{"fd", "fd_block_trace", "fd_block", "fd_loop"}, Values: []uint64{18446744073709551615, 18446744073709551516}},
{Name: "fd_loop_ctrl", Type: &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int32", TypeSize: 4}}}, Kind: []string{"fd", "fd_loop_ctrl"}, Values: []uint64{18446744073709551615, 18446744073709551516}},
{Name: "fd_loop_num", Type: &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "intptr", TypeSize: 4}}}, Kind: []string{"fd_loop_num"}, Values: []uint64{0, 1, 2, 10, 11, 12}},
{Name: "fd_memfd", Type: &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int32", TypeSize: 4}}}, Kind: []string{"fd", "fd_memfd"}, Values: []uint64{18446744073709551615, 18446744073709551516}},
{Name: "fd_midi", Type: &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int32", TypeSize: 4}}}, Kind: []string{"fd", "fd_midi"}, Values: []uint64{18446744073709551615, 18446744073709551516}},
{Name: "fd_mq", Type: &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int32", TypeSize: 4}}}, Kind: []string{"fd", "fd_mq"}, Values: []uint64{18446744073709551615, 18446744073709551516}},
{Name: "fd_namespace", Type: &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int32", TypeSize: 4}}}, Kind: []string{"fd", "fd_namespace"}, Values: []uint64{18446744073709551615, 18446744073709551516}},
{Name: "fd_tlk", Type: &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int32", TypeSize: 4}}}, Kind: []string{"fd", "fd_tlk"}, Values: []uint64{18446744073709551615, 18446744073709551516}},
{Name: "fd_tty", Type: &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int32", TypeSize: 4}}}, Kind: []string{"fd", "fd_tty"}, Values: []uint64{18446744073709551615, 18446744073709551516}},
{Name: "fd_tun", Type: &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int32", TypeSize: 4}}}, Kind: []string{"fd", "fd_tun"}, Values: []uint64{18446744073709551615, 18446744073709551516}},
{Name: "fd_udambuf", Type: &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int32", TypeSize: 4}}}, Kind: []string{"fd", "fd_udambuf"}, 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}},
&ResourceType{TypeCommon: TypeCommon{TypeName: "uid", FldName: "uid", TypeSize: 4, ArgDir: 1}},
&ResourceType{TypeCommon: TypeCommon{TypeName: "gid", FldName: "gid", TypeSize: 4, ArgDir: 1}},
}}},
{Key: StructKey{Name: "udmabuf_create"}, Desc: &StructDesc{TypeCommon: TypeCommon{TypeName: "udmabuf_create", TypeSize: 24}, Fields: []Type{
&ResourceType{TypeCommon: TypeCommon{TypeName: "fd_memfd", FldName: "memfd", TypeSize: 4}},
&IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int32", FldName: "flags", TypeSize: 4}}, Kind: 2, RangeEnd: 1},
&FlagsType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "udmabuf_offset_size", FldName: "offset", TypeSize: 8}}, Vals: []uint64{0, 4096, 8192, 16384, 32768, 65536, 16777216, 4294967296, 4294963200, 281474976710656, 18446744073709547520, 18446744073441116160}},
&FlagsType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "udmabuf_offset_size", FldName: "size", TypeSize: 8}}, Vals: []uint64{0, 4096, 8192, 16384, 32768, 65536, 16777216, 4294967296, 4294963200, 281474976710656, 18446744073709547520, 18446744073441116160}},
}}},
{Key: StructKey{Name: "udmabuf_create_item"}, Desc: &StructDesc{TypeCommon: TypeCommon{TypeName: "udmabuf_create_item", TypeSize: 24}, Fields: []Type{
&ResourceType{TypeCommon: TypeCommon{TypeName: "fd_memfd", FldName: "memfd", TypeSize: 4}},
&ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "__pad", TypeSize: 4}}},
&FlagsType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "udmabuf_offset_size", FldName: "offset", TypeSize: 8}}, Vals: []uint64{0, 4096, 8192, 16384, 32768, 65536, 16777216, 4294967296, 4294963200, 281474976710656, 18446744073709547520, 18446744073441116160}},
&FlagsType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "udmabuf_offset_size", FldName: "size", TypeSize: 8}}, Vals: []uint64{0, 4096, 8192, 16384, 32768, 65536, 16777216, 4294967296, 4294963200, 281474976710656, 18446744073709547520, 18446744073441116160}},
}}},
{Key: StructKey{Name: "udmabuf_create_list"}, Desc: &StructDesc{TypeCommon: TypeCommon{TypeName: "udmabuf_create_list", IsVarlen: true}, Fields: []Type{
&IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int32", FldName: "flags", TypeSize: 4}}, Kind: 2, RangeEnd: 1},
&LenType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "len", FldName: "count", TypeSize: 4}}, Buf: "list"},
&ArrayType{TypeCommon: TypeCommon{TypeName: "array", FldName: "list", IsVarlen: true}, Type: &StructType{Key: StructKey{Name: "udmabuf_create_item"}}},
}}},
{Key: StructKey{Name: "udp_extensions"}, Desc: &StructDesc{TypeCommon: TypeCommon{TypeName: "udp_extensions", IsVarlen: true}, Fields: []Type{
&StructType{Key: StructKey{Name: "guehdr"}, FldName: "guehdr"},
}}},
&ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "cmd", TypeSize: 4}}, Val: 1074025692},
&PtrType{TypeCommon: TypeCommon{TypeName: "ptr", FldName: "arg", TypeSize: 4}, Type: &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int32", TypeSize: 4}}, Kind: 2, RangeEnd: 1}},
}},
{NR: 54, Name: "ioctl$UDMABUF_CREATE", CallName: "ioctl", Args: []Type{
&ResourceType{TypeCommon: TypeCommon{TypeName: "fd_udambuf", FldName: "fd", TypeSize: 4}},
&ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "cmd", TypeSize: 4}}, Val: 1075344706},
&PtrType{TypeCommon: TypeCommon{TypeName: "ptr", FldName: "arg", TypeSize: 4}, Type: &StructType{Key: StructKey{Name: "udmabuf_create"}}},
}},
{NR: 54, Name: "ioctl$UDMABUF_CREATE_LIST", CallName: "ioctl", Args: []Type{
&ResourceType{TypeCommon: TypeCommon{TypeName: "fd_udambuf", FldName: "fd", TypeSize: 4}},
&ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "cmd", TypeSize: 4}}, Val: 1074296131},
&PtrType{TypeCommon: TypeCommon{TypeName: "ptr", FldName: "arg", TypeSize: 4}, Type: &StructType{Key: StructKey{Name: "udmabuf_create_list"}}},
}},
{NR: 54, Name: "ioctl$UFFDIO_API", CallName: "ioctl", Args: []Type{
&ResourceType{TypeCommon: TypeCommon{TypeName: "fd_uffd", FldName: "fd", TypeSize: 4}},
&ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "cmd", TypeSize: 4}}, Val: 3222841919},
{NR: 356, Name: "memfd_create", CallName: "memfd_create", Args: []Type{
&PtrType{TypeCommon: TypeCommon{TypeName: "ptr", FldName: "name", TypeSize: 4}, Type: &BufferType{TypeCommon: TypeCommon{TypeName: "string", IsVarlen: true}, Kind: 2}},
&FlagsType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "memfd_flags", FldName: "flags", TypeSize: 4}}, Vals: []uint64{1, 2, 4}, BitMask: true},
}, Ret: &ResourceType{TypeCommon: TypeCommon{TypeName: "fd", FldName: "ret", TypeSize: 4, ArgDir: 1}}},
}, Ret: &ResourceType{TypeCommon: TypeCommon{TypeName: "fd_memfd", FldName: "ret", TypeSize: 4, ArgDir: 1}}},
{NR: 294, Name: "migrate_pages", CallName: "migrate_pages", Args: []Type{
&ResourceType{TypeCommon: TypeCommon{TypeName: "pid", FldName: "pid", TypeSize: 4}},
&IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "intptr", FldName: "maxnode", TypeSize: 4}}},
&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},
&ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "mode", TypeSize: 4}}},
}, Ret: &ResourceType{TypeCommon: TypeCommon{TypeName: "fd_tun", FldName: "ret", TypeSize: 4, ArgDir: 1}}},
{NR: 295, Name: "openat$udambuf", 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/udmabuf\x00"}}},
&ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "flags", TypeSize: 4}}, Val: 2},
}, Ret: &ResourceType{TypeCommon: TypeCommon{TypeName: "fd_udambuf", FldName: "ret", TypeSize: 4, ArgDir: 1}}},
{NR: 295, Name: "openat$uhid", 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: 10}, Kind: 2, Values: []string{"/dev/uhid\x00"}}},
{Name: "TX_RESET_MULTI_IDX", Value: 512},
{Name: "TX_SEND", Value: 4},
{Name: "TX_SETUP", Value: 1},
{Name: "UDMABUF_CREATE", Value: 1075344706},
{Name: "UDMABUF_CREATE_LIST", Value: 1074296131},
{Name: "UDPLITE_RECV_CSCOV", Value: 11},
{Name: "UDPLITE_SEND_CSCOV", Value: 10},
{Name: "UDP_CORK", Value: 1},
{Name: "bpf_insn_load_imm_dw", Value: 24},
}

const revision_386 = "2479c0e27733afee03ac9d652596f377e4ced3a9"
const revision_386 = "1a5633beb9d179c3fe82575d38abf1802a93c31b"
Oops, something went wrong.

0 comments on commit 17c23ac

Please sign in to comment.
You can’t perform that action at this time.