// 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*)0x20003f80 = 0x1e; *(uint32_t*)0x20003f84 = 0; *(uint32_t*)0x20003f88 = 7; *(uint32_t*)0x20003f8c = 0x80; *(uint32_t*)0x20003f90 = 0; *(uint32_t*)0x20003f94 = -1; *(uint32_t*)0x20003f98 = 0; memset((void*)0x20003f9c, 0, 16); *(uint32_t*)0x20003fac = 0; *(uint32_t*)0x20003fb0 = -1; *(uint32_t*)0x20003fb4 = 0; *(uint32_t*)0x20003fb8 = 0; *(uint32_t*)0x20003fbc = 0; *(uint64_t*)0x20003fc0 = 0; res = syscall(__NR_bpf, 0ul, 0x20003f80ul, 0x48ul); if (res != -1) r[0] = res; *(uint32_t*)0x20000280 = r[0]; *(uint64_t*)0x20000288 = 0; *(uint64_t*)0x20000290 = 0; *(uint64_t*)0x20000298 = 0; syscall(__NR_bpf, 4ul, 0x20000280ul, 0x20ul); return 0; }