// https://syzkaller.appspot.com/bug?id=64e5f9ce8b030173a944f9c203b25ffd78807c3b // autogenerated by syzkaller (https://github.com/google/syzkaller) #define _GNU_SOURCE #include #include #include #include #include #include #include #include uint64_t r[1] = {0xffffffffffffffff}; int main(void) { syscall(__NR_mmap, /*addr=*/0x1ffffffff000ul, /*len=*/0x1000ul, /*prot=*/0ul, /*flags=MAP_FIXED|MAP_ANONYMOUS|MAP_PRIVATE*/ 0x32ul, /*fd=*/(intptr_t)-1, /*offset=*/0ul); syscall(__NR_mmap, /*addr=*/0x200000000000ul, /*len=*/0x1000000ul, /*prot=PROT_WRITE|PROT_READ|PROT_EXEC*/ 7ul, /*flags=MAP_FIXED|MAP_ANONYMOUS|MAP_PRIVATE*/ 0x32ul, /*fd=*/(intptr_t)-1, /*offset=*/0ul); syscall(__NR_mmap, /*addr=*/0x200001000000ul, /*len=*/0x1000ul, /*prot=*/0ul, /*flags=MAP_FIXED|MAP_ANONYMOUS|MAP_PRIVATE*/ 0x32ul, /*fd=*/(intptr_t)-1, /*offset=*/0ul); const char* reason; (void)reason; intptr_t res = 0; if (write(1, "executing program\n", sizeof("executing program\n") - 1)) { } memcpy((void*)0x200000000080, "/dev/comedi3\000", 13); res = syscall(__NR_openat, /*fd=*/0xffffffffffffff9cul, /*file=*/0x200000000080ul, /*flags=O_APPEND*/ 0x400, /*mode=*/0); if (res != -1) r[0] = res; memcpy((void*)0x2000000000c0, "pcl726\000\000\000\000\000\000\000\000\000\000\000\000\000\000", 20); *(uint32_t*)0x2000000000d4 = 0x4f27; *(uint32_t*)0x2000000000d8 = 0x10000005; *(uint32_t*)0x2000000000dc = 0x101; *(uint32_t*)0x2000000000e0 = 0x10000004; *(uint32_t*)0x2000000000e4 = 9; *(uint32_t*)0x2000000000e8 = 0x1c9d8803; *(uint32_t*)0x2000000000ec = 0xfff; *(uint32_t*)0x2000000000f0 = 0; *(uint32_t*)0x2000000000f4 = 3; *(uint32_t*)0x2000000000f8 = 0x100; *(uint32_t*)0x2000000000fc = 0xb; *(uint32_t*)0x200000000100 = 0xc; *(uint32_t*)0x200000000104 = 0x7fff; *(uint32_t*)0x200000000108 = 1; *(uint32_t*)0x20000000010c = 6; *(uint32_t*)0x200000000110 = 0xe1cb; *(uint32_t*)0x200000000114 = 0; *(uint32_t*)0x200000000118 = 0x1a449; *(uint32_t*)0x20000000011c = 3; *(uint32_t*)0x200000000120 = 0x3fffffff; *(uint32_t*)0x200000000124 = 0x89; *(uint32_t*)0x200000000128 = 8; *(uint32_t*)0x20000000012c = 2; *(uint32_t*)0x200000000130 = 0x20001e56; *(uint32_t*)0x200000000134 = 0xb; *(uint32_t*)0x200000000138 = 0xe69; *(uint32_t*)0x20000000013c = 0x37; *(uint32_t*)0x200000000140 = 8; *(uint32_t*)0x200000000144 = 3; *(uint32_t*)0x200000000148 = 3; *(uint32_t*)0x20000000014c = 5; *(uint32_t*)0x200000000150 = 0; syscall(__NR_ioctl, /*fd=*/r[0], /*cmd=*/0x40946400, /*arg=*/0x2000000000c0ul); return 0; }