// https://syzkaller.appspot.com/bug?id=0084fd109a7a10011e183a357715c91cff2cacb0 // autogenerated by syzkaller (https://github.com/google/syzkaller) #define _GNU_SOURCE #include #include #include #include #include #include #include #include #ifndef __NR_get_mempolicy #define __NR_get_mempolicy 275 #endif #ifndef __NR_mbind #define __NR_mbind 274 #endif #ifndef __NR_mmap #define __NR_mmap 192 #endif #undef __NR_mmap #define __NR_mmap __NR_mmap2 int main(void) { syscall(__NR_mmap, 0x20000000, 0x1000000, 3, 0x32, -1, 0); *(uint64_t*)0x20000000 = 0xbf207ff; syscall(__NR_mbind, 0x20012000, 0xc00000, 2, 0x20000000, 0x100, 0); syscall(__NR_get_mempolicy, 0, 0x203e8000, 0x401, 0x20336000, 2); return 0; }