// https://syzkaller.appspot.com/bug?id=0c8d94a2d241c651ac432af3ac53d07c80cd3749 // autogenerated by syzkaller (https://github.com/google/syzkaller) #define _GNU_SOURCE #include #include #include #include #include #include #include #include #ifndef __NR_madvise #define __NR_madvise 233 #endif #ifndef __NR_mmap #define __NR_mmap 222 #endif #ifndef __NR_mremap #define __NR_mremap 216 #endif int main(void) { syscall(__NR_mmap, /*addr=*/0x1ffff000ul, /*len=*/0x1000ul, /*prot=*/0ul, /*flags=*/0x32ul, /*fd=*/-1, /*offset=*/0ul); syscall(__NR_mmap, /*addr=*/0x20000000ul, /*len=*/0x1000000ul, /*prot=*/7ul, /*flags=*/0x32ul, /*fd=*/-1, /*offset=*/0ul); syscall(__NR_mmap, /*addr=*/0x21000000ul, /*len=*/0x1000ul, /*prot=*/0ul, /*flags=*/0x32ul, /*fd=*/-1, /*offset=*/0ul); syscall(__NR_madvise, /*addr=*/0x20a93000ul, /*len=*/0x4000ul, /*advice=*/0xeul); syscall(__NR_mremap, /*addr=*/0x20a96000ul, /*len=*/0x1000ul, /*newlen=*/0x800000ul, /*flags=*/3ul, /*newaddr=*/0x20130000ul); syscall(__NR_madvise, /*addr=*/0x20495000ul, /*len=*/0x400000ul, /*advice=*/0x64ul); return 0; }