// https://syzkaller.appspot.com/bug?id=3126a93b81d21dca4c1af2d018696342a9df7b82 // autogenerated by syzkaller (https://github.com/google/syzkaller) #define _GNU_SOURCE #include #include #include #include #include #include #include #include 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); syscall(__NR_madvise, 0x20000000ul, 0x400000ul, 0xcul); memcpy((void*)0x20000240, "/sys/kernel/mm/ksm/run\000", 23); syscall(__NR_openat, 0xffffffffffffff9cul, 0x20000240ul, 1ul, 0ul); syscall(__NR_mremap, 0x201c4000ul, 0x4000ul, 0x1000ul, 3ul, 0x202ef000ul); return 0; }