// https://syzkaller.appspot.com/bug?id=d38ed0177151ca71af235c613ab4897461cf9ff3 // autogenerated by syzkaller (http://github.com/google/syzkaller) #define _GNU_SOURCE #include #include #include #include #include uint64_t r[1] = {0xffffffffffffffff}; void loop() { long 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, 4); *(uint32_t*)0x20788ffc = 1; syscall(__NR_setsockopt, r[0], 6, 0x14, 0x20788ffc, 0xfdf6); memcpy((void*)0x20a6efff, "\xcf", 1); *(uint16_t*)0x200002c0 = 2; *(uint16_t*)0x200002c2 = htobe16(0); *(uint32_t*)0x200002c4 = htobe32(0x7f000001); *(uint8_t*)0x200002c8 = 0; *(uint8_t*)0x200002c9 = 0; *(uint8_t*)0x200002ca = 0; *(uint8_t*)0x200002cb = 0; *(uint8_t*)0x200002cc = 0; *(uint8_t*)0x200002cd = 0; *(uint8_t*)0x200002ce = 0; *(uint8_t*)0x200002cf = 0; syscall(__NR_sendto, r[0], 0x20a6efff, 1, 0x2001ffff, 0x200002c0, 0x10); memcpy((void*)0x200000c0, "\x92", 1); *(uint16_t*)0x20000040 = 2; *(uint16_t*)0x20000042 = htobe16(0); *(uint8_t*)0x20000044 = 0xac; *(uint8_t*)0x20000045 = 0x14; *(uint8_t*)0x20000046 = 0; *(uint8_t*)0x20000047 = 0; *(uint8_t*)0x20000048 = 0; *(uint8_t*)0x20000049 = 0; *(uint8_t*)0x2000004a = 0; *(uint8_t*)0x2000004b = 0; *(uint8_t*)0x2000004c = 0; *(uint8_t*)0x2000004d = 0; *(uint8_t*)0x2000004e = 0; *(uint8_t*)0x2000004f = 0; syscall(__NR_sendto, r[0], 0x200000c0, 1, 0, 0x20000040, 0x10); *(uint32_t*)0x20001580 = 0; *(uint32_t*)0x20001584 = 0; *(uint32_t*)0x20001588 = 0; *(uint32_t*)0x2000158c = 0; *(uint32_t*)0x20001590 = 0; *(uint32_t*)0x20001594 = 0; } int main() { syscall(__NR_mmap, 0x20000000, 0x1000000, 3, 0x32, -1, 0); loop(); return 0; }