// https://syzkaller.appspot.com/bug?id=de17cc3f6902e8bf07334a3eb4a7bb30120c9fbb // autogenerated by syzkaller (https://github.com/google/syzkaller) #define _GNU_SOURCE #include #include #include #include #include #include #include #include #ifndef __NR_bpf #define __NR_bpf 321 #endif 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_socket, 2ul, 1ul, 0); if (res != -1) r[0] = res; *(uint16_t*)0x20000000 = 2; *(uint16_t*)0x20000002 = htobe16(0x4e20); *(uint32_t*)0x20000004 = htobe32(0xe0000001); syscall(__NR_bind, r[0], 0x20000000ul, 0x10ul); *(uint16_t*)0x200018c0 = 2; *(uint16_t*)0x200018c2 = htobe16(0x4e20); *(uint32_t*)0x200018c4 = htobe32(0); syscall(__NR_sendto, r[0], 0ul, 0ul, 0x20020094ul, 0x200018c0ul, 0x10ul); memcpy((void*)0x20000880, "tls\000", 4); syscall(__NR_setsockopt, r[0], 6, 0x1f, 0x20000880ul, 4ul); *(uint32_t*)0x20000200 = 0xf; *(uint32_t*)0x20000204 = 4; *(uint32_t*)0x20000208 = 4; *(uint32_t*)0x2000020c = 0x12; *(uint32_t*)0x20000210 = 0; *(uint32_t*)0x20000214 = -1; *(uint32_t*)0x20000218 = 0; memset((void*)0x2000021c, 0, 16); *(uint32_t*)0x2000022c = 0; *(uint32_t*)0x20000230 = -1; *(uint32_t*)0x20000234 = 0; *(uint32_t*)0x20000238 = 0; *(uint32_t*)0x2000023c = 0; *(uint64_t*)0x20000240 = 0; res = syscall(__NR_bpf, 0ul, 0x20000200ul, 0x48ul); if (res != -1) r[1] = res; *(uint32_t*)0x20000280 = r[1]; *(uint64_t*)0x20000288 = 0x20000340; *(uint64_t*)0x20000290 = 0x20000040; *(uint32_t*)0x20000040 = r[0]; *(uint64_t*)0x20000298 = 0; syscall(__NR_bpf, 2ul, 0x20000280ul, 0x20ul); return 0; }