// https://syzkaller.appspot.com/bug?id=d88dde89ebf9081fccad49ae0dd51d0f2917009d // autogenerated by syzkaller (http://github.com/google/syzkaller) #define _GNU_SOURCE #include #include #include #include static void test(); void loop() { while (1) { test(); } } long r[69]; void test() { memset(r, -1, sizeof(r)); r[0] = syscall(__NR_mmap, 0x20000000ul, 0xfff000ul, 0x3ul, 0x32ul, 0xfffffffffffffffful, 0x0ul); r[1] = syscall(__NR_socket, 0x2ul, 0x1ul, 0x0ul); *(uint8_t*)0x20d17000 = (uint8_t)0x73; *(uint8_t*)0x20d17001 = (uint8_t)0x79; *(uint8_t*)0x20d17002 = (uint8_t)0x7a; *(uint8_t*)0x20d17003 = (uint8_t)0x30; *(uint8_t*)0x20d17004 = (uint8_t)0x0; *(uint16_t*)0x20d17010 = (uint16_t)0x1; r[8] = syscall(__NR_ioctl, r[1], 0x8914ul, 0x20d17000ul); r[9] = syscall(__NR_socketpair, 0x1ul, 0x1ul, 0x0ul, 0x20042000ul); if (r[9] != -1) r[10] = *(uint32_t*)0x20042004; *(uint8_t*)0x209e6000 = (uint8_t)0x73; *(uint8_t*)0x209e6001 = (uint8_t)0x79; *(uint8_t*)0x209e6002 = (uint8_t)0x7a; *(uint8_t*)0x209e6003 = (uint8_t)0x30; *(uint8_t*)0x209e6004 = (uint8_t)0x0; r[16] = syscall(__NR_ioctl, r[10], 0x89a0ul, 0x209e6000ul); r[17] = syscall(__NR_socket, 0xaul, 0x802ul, 0x0ul); memcpy((void*)0x20f6e000, "\x00\x00\x00\x00\x00\x00\x0f\xa6", 8); r[19] = syscall(__NR_setsockopt, r[17], 0x29ul, 0x3bul, 0x20f6e000ul, 0x8ul); *(uint8_t*)0x20f5ffe0 = (uint8_t)0xfe; *(uint8_t*)0x20f5ffe1 = (uint8_t)0x80; *(uint8_t*)0x20f5ffe2 = (uint8_t)0x0; *(uint8_t*)0x20f5ffe3 = (uint8_t)0x0; *(uint8_t*)0x20f5ffe4 = (uint8_t)0x0; *(uint8_t*)0x20f5ffe5 = (uint8_t)0x0; *(uint8_t*)0x20f5ffe6 = (uint8_t)0x0; *(uint8_t*)0x20f5ffe7 = (uint8_t)0x0; *(uint8_t*)0x20f5ffe8 = (uint8_t)0x0; *(uint8_t*)0x20f5ffe9 = (uint8_t)0x0; *(uint8_t*)0x20f5ffea = (uint8_t)0x0; *(uint8_t*)0x20f5ffeb = (uint8_t)0x0; *(uint8_t*)0x20f5ffec = (uint8_t)0x0; *(uint8_t*)0x20f5ffed = (uint8_t)0x0; *(uint8_t*)0x20f5ffee = (uint8_t)0x0; *(uint8_t*)0x20f5ffef = (uint8_t)0xbb; *(uint32_t*)0x20f5fff0 = (uint32_t)0x200000000000800; *(uint8_t*)0x20f5fff4 = (uint8_t)0x0; *(uint8_t*)0x20f5fff5 = (uint8_t)0xff; *(uint16_t*)0x20f5fff6 = (uint16_t)0x1; *(uint16_t*)0x20f5fff8 = (uint16_t)0x0; *(uint16_t*)0x20f5fffa = (uint16_t)0x0; *(uint32_t*)0x20f5fffc = (uint32_t)0x0; r[43] = syscall(__NR_setsockopt, r[17], 0x29ul, 0x20ul, 0x20f5ffe0ul, 0x20ul); *(uint32_t*)0x2089b000 = (uint32_t)0xffffffffffffffff; r[45] = syscall(__NR_setsockopt, r[17], 0x29ul, 0x21ul, 0x2089b000ul, 0x4ul); memcpy((void*)0x20e72000, "\x65\x01\xd9\x03\x42\x7b\xa1\x04\x7c\x6d\xb3\x76\xef\xaa\x5d" "\x50", 16); r[47] = syscall(__NR_setsockopt, r[17], 0x29ul, 0x37ul, 0x20e72000ul, 0x10ul); *(uint16_t*)0x20e0afe4 = (uint16_t)0xa; *(uint16_t*)0x20e0afe6 = (uint16_t)0x214e; *(uint32_t*)0x20e0afe8 = (uint32_t)0x800; *(uint8_t*)0x20e0afec = (uint8_t)0xfe; *(uint8_t*)0x20e0afed = (uint8_t)0x80; *(uint8_t*)0x20e0afee = (uint8_t)0x0; *(uint8_t*)0x20e0afef = (uint8_t)0x0; *(uint8_t*)0x20e0aff0 = (uint8_t)0x0; *(uint8_t*)0x20e0aff1 = (uint8_t)0x0; *(uint8_t*)0x20e0aff2 = (uint8_t)0x0; *(uint8_t*)0x20e0aff3 = (uint8_t)0x0; *(uint8_t*)0x20e0aff4 = (uint8_t)0x0; *(uint8_t*)0x20e0aff5 = (uint8_t)0x0; *(uint8_t*)0x20e0aff6 = (uint8_t)0x0; *(uint8_t*)0x20e0aff7 = (uint8_t)0x0; *(uint8_t*)0x20e0aff8 = (uint8_t)0x0; *(uint8_t*)0x20e0aff9 = (uint8_t)0x0; *(uint8_t*)0x20e0affa = (uint8_t)0x0; *(uint8_t*)0x20e0affb = (uint8_t)0xaa; *(uint32_t*)0x20e0affc = (uint32_t)0x0; r[68] = syscall(__NR_sendto, r[17], 0x2052bfccul, 0x0ul, 0x0ul, 0x20e0afe4ul, 0x1cul); } int main() { loop(); return 0; }