// https://syzkaller.appspot.com/bug?id=b5cbda6275917e6afd1c481b7c4ed785e46452f8 // autogenerated by syzkaller (https://github.com/google/syzkaller) #define _GNU_SOURCE #include #include #include #include #include #include #include #include uint64_t r[2] = {0xffffffffffffffff, 0xffffffffffffffff}; int main(void) { syscall(__NR_mmap, 0x1ffff000ul, 0x1000ul, 0ul, 0x32ul, -1, 0ul); syscall(__NR_mmap, 0x20000000ul, 0x1000000ul, 7ul, 0x32ul, -1, 0ul); syscall(__NR_mmap, 0x21000000ul, 0x1000ul, 0ul, 0x32ul, -1, 0ul); intptr_t res = 0; res = syscall(__NR_pipe, 0x200000c0ul); if (res != -1) r[0] = *(uint32_t*)0x200000c4; res = syscall(__NR_socket, 0x2bul, 1ul, 0); if (res != -1) r[1] = res; *(uint32_t*)0x20000000 = 1; syscall(__NR_setsockopt, r[1], 6, 0x13, 0x20000000ul, 4ul); *(uint16_t*)0x200001c0 = 2; *(uint16_t*)0x200001c2 = htobe16(0); *(uint8_t*)0x200001c4 = 0xac; *(uint8_t*)0x200001c5 = 0x14; *(uint8_t*)0x200001c6 = 0x14; *(uint8_t*)0x200001c7 = 0xaa; syscall(__NR_connect, r[1], 0x200001c0ul, 0x10ul); syscall(__NR_splice, r[1], 0ul, r[0], 0ul, 6ul, 0ul); return 0; }