// https://syzkaller.appspot.com/bug?id=41cd42cb159de1cbed921865f1323987fd6fe628 // 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[3]; void test() { memset(r, -1, sizeof(r)); syscall(__NR_mmap, 0x20000000, 0xfff000, 3, 0x32, -1, 0); r[0] = syscall(__NR_socket, 0xa, 2, 0); memcpy((void*)0x20190fd8, "\x73\x69\x74\x30\x00\x00\xfb\xff\x00\x00\x00\x00\x00\x00\x00\x00", 16); *(uint32_t*)0x20190fe8 = 0; *(uint8_t*)0x20190fec = 0; *(uint8_t*)0x20190fed = 0; *(uint8_t*)0x20190fee = 0; *(uint8_t*)0x20190fef = 0; *(uint8_t*)0x20190ff0 = 0; *(uint8_t*)0x20190ff1 = 0; *(uint8_t*)0x20190ff2 = 0; *(uint8_t*)0x20190ff3 = 0; *(uint8_t*)0x20190ff4 = 0; *(uint8_t*)0x20190ff5 = 0; *(uint8_t*)0x20190ff6 = 0; *(uint8_t*)0x20190ff7 = 0; *(uint8_t*)0x20190ff8 = 0; *(uint8_t*)0x20190ff9 = 0; *(uint8_t*)0x20190ffa = 0; *(uint8_t*)0x20190ffb = 0; *(uint8_t*)0x20190ffc = 0; *(uint8_t*)0x20190ffd = 0; *(uint8_t*)0x20190ffe = 0; *(uint8_t*)0x20190fff = 0; if (syscall(__NR_ioctl, r[0], 0x8933, 0x20190fd8) != -1) r[1] = *(uint32_t*)0x20190fe8; *(uint8_t*)0x20c0cfb0 = 0xfe; *(uint8_t*)0x20c0cfb1 = 0x80; *(uint8_t*)0x20c0cfb2 = 0; *(uint8_t*)0x20c0cfb3 = 0; *(uint8_t*)0x20c0cfb4 = 0; *(uint8_t*)0x20c0cfb5 = 0; *(uint8_t*)0x20c0cfb6 = 0; *(uint8_t*)0x20c0cfb7 = 0; *(uint8_t*)0x20c0cfb8 = 0; *(uint8_t*)0x20c0cfb9 = 0; *(uint8_t*)0x20c0cfba = 0; *(uint8_t*)0x20c0cfbb = 0; *(uint8_t*)0x20c0cfbc = 0; *(uint8_t*)0x20c0cfbd = 0; *(uint8_t*)0x20c0cfbe = 0; *(uint8_t*)0x20c0cfbf = 0xaa; *(uint64_t*)0x20c0cfc0 = htobe64(0); *(uint64_t*)0x20c0cfc8 = htobe64(1); *(uint64_t*)0x20c0cfd0 = htobe64(0); *(uint64_t*)0x20c0cfd8 = htobe64(1); *(uint32_t*)0x20c0cfe0 = 0; *(uint16_t*)0x20c0cfe4 = 0; *(uint16_t*)0x20c0cfe6 = 0; *(uint32_t*)0x20c0cfe8 = -1; *(uint64_t*)0x20c0cff0 = 0; *(uint32_t*)0x20c0cff8 = 0x400000; *(uint32_t*)0x20c0cffc = r[1]; syscall(__NR_ioctl, r[0], 0x890b, 0x20c0cfb0); r[2] = syscall(__NR_socket, 0x10, 3, 0); *(uint64_t*)0x20bb2000 = 0x20447fd7; *(uint64_t*)0x20bb2008 = 0x29; memcpy((void*)0x20447fd7, "\x29\x00\x00\x00\x18\x00\x31\x15\xff\xff\xef\x00" "\x00\xc5\x0a\x17\x0a\x80\x00\x66\x01\x6d\x00\x09" "\x99\x98\xff\xbf\x08\x00\x08\x00\x04\x00\x01\x00" "\x0e\xf4\xff\x01\xff", 41); syscall(__NR_writev, r[2], 0x20bb2000, 1); } int main() { for (;;) { loop(); } }