// 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*)0x20000040, "/dev/infiniband/rdma_cm", 24); res = syscall(__NR_openat, 0xffffffffffffff9c, 0x20000040, 2, 0); if (res != -1) r[0] = res; memcpy((void*)0x20000100, "\x00\x00\x00\x00\x18\x00\x00\xfa\x00\x00\x00\x00\x00\x00\x00\x00", 16); *(uint64_t*)0x20000110 = r[0]; memcpy((void*)0x20000118, "\x3f\x01\x00\x00\x00\x00\x00\x00\xcc\xf0\x94\x27" "\xde\x7b\xde\x90\x3a\x9e\xd2\xda\x0d\xd8\x54\x7d" "\xf8\x34\x9c\x38\xdb\x23\x20\xdf\x7e\xd9\xeb\x9f" "\x61\xc9\xb2\xd8\xe3\x24\xd4\x50\x82\x2b", 46); syscall(__NR_write, r[0], 0x20000100, 0x46); } int main() { syscall(__NR_mmap, 0x20000000, 0x1000000, 3, 0x32, -1, 0); loop(); return 0; }