// https://syzkaller.appspot.com/bug?id=d00cad3f389b75fe7d54472c0b9eba5afbc2f055 // autogenerated by syzkaller (http://github.com/google/syzkaller) #define _GNU_SOURCE #include #include #include #include #include static void execute_one(); extern unsigned long long procid; void loop() { while (1) { execute_one(); } } uint64_t r[2] = {0xffffffffffffffff, 0xffffffffffffffff}; unsigned long long procid; void execute_one() { long res = 0; res = syscall(__NR_socket, 0x10, 3, 6); if (res != -1) r[0] = res; res = syscall(__NR_socket, 0xa, 1, 0); if (res != -1) r[1] = res; *(uint64_t*)0x20000100 = 0; *(uint32_t*)0x20000108 = 0; *(uint64_t*)0x20000110 = 0x200000c0; *(uint64_t*)0x200000c0 = 0x20000000; memcpy((void*)0x20000000, "\x24\x00\x00\x00\x24\x00\x07\x03\x1d\xff\xfd\x94" "\x6f\xa2\x83\x00\x20\x20\x0a\x00\x09\x00\x03\x00" "\x00\x1d\x85\x68\x0c\x1b\xa3\xa2\x04\x00\xff\x7e", 36); *(uint64_t*)0x200000c8 = 0x24; *(uint64_t*)0x20000118 = 1; *(uint64_t*)0x20000120 = 0; *(uint64_t*)0x20000128 = 0; *(uint32_t*)0x20000130 = 0; syscall(__NR_sendmsg, r[0], 0x20000100, 0); *(uint32_t*)0x200002c0 = htobe32(0); *(uint32_t*)0x200002d0 = htobe32(0x7f000001); *(uint16_t*)0x200002e0 = htobe16(0x4e20); *(uint16_t*)0x200002e2 = htobe16(0); *(uint16_t*)0x200002e4 = htobe16(0x4e22); *(uint16_t*)0x200002e6 = htobe16(0); *(uint16_t*)0x200002e8 = 0xa; *(uint8_t*)0x200002ea = 0x20; *(uint8_t*)0x200002eb = 0x20; *(uint8_t*)0x200002ec = 0x32; *(uint32_t*)0x200002f0 = 0; *(uint32_t*)0x200002f4 = 0; *(uint64_t*)0x200002f8 = 2; *(uint64_t*)0x20000300 = 0x80000000; *(uint64_t*)0x20000308 = 0x401; *(uint64_t*)0x20000310 = 0x7f; *(uint64_t*)0x20000318 = 0; *(uint64_t*)0x20000320 = 0xf1e; *(uint64_t*)0x20000328 = 0x22; *(uint64_t*)0x20000330 = 0x1ff; *(uint64_t*)0x20000338 = 4; *(uint64_t*)0x20000340 = 8; *(uint64_t*)0x20000348 = 2; *(uint64_t*)0x20000350 = 8; *(uint32_t*)0x20000358 = 0xe2d0; *(uint32_t*)0x2000035c = 0; *(uint8_t*)0x20000360 = 1; *(uint8_t*)0x20000361 = 1; *(uint8_t*)0x20000362 = 3; *(uint8_t*)0x20000363 = 3; *(uint8_t*)0x20000368 = 0xac; *(uint8_t*)0x20000369 = 0x14; *(uint8_t*)0x2000036a = 0x14; *(uint8_t*)0x2000036b = 0xaa; *(uint32_t*)0x20000378 = htobe32(0x4d4); *(uint8_t*)0x2000037c = 0x6c; *(uint16_t*)0x20000380 = 0xa; *(uint8_t*)0x20000384 = -1; *(uint8_t*)0x20000385 = 2; *(uint8_t*)0x20000386 = 0; *(uint8_t*)0x20000387 = 0; *(uint8_t*)0x20000388 = 0; *(uint8_t*)0x20000389 = 0; *(uint8_t*)0x2000038a = 0; *(uint8_t*)0x2000038b = 0; *(uint8_t*)0x2000038c = 0; *(uint8_t*)0x2000038d = 0; *(uint8_t*)0x2000038e = 0; *(uint8_t*)0x2000038f = 0; *(uint8_t*)0x20000390 = 0; *(uint8_t*)0x20000391 = 0; *(uint8_t*)0x20000392 = 0; *(uint8_t*)0x20000393 = 1; *(uint32_t*)0x20000394 = 0; *(uint8_t*)0x20000398 = 3; *(uint8_t*)0x20000399 = 3; *(uint8_t*)0x2000039a = 0xd1; *(uint32_t*)0x2000039c = 9; *(uint32_t*)0x200003a0 = 0x7f; *(uint32_t*)0x200003a4 = 2; syscall(__NR_setsockopt, r[1], 0x29, 0x23, 0x200002c0, 0xe8); } int main() { syscall(__NR_mmap, 0x20000000, 0x1000000, 3, 0x32, -1, 0); for (procid = 0; procid < 8; procid++) { if (fork() == 0) { for (;;) { loop(); } } } sleep(1000000); return 0; }