// https://syzkaller.appspot.com/bug?id=d38ed0177151ca71af235c613ab4897461cf9ff3 // 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, 0x20000000, 0x1000000, 3, 0x32, -1, 0); intptr_t res = 0; res = syscall(__NR_socket, 2, 1, 0); if (res != -1) r[0] = res; *(uint32_t*)0x20d06000 = 1; syscall(__NR_setsockopt, r[0], 6, 0x10000000013, 0x20d06000, 0x32a); *(uint16_t*)0x20000180 = 2; *(uint16_t*)0x20000182 = htobe16(0); *(uint32_t*)0x20000184 = htobe32(0); syscall(__NR_connect, r[0], 0x20000180, 0x10); *(uint32_t*)0x20000080 = 1; syscall(__NR_setsockopt, r[0], 6, 0x14, 0x20000080, 0x1f8); *(uint64_t*)0x20000140 = 0; *(uint32_t*)0x20000148 = 0; *(uint64_t*)0x20000150 = 0x20000100; *(uint64_t*)0x20000100 = 0x20000300; *(uint32_t*)0x20000300 = 0x14; *(uint16_t*)0x20000304 = 0; *(uint16_t*)0x20000306 = 0; *(uint32_t*)0x20000308 = 0; *(uint32_t*)0x2000030c = 0; *(uint8_t*)0x20000310 = 0xf; *(uint8_t*)0x20000311 = 0; *(uint16_t*)0x20000312 = 0; *(uint64_t*)0x20000108 = 0x14; *(uint64_t*)0x20000158 = 1; *(uint64_t*)0x20000160 = 0; *(uint64_t*)0x20000168 = 0; *(uint32_t*)0x20000170 = 0; syscall(__NR_sendmsg, r[0], 0x20000140, 0); *(uint64_t*)0x20000000 = 0; *(uint32_t*)0x20000008 = 0; *(uint64_t*)0x20000010 = 0x20000280; *(uint64_t*)0x20000280 = 0x200002c0; sprintf((char*)0x200002c0, "0x%016llx", (long long)-1); *(uint64_t*)0x20000288 = 1; *(uint64_t*)0x20000018 = 1; *(uint64_t*)0x20000020 = 0; *(uint64_t*)0x20000028 = 0; *(uint32_t*)0x20000030 = 0; syscall(__NR_sendmsg, r[0], 0x20000000, 0); return 0; }