// 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_mbind #define __NR_mbind 235 #endif #ifndef __NR_mmap #define __NR_mmap 222 #endif #ifndef __NR_set_mempolicy_home_node #define __NR_set_mempolicy_home_node 450 #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); *(uint64_t*)0x20000000 = 0x100000001; syscall(__NR_mbind, /*addr=*/0x2043a000ul, /*len=*/0x2000ul, /*mode=*/2ul, /*nodemask=*/0x20000000ul, /*maxnode=*/4ul, /*flags=*/0ul); syscall(__NR_set_mempolicy_home_node, /*addr=*/0x20439000ul, /*len=*/0x2000ul, /*home_node=*/0ul, /*flags=*/0ul); return 0; }