// https://syzkaller.appspot.com/bug?id=be77af8f4170f3350bed40f1b060851541287f2f // autogenerated by syzkaller (http://github.com/google/syzkaller) #define _GNU_SOURCE #include #include #include #include #include uint64_t r[2] = {0xffffffffffffffff, 0xffffffffffffffff}; void loop() { long res; res = syscall(__NR_socket, 0xa, 2, 0); if (res != -1) r[0] = res; res = syscall(__NR_socket, 0x18, 1, 1); if (res != -1) r[1] = res; *(uint16_t*)0x205fafd2 = 0x18; *(uint32_t*)0x205fafd4 = 1; *(uint32_t*)0x205fafd8 = 0; *(uint32_t*)0x205fafdc = r[0]; *(uint16_t*)0x205fafe0 = 2; *(uint16_t*)0x205fafe2 = htobe16(0x4e21); *(uint32_t*)0x205fafe4 = htobe32(0xe0000002); *(uint8_t*)0x205fafe8 = 0; *(uint8_t*)0x205fafe9 = 0; *(uint8_t*)0x205fafea = 0; *(uint8_t*)0x205fafeb = 0; *(uint8_t*)0x205fafec = 0; *(uint8_t*)0x205fafed = 0; *(uint8_t*)0x205fafee = 0; *(uint8_t*)0x205fafef = 0; *(uint32_t*)0x205faff0 = 4; *(uint32_t*)0x205faff4 = 0; *(uint32_t*)0x205faff8 = 2; *(uint32_t*)0x205faffc = 0; syscall(__NR_connect, r[1], 0x205fafd2, 0x2e); *(uint16_t*)0x20000280 = 0xa; *(uint16_t*)0x20000282 = htobe16(0x4e24); *(uint32_t*)0x20000284 = 4; *(uint8_t*)0x20000288 = 0; *(uint8_t*)0x20000289 = 0; *(uint8_t*)0x2000028a = 0; *(uint8_t*)0x2000028b = 0; *(uint8_t*)0x2000028c = 0; *(uint8_t*)0x2000028d = 0; *(uint8_t*)0x2000028e = 0; *(uint8_t*)0x2000028f = 0; *(uint8_t*)0x20000290 = 0; *(uint8_t*)0x20000291 = 0; *(uint8_t*)0x20000292 = -1; *(uint8_t*)0x20000293 = -1; *(uint32_t*)0x20000294 = htobe32(0x7f000001); *(uint32_t*)0x20000298 = 4; syscall(__NR_connect, r[0], 0x20000280, 0x1c); *(uint64_t*)0x2037ffc8 = 0x209dd000; *(uint16_t*)0x209dd000 = 0x10; *(uint16_t*)0x209dd002 = 0; *(uint32_t*)0x209dd004 = 0; *(uint32_t*)0x209dd008 = 2; *(uint32_t*)0x2037ffd0 = 0xc; *(uint64_t*)0x2037ffd8 = 0x202ceff0; *(uint64_t*)0x202ceff0 = 0x20000040; *(uint64_t*)0x202ceff8 = 1; *(uint64_t*)0x2037ffe0 = 1; *(uint64_t*)0x2037ffe8 = 0; *(uint64_t*)0x2037fff0 = 0; *(uint32_t*)0x2037fff8 = 0x8820; syscall(__NR_sendmsg, r[1], 0x2037ffc8, 0x81); *(uint8_t*)0x20000000 = 1; *(uint8_t*)0x20000001 = 0x80; *(uint8_t*)0x20000002 = 0xc2; *(uint8_t*)0x20000003 = 0; *(uint8_t*)0x20000004 = 0; *(uint8_t*)0x20000005 = 1; *(uint8_t*)0x20000006 = 0xaa; *(uint8_t*)0x20000007 = 0xaa; *(uint8_t*)0x20000008 = 0xaa; *(uint8_t*)0x20000009 = 0xaa; *(uint8_t*)0x2000000a = 0xaa; *(uint8_t*)0x2000000b = 0x1a; *(uint16_t*)0x2000000c = htobe16(0x11); *(uint8_t*)0x2000000e = 0xfc; *(uint8_t*)0x2000000f = 0xd6; memcpy((void*)0x20000010, "L", 1); *(uint32_t*)0x20000040 = 1; *(uint32_t*)0x20000044 = 4; *(uint32_t*)0x20000048 = 0xbd7; *(uint32_t*)0x2000004c = 0x441; *(uint32_t*)0x20000050 = 0x91e; *(uint32_t*)0x20000054 = 0xf70; } int main() { syscall(__NR_mmap, 0x20000000, 0x1000000, 3, 0x32, -1, 0); loop(); return 0; }