// https://syzkaller.appspot.com/bug?id=15d3fd9d57b465d1cd5d2c5c321888bc5996ee5d // 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, /*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_mmap, /*addr=*/0x20000000ul, /*len=*/0xff5000ul, /*prot=*/0ul, /*flags=*/0x200000005c832ul, /*fd=*/-1, /*offset=*/0ul); syscall(__NR_mprotect, /*addr=*/0x20000000ul, /*len=*/0x800000ul, /*prot=*/7ul); *(uint64_t*)0x20000000 = 0x40000000009; *(uint64_t*)0x20000080 = 0x272; syscall(__NR_migrate_pages, /*pid=*/0, /*maxnode=*/4ul, /*old=*/0x20000000ul, /*new=*/0x20000080ul); return 0; }