// https://syzkaller.appspot.com/bug?id=be563f410bfade0b215f3a2dd53fa1817b47d218 // autogenerated by syzkaller (https://github.com/google/syzkaller) #define _GNU_SOURCE #include #include #include #include #include #include #include #include uint64_t r[3] = {0xffffffffffffffff, 0xffffffffffffffff, 0x0}; 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)) { } res = syscall(__NR_socket, /*domain=AF_NETLINK*/ 0x10ul, /*type=SOCK_RAW*/ 3ul, /*proto=*/0); if (res != -1) r[0] = res; res = syscall(__NR_socketpair, /*domain=*/1ul, /*type=SOCK_SEQPACKET*/ 5ul, /*proto=*/0, /*fds=*/0x200000000240ul); if (res != -1) r[1] = *(uint32_t*)0x200000000244; memcpy((void*)0x200000000000, "lo\000\000\000\000\000\000\000\000\000\000\000\000\000\000", 16); res = syscall(__NR_ioctl, /*fd=*/r[1], /*cmd=*/0x8933, /*arg=*/0x200000000000ul); if (res != -1) r[2] = *(uint32_t*)0x200000000010; *(uint64_t*)0x200000000040 = 0; *(uint32_t*)0x200000000048 = 0; *(uint64_t*)0x200000000050 = 0x200000000780; *(uint64_t*)0x200000000780 = 0x200000000640; *(uint32_t*)0x200000000640 = 0x48; *(uint16_t*)0x200000000644 = 0x24; *(uint16_t*)0x200000000646 = 0xd0f; *(uint32_t*)0x200000000648 = 0x70bd2d; *(uint32_t*)0x20000000064c = 0; *(uint8_t*)0x200000000650 = 0x60; *(uint8_t*)0x200000000651 = 0; *(uint16_t*)0x200000000652 = 0; *(uint32_t*)0x200000000654 = r[2]; *(uint16_t*)0x200000000658 = 0; *(uint16_t*)0x20000000065a = 0xa; *(uint16_t*)0x20000000065c = -1; *(uint16_t*)0x20000000065e = -1; *(uint16_t*)0x200000000660 = 0; *(uint16_t*)0x200000000662 = -1; *(uint16_t*)0x200000000664 = 8; *(uint16_t*)0x200000000666 = 1; memcpy((void*)0x200000000668, "htb\000", 4); *(uint16_t*)0x20000000066c = 0x1c; *(uint16_t*)0x20000000066e = 2; *(uint16_t*)0x200000000670 = 0x18; *(uint16_t*)0x200000000672 = 2; *(uint32_t*)0x200000000674 = 3; *(uint32_t*)0x200000000678 = 0xf; *(uint32_t*)0x20000000067c = 0x10001; *(uint32_t*)0x200000000680 = 0; *(uint32_t*)0x200000000684 = 0; *(uint64_t*)0x200000000788 = 0x48; *(uint64_t*)0x200000000058 = 1; *(uint64_t*)0x200000000060 = 0; *(uint64_t*)0x200000000068 = 0; *(uint32_t*)0x200000000070 = 0; syscall(__NR_sendmsg, /*fd=*/r[0], /*msg=*/0x200000000040ul, /*f=MSG_BATCH|MSG_NOSIGNAL|MSG_EOR*/ 0x44080ul); *(uint64_t*)0x200000000280 = 0; *(uint32_t*)0x200000000288 = 0; *(uint64_t*)0x200000000290 = 0x200000000780; *(uint64_t*)0x200000000780 = 0x2000000005c0; *(uint32_t*)0x2000000005c0 = 0x34; *(uint16_t*)0x2000000005c4 = 0x24; *(uint16_t*)0x2000000005c6 = 0xd0f; *(uint32_t*)0x2000000005c8 = 0x70bd2c; *(uint32_t*)0x2000000005cc = 0; *(uint8_t*)0x2000000005d0 = 0x60; *(uint8_t*)0x2000000005d1 = 0; *(uint16_t*)0x2000000005d2 = 0; *(uint32_t*)0x2000000005d4 = r[2]; *(uint16_t*)0x2000000005d8 = 0; *(uint16_t*)0x2000000005da = 0; *(uint16_t*)0x2000000005dc = 0xffe0; *(uint16_t*)0x2000000005de = 0xa; *(uint16_t*)0x2000000005e0 = 1; *(uint16_t*)0x2000000005e2 = 0xe; *(uint16_t*)0x2000000005e4 = 0xa; *(uint16_t*)0x2000000005e6 = 1; memcpy((void*)0x2000000005e8, "codel\000", 6); *(uint16_t*)0x2000000005f0 = 4; *(uint16_t*)0x2000000005f2 = 2; *(uint64_t*)0x200000000788 = 0x34; *(uint64_t*)0x200000000298 = 1; *(uint64_t*)0x2000000002a0 = 0; *(uint64_t*)0x2000000002a8 = 0; *(uint32_t*)0x2000000002b0 = 0x55; syscall(__NR_sendmsg, /*fd=*/r[0], /*msg=*/0x200000000280ul, /*f=MSG_PROBE|MSG_NOSIGNAL|MSG_MORE*/ 0xc010ul); return 0; }