// 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*)0x20009000 = 0x1e; *(uint32_t*)0x20009004 = 0; *(uint32_t*)0x20009008 = 9; *(uint32_t*)0x2000900c = 8; *(uint32_t*)0x20009010 = 0; *(uint32_t*)0x20009014 = 1; *(uint32_t*)0x20009018 = 0; memset((void*)0x2000901c, 0, 16); *(uint32_t*)0x2000902c = 0; *(uint32_t*)0x20009030 = -1; *(uint32_t*)0x20009034 = 0; *(uint32_t*)0x20009038 = 0; *(uint32_t*)0x2000903c = 0; res = syscall(__NR_bpf, 0ul, 0x20009000ul, 0x40ul); if (res != -1) r[0] = res; *(uint32_t*)0x200000c0 = r[0]; *(uint64_t*)0x200000c8 = 0; *(uint64_t*)0x200000d0 = 0; *(uint64_t*)0x200000d8 = 0; syscall(__NR_bpf, 3ul, 0x200000c0ul, 0x20ul); return 0; }