github.com/google/syzkaller@v0.0.0-20251211124644-a066d2bc4b02/pkg/csource/testdata/1 (about) 1 r0 = openat$iommufd(0xffffffffffffff9c, &(0x7f0000000000), 0x0, 0x0) 2 ioctl$IOMMU_IOAS_ALLOC(r0, 0x3b81, &(0x7f00000003c0)={0xc, 0x0, <r1=>0x0}) 3 ioctl$IOMMU_IOAS_MAP$PAGES(r0, 0x3b85, &(0x7f0000000040)={0x28, 0x7, r1, 0x0, &(0x7f0000800000/0x800000)=nil, 0x800000, 0x0}) 4 ioctl$IOMMU_TEST_OP_CREATE_ACCESS(r0, 0x3ba0, &(0x7f0000000340)={0x48, 0x5, r1, 0x0, <r2=>0xffffffffffffffff, 0x1}) 5 ioctl$IOMMU_TEST_OP_ACCESS_PAGES$syz(r0, 0x3ba0, &(0x7f0000000100)={0x48, 0x7, r2, 0x0, 0x0, 0x0, 0x200000, 0x0, 0x334e8b, 0x200000000000}) 6 7 // openat$iommufd arguments: [ 8 // fd: const = 0xffffffffffffff9c (8 bytes) 9 // file: ptr[in, buffer] { 10 // buffer: {2f 64 65 76 2f 69 6f 6d 6d 75 00} (length 0xb) 11 // } 12 // flags: open_flags = 0x0 (4 bytes) 13 // mode: const = 0x0 (2 bytes) 14 // ] 15 // returns fd_iommufd 16 syscall(__NR_openat, /*fd=*/0xffffffffffffff9cul, /*file=*/0x200000000000ul, /*flags=*/0, /*mode=*/0) 17 // ioctl$IOMMU_IOAS_ALLOC arguments: [ 18 // fd: fd_iommufd (resource) 19 // cmd: const = 0x3b81 (4 bytes) 20 // arg: ptr[in, iommu_ioas_alloc] { 21 // iommu_ioas_alloc { 22 // size: len = 0xc (4 bytes) 23 // flags: const = 0x0 (4 bytes) 24 // out_ioas_id: ioas_handle (resource) 25 // } 26 // } 27 // ] 28 syscall(__NR_ioctl, /*fd=*/r[0], /*cmd=*/0x3b81, /*arg=*/0x2000000003c0ul) 29 // ioctl$IOMMU_IOAS_MAP$PAGES arguments: [ 30 // fd: fd_iommufd (resource) 31 // cmd: const = 0x3b85 (4 bytes) 32 // arg: ptr[in, iommu_ioas_map$PAGES] { 33 // iommu_ioas_map$PAGES { 34 // size: len = 0x28 (4 bytes) 35 // flags: iommufd_ioas_map_flags = 0x7 (4 bytes) 36 // ioas_id: ioas_handle (resource) 37 // __reserved: const = 0x0 (4 bytes) 38 // user_va: VMA[0x800000] 39 // length: len = 0x800000 (8 bytes) 40 // iova: int64 = 0x0 (8 bytes) 41 // } 42 // } 43 // ] 44 syscall(__NR_ioctl, /*fd=*/r[0], /*cmd=*/0x3b85, /*arg=*/0x200000000040ul) 45 // ioctl$IOMMU_TEST_OP_CREATE_ACCESS arguments: [ 46 // fd: fd_iommufd (resource) 47 // cmd: const = 0x3ba0 (4 bytes) 48 // arg: ptr[in, iommu_test_cmd$create_access] { 49 // iommu_test_cmd$create_access { 50 // size: len = 0x48 (4 bytes) 51 // op: const = 0x5 (4 bytes) 52 // id: ioas_handle (resource) 53 // __reserved: const = 0x0 (4 bytes) 54 // out_access_fd: fd_access (resource) 55 // flags: iommu_test_cmd_create_access_flags = 0x1 (4 bytes) 56 // pad = 0x0 (48 bytes) 57 // } 58 // } 59 // ] 60 syscall(__NR_ioctl, /*fd=*/r[0], /*cmd=*/0x3ba0, /*arg=*/0x200000000340ul) 61 // ioctl$IOMMU_TEST_OP_ACCESS_PAGES$syz arguments: [ 62 // fd: fd_iommufd (resource) 63 // cmd: const = 0x3ba0 (4 bytes) 64 // arg: ptr[in, iommu_test_cmd$access_pages$syz] { 65 // iommu_test_cmd$access_pages$syz { 66 // size: len = 0x48 (4 bytes) 67 // op: const = 0x7 (4 bytes) 68 // id: fd_access (resource) 69 // __reserved: const = 0x0 (4 bytes) 70 // flags: iommu_test_cmd_acess_pages_flags_syz = 0x0 (4 bytes) 71 // out_access_pages_id: access_pages_handle (resource) 72 // nth_area: int32 = 0x200000 (4 bytes) 73 // offset: int32 = 0x0 (4 bytes) 74 // length: int64 = 0x334e8b (8 bytes) 75 // uptr: const = 0x200000000000 (8 bytes) 76 // pad = 0x0 (24 bytes) 77 // } 78 // } 79 // ] 80 syscall(__NR_ioctl, /*fd=*/r[0], /*cmd=*/0x3ba0, /*arg=*/0x200000000100ul)