// https://syzkaller.appspot.com/bug?id=01960f604c9e139580b9b2af9103a3f2da7eac4c // 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[1] = {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; *(uint32_t*)0x20000200 = 0x1e; *(uint32_t*)0x20000204 = 0; *(uint32_t*)0x20000208 = 0xffff; *(uint32_t*)0x2000020c = 0x960c; *(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[0] = res; *(uint32_t*)0x20000140 = r[0]; *(uint64_t*)0x20000148 = 0; *(uint64_t*)0x20000150 = 0; *(uint64_t*)0x20000158 = 0; syscall(__NR_bpf, 4ul, 0x20000140ul, 0x20ul); return 0; }