// https://syzkaller.appspot.com/bug?id=71683c24fcad4b9a6793e4fdf7df0d2553af5d19 // 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 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); *(uint32_t*)0x20000180 = 5; *(uint32_t*)0x20000184 = 0x20000; *(uint32_t*)0x20000188 = 0xce30; *(uint32_t*)0x2000018c = 0x7fff; *(uint32_t*)0x20000190 = 0; *(uint32_t*)0x20000194 = -1; *(uint32_t*)0x20000198 = 0; *(uint8_t*)0x2000019c = 0; *(uint8_t*)0x2000019d = 0; *(uint8_t*)0x2000019e = 0; *(uint8_t*)0x2000019f = 0; *(uint8_t*)0x200001a0 = 0; *(uint8_t*)0x200001a1 = 0; *(uint8_t*)0x200001a2 = 0; *(uint8_t*)0x200001a3 = 0; *(uint8_t*)0x200001a4 = 0; *(uint8_t*)0x200001a5 = 0; *(uint8_t*)0x200001a6 = 0; *(uint8_t*)0x200001a7 = 0; *(uint8_t*)0x200001a8 = 0; *(uint8_t*)0x200001a9 = 0; *(uint8_t*)0x200001aa = 0; *(uint8_t*)0x200001ab = 0; *(uint32_t*)0x200001ac = 0; *(uint32_t*)0x200001b0 = -1; *(uint32_t*)0x200001b4 = 4; *(uint32_t*)0x200001b8 = 5; *(uint32_t*)0x200001bc = 0xfffffffc; syscall(__NR_bpf, 0ul, 0x20000180ul, 0x1dul); return 0; }