// https://syzkaller.appspot.com/bug?id=467190ea2919f005b2faaad13ea0baabbf4064cc // 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_mbind #define __NR_mbind 235 #endif #ifndef __NR_mmap #define __NR_mmap 222 #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); syscall(__NR_madvise, 0x20a93000ul, 0x4000ul, 0x80000000eul); *(uint64_t*)0x20000000 = 1; syscall(__NR_mbind, 0x20ffd000ul, 0x3000ul, 2ul, 0x20000000ul, 6ul, 0ul); syscall(__NR_mbind, 0x20400000ul, 0xc00000ul, 0ul, 0ul, 0ul, 0ul); return 0; }