// https://syzkaller.appspot.com/bug?id=c71f0063fe391274aeabe7e5199861ef38b1b58d // autogenerated by syzkaller (https://github.com/google/syzkaller) #define _GNU_SOURCE #include #include #include #include #include #include #include #include #ifndef __NR_seccomp #define __NR_seccomp 317 #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); *(uint16_t*)0x20000100 = 2; *(uint64_t*)0x20000108 = 0x200001c0; *(uint16_t*)0x200001c0 = 0x7c; *(uint8_t*)0x200001c2 = 0; *(uint8_t*)0x200001c3 = 0; *(uint32_t*)0x200001c4 = 0; *(uint16_t*)0x200001c8 = 0x16; *(uint8_t*)0x200001ca = 0; *(uint8_t*)0x200001cb = 0; *(uint32_t*)0x200001cc = 0; syscall(__NR_seccomp, 1ul, 0ul, 0x20000100ul); return 0; }