// https://syzkaller.appspot.com/bug?id=3de49dbb8c54d63761aa8f010f963dede43c17e7 // autogenerated by syzkaller (http://github.com/google/syzkaller) #define _GNU_SOURCE #include #include #include #include #include uint64_t r[2] = {0xffffffffffffffff, 0xffffffff}; void loop() { long res; memcpy((void*)0x200000c0, "/dev/infiniband/rdma_cm", 24); res = syscall(__NR_openat, 0xffffffffffffff9c, 0x200000c0, 2, 0); if (res != -1) r[0] = res; *(uint32_t*)0x20000f00 = 0; *(uint16_t*)0x20000f04 = 0x18; *(uint16_t*)0x20000f06 = 0xfa00; *(uint64_t*)0x20000f08 = 2; *(uint64_t*)0x20000f10 = 0x20000ec0; *(uint16_t*)0x20000f18 = 0x111; *(uint8_t*)0x20000f1a = 0xa; *(uint8_t*)0x20000f1b = 0; *(uint8_t*)0x20000f1c = 0; *(uint8_t*)0x20000f1d = 0; *(uint8_t*)0x20000f1e = 0; *(uint8_t*)0x20000f1f = 0; res = syscall(__NR_write, r[0], 0x20000f00, 0x20); if (res != -1) r[1] = *(uint32_t*)0x20000ec0; *(uint32_t*)0x20000f40 = 0xb; *(uint16_t*)0x20000f44 = 0x10; *(uint16_t*)0x20000f46 = 0xfa00; *(uint64_t*)0x20000f48 = 0x20000280; *(uint32_t*)0x20000f50 = r[1]; *(uint32_t*)0x20000f54 = 4; syscall(__NR_write, r[0], 0x20000f40, 0x18); } int main() { syscall(__NR_mmap, 0x20000000, 0x1000000, 3, 0x32, -1, 0); loop(); return 0; }