// 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); *(uint32_t*)0x203e1f18 = htobe32(0xe0000001); *(uint8_t*)0x203e1f28 = 0; *(uint8_t*)0x203e1f29 = 0; *(uint8_t*)0x203e1f2a = 0; *(uint8_t*)0x203e1f2b = 0; *(uint8_t*)0x203e1f2c = 0; *(uint8_t*)0x203e1f2d = 0; *(uint8_t*)0x203e1f2e = 0; *(uint8_t*)0x203e1f2f = 0; *(uint8_t*)0x203e1f30 = 0; *(uint8_t*)0x203e1f31 = 0; *(uint8_t*)0x203e1f32 = -1; *(uint8_t*)0x203e1f33 = -1; *(uint32_t*)0x203e1f34 = htobe32(0x81); *(uint16_t*)0x203e1f38 = htobe16(0x4e23); *(uint16_t*)0x203e1f3a = 4; *(uint16_t*)0x203e1f3c = htobe16(0x4e21); *(uint16_t*)0x203e1f3e = 0x200; *(uint16_t*)0x203e1f40 = 0xa; *(uint8_t*)0x203e1f42 = 0x80; *(uint8_t*)0x203e1f43 = 0x20; *(uint8_t*)0x203e1f44 = 0x16; *(uint32_t*)0x203e1f48 = 9; *(uint32_t*)0x203e1f4c = 0; *(uint64_t*)0x203e1f50 = 0x80000000; *(uint64_t*)0x203e1f58 = 0xfffffffff9312ceb; *(uint64_t*)0x203e1f60 = 0x40; *(uint64_t*)0x203e1f68 = 0xa2cb; *(uint64_t*)0x203e1f70 = 0x101; *(uint64_t*)0x203e1f78 = 0x10001; *(uint64_t*)0x203e1f80 = 1; *(uint64_t*)0x203e1f88 = 0x42f; *(uint64_t*)0x203e1f90 = 4; *(uint64_t*)0x203e1f98 = 0x1ff; *(uint64_t*)0x203e1fa0 = 0x20; *(uint64_t*)0x203e1fa8 = 9; *(uint32_t*)0x203e1fb0 = 5; *(uint32_t*)0x203e1fb4 = 0x6e6bba; *(uint8_t*)0x203e1fb8 = 2; *(uint8_t*)0x203e1fb9 = 1; *(uint8_t*)0x203e1fba = 3; *(uint8_t*)0x203e1fbb = 2; *(uint32_t*)0x203e1fc0 = htobe32(7); *(uint32_t*)0x203e1fd0 = htobe32(0x4d2); *(uint8_t*)0x203e1fd4 = 0x2b; *(uint16_t*)0x203e1fd8 = 0xa; *(uint64_t*)0x203e1fdc = htobe64(0); *(uint64_t*)0x203e1fe4 = htobe64(1); *(uint32_t*)0x203e1fec = 0x3501; *(uint8_t*)0x203e1ff0 = 0; *(uint8_t*)0x203e1ff1 = 0; *(uint8_t*)0x203e1ff2 = 8; *(uint32_t*)0x203e1ff4 = 7; *(uint32_t*)0x203e1ff8 = 0x71; *(uint32_t*)0x203e1ffc = 6; syscall(__NR_setsockopt, -1, 0x29, 0x22, 0x203e1f18, 0xe8); 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(); } }