// https://syzkaller.appspot.com/bug?id=77e2cfee3bc0fdd3bcaf05ea83a9c26a59ddbf6c // autogenerated by syzkaller (http://github.com/google/syzkaller) #define _GNU_SOURCE #include #include #include #include #include uint64_t r[1] = {0xffffffffffffffff}; void loop() { long res; memcpy((void*)0x200001c0, "/dev/infiniband/rdma_cm", 24); res = syscall(__NR_openat, 0xffffffffffffff9c, 0x200001c0, 2, 0); if (res != -1) r[0] = res; memcpy((void*)0x20000040, "\x00\x00\x00\x00\x18\x00\x00\xfa\x00\x00\x00\x00\x00\x00\x00\x00", 16); *(uint64_t*)0x20000050 = r[0]; memcpy((void*)0x20000058, "\x06\x01\x00\xd7\x15\x3c\x63\x06\xb1\x3b\x76\x65" "\xdb\x0d\xf2\x00\x00\x00\x00\x00", 20); syscall(__NR_write, r[0], 0x20000040, 0x2c); } int main() { syscall(__NR_mmap, 0x20000000, 0x1000000, 3, 0x32, -1, 0); loop(); return 0; }