// https://syzkaller.appspot.com/bug?id=7fed6d584f10a3e20118193cefa19346940df6e6 // 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, 0x1ffff000ul, 0x1000ul, 0ul, 0x32ul, -1, 0ul); syscall(__NR_mmap, 0x20000000ul, 0x1000000ul, 7ul, 0x32ul, -1, 0ul); syscall(__NR_mmap, 0x21000000ul, 0x1000ul, 0ul, 0x32ul, -1, 0ul); intptr_t res = 0; *(uint64_t*)0x20000280 = 0; *(uint32_t*)0x20000288 = 0; *(uint64_t*)0x20000290 = 0x20000240; *(uint64_t*)0x20000240 = 0x20000080; memcpy((void*)0x20000080, "\x70\x00\x00\x00\x00\x01\x19\x05\x03\x01\x00\x00\x08\x00\x00\x00\x12" "\x00\x00\x00\x24\x00\x01\x00\x14\x00\x01\x00\x08\x00\x01\x00\xff\xff" "\xff\xff\x08\x00\x02\x00\xac\x1e\x00\xe7\x0b\x00\x02\x00\x05\x00\x01" "\x00\x00\x00\x00\x00\x24\x00\x02\x00\x0c\x00\x02\x00\x05\x00\x01\x00" "\x00\x00\x00\x00\x14\x00\x01\x00\x08\x00\x01\x00\xe0\x00\x00\x02\x08" "\x00\x02\x00\x00\xa3\xd4\x00\x08\x00\x07\x00\x00\x00\x00\x00\x0c\x00" "\x06\x00\xca\x6e\x8a\xa0\x89\x60\xa9\x48\x67\xc7\x97\x88\x85\xf6\x66" "\xef\xab\x26\xce\x14\xf9\x16\xe5\x9c\xbe\xdb\x25\x02\xdc\xd4\x4c\x43" "\x94\xc4\xe3\xb0\x8c\xbb\x94\xf2\xcc\xf4\xc0\xaf\x7e\xb9\x06\x7c\x89" "\x22\xcd\x8c\x99\x36\x4c\x0a\xdf\x54\xc3\x25\x8c\x26\xf4\x14\x7f\xae" "\x87\x7b\xe8\xf7\x14\x1f\x82\x70\x06\x3b\xec\x27\xb7\x59\x98\x23\x19" "\x74\xff\xc5\xca\xa1\x6d\x57\xb8\x95\x85\x4a\x32\x5f\xd2\x9a\x59\x67" "\xac\x3e\x3b\xce\x77\x58", 210); *(uint64_t*)0x20000248 = 0x70; *(uint64_t*)0x20000298 = 1; *(uint64_t*)0x200002a0 = 0; *(uint64_t*)0x200002a8 = 0; *(uint32_t*)0x200002b0 = 0; syscall(__NR_sendmsg, -1, 0x20000280ul, 0ul); res = syscall(__NR_socket, 0x10ul, 3ul, 0xc); if (res != -1) r[0] = res; *(uint64_t*)0x20000580 = 0; *(uint32_t*)0x20000588 = 0xfffffff5; *(uint64_t*)0x20000590 = 0x20000200; *(uint64_t*)0x20000200 = 0; *(uint64_t*)0x20000208 = 0; *(uint64_t*)0x20000598 = 0xb; *(uint64_t*)0x200005a0 = 0x6000000; *(uint64_t*)0x200005a8 = 0; *(uint32_t*)0x200005b0 = 0; syscall(__NR_sendmsg, r[0], 0x20000580ul, 0ul); return 0; }