// https://syzkaller.appspot.com/bug?id=e2dc9aea0465d1eea101bb24cb463e2a7efe7d17 // autogenerated by syzkaller (http://github.com/google/syzkaller) #define _GNU_SOURCE #include #include #include #include #include static void test(); void loop() { while (1) { test(); } } long r[2]; uint64_t procid; void test() { memset(r, -1, sizeof(r)); syscall(__NR_mmap, 0x20000000, 0xfff000, 3, 0x32, -1, 0); r[0] = syscall(__NR_socket, 0x26, 5, 0); *(uint16_t*)0x2016b000 = 0x26; memcpy((void*)0x2016b002, "\x73\x6b\x63\x69\x70\x68\x65\x72\x00\x00\x00\x00\x00\x00", 14); *(uint32_t*)0x2016b010 = 0; *(uint32_t*)0x2016b014 = 0; memcpy((void*)0x2016b018, "\x65\x63\x62\x28\x74\x77\x6f\x66\x69\x73\x68\x29\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00", 64); syscall(__NR_bind, r[0], 0x2016b000, 0x58); memcpy((void*)0x203c1000, "\x0a\x07\x75\xb0\xd5\xe3\x83\xe5\xb3\xb6\x0c\xed" "\x5c\x54\xdb\xaa\x29\x5d\xf0\xdf\x82\x17\xad\x40" "\x00\x00\x00\x00\x00\x00\x00\xe6", 32); syscall(__NR_setsockopt, r[0], 0x117, 1, 0x203c1000, 0x20); r[1] = syscall(__NR_accept, r[0], 0, 0); *(uint64_t*)0x20dde000 = 0x20ea9ff0; *(uint32_t*)0x20dde008 = 0x10; *(uint64_t*)0x20dde010 = 0x20882fb0; *(uint64_t*)0x20dde018 = 2; *(uint64_t*)0x20dde020 = 0x20f9c000; *(uint64_t*)0x20dde028 = 0x20; *(uint32_t*)0x20dde030 = 0x80; *(uint16_t*)0x20ea9ff0 = 3; memcpy((void*)0x20ea9ff2, "\xb1\x53\xe3\x5b\x12\x6c\xee", 7); *(uint32_t*)0x20ea9ffc = 0; *(uint64_t*)0x20882fb0 = 0x20fa1000; *(uint64_t*)0x20882fb8 = 0; *(uint64_t*)0x20882fc0 = 0x20fa3f04; *(uint64_t*)0x20882fc8 = 0xfc; memcpy((void*)0x20fa3f04, "\x7d\x57\x13\x1d\xc6\x2f\xa4\xe5\xec\xea\x21\xeb\xec\x56\x77\x14\x08" "\x69\xad\x4f\x0e\x70\x6f\x19\xed\x79\x90\x57\x97\x8b\x0d\x5c\xf1\x54" "\x7d\xb7\x9c\x81\x4c\xbd\x67\xca\x13\xce\x0f\x4c\xc5\xdc\xbf\x99\xaa" "\xb6\x67\xb1\x47\xab\x97\x5f\xad\x90\xcf\x88\xaa\x7f\xea\xba\x86\xc5" "\x68\x19\xae\x4a\x6e\xf7\xaa\x50\xef\x79\x21\xb7\x57\xb8\xc8\xde\x8c" "\xc6\x68\xb9\x14\x46\x46\xfb\x2a\x79\x76\x46\xde\x77\x43\x66\x61\x20" "\x3a\x6c\x92\x81\xbf\x1a\xc5\x71\x0d\x5a\x94\x7d\x00\x61\x6a\xb6\xdc" "\x06\x34\x7c\x0e\xaf\x00\xe5\x66\x89\xfa\x11\x2e\xae\xc6\x84\xd1\x86" "\x34\xad\x70\xf2\xb1\xee\x7c\xe6\xb3\x7f\x1c\x40\x04\x80\x67\x9d\x42" "\xf5\x44\x9e\x76\xc2\x44\xf3\xc0\xbf\xb8\xfd\xd5\x31\xca\x1f\x40\xd2" "\x9d\x38\x5a\x6a\xf4\x56\x87\xa1\x5f\xd3\xcf\xfc\xa8\xab\x5b\x29\xd5" "\x5c\xdc\xff\x0a\x4c\x4d\x9c\x61\x88\xab\xfa\x05\x5b\xd1\xf1\x61\xe1" "\x8f\x96\xc3\xef\x00\xc9\x1e\xcd\xa3\x66\xc1\xd3\x46\x74\x9f\xc7\xaa" "\xd1\xc2\xa9\x51\x93\xef\x28\x7f\x73\xfa\x32\x31\x74\x77\xdb\x3b\x77" "\x14\xe5\x19\xcf\x81\x78\x62\x06\xd2\xf9\x58\x0c\x37\xef", 252); *(uint64_t*)0x20f9c000 = 0x10; *(uint32_t*)0x20f9c008 = 0x108; *(uint32_t*)0x20f9c00c = 2; *(uint64_t*)0x20f9c010 = 0x10; *(uint32_t*)0x20f9c018 = 0x10b; *(uint32_t*)0x20f9c01c = 0; syscall(__NR_sendmsg, r[1], 0x20dde000, 0x20040015); *(uint64_t*)0x201f5000 = 0x20f7ffa8; *(uint32_t*)0x201f5008 = 0x58; *(uint64_t*)0x201f5010 = 0x20612f80; *(uint64_t*)0x201f5018 = 8; *(uint64_t*)0x201f5020 = 0x20f7ffca; *(uint64_t*)0x201f5028 = 0x57; *(uint32_t*)0x201f5030 = 0xfe; *(uint64_t*)0x20612f80 = 0x20f7f000; *(uint64_t*)0x20612f88 = 0xdf; *(uint64_t*)0x20612f90 = 0x20589000; *(uint64_t*)0x20612f98 = 0x1000; *(uint64_t*)0x20612fa0 = 0x20f82000; *(uint64_t*)0x20612fa8 = 0x30; *(uint64_t*)0x20612fb0 = 0x205f5f9a; *(uint64_t*)0x20612fb8 = 0x66; *(uint64_t*)0x20612fc0 = 0x2012ff39; *(uint64_t*)0x20612fc8 = 0xc7; *(uint64_t*)0x20612fd0 = 0x2075ef54; *(uint64_t*)0x20612fd8 = 0xac; *(uint64_t*)0x20612fe0 = 0x20f80f9a; *(uint64_t*)0x20612fe8 = 0x66; *(uint64_t*)0x20612ff0 = 0x20f81000; *(uint64_t*)0x20612ff8 = 0x1000; syscall(__NR_recvmsg, r[1], 0x201f5000, 0x40); } int main() { for (procid = 0; procid < 8; procid++) { if (fork() == 0) { for (;;) { loop(); } } } sleep(1000000); return 0; }