// 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*)0x20000180, "/dev/infiniband/rdma_cm", 24); res = syscall(__NR_openat, 0xffffffffffffff9c, 0x20000180, 2, 0); if (res != -1) r[0] = res; *(uint32_t*)0x20000c80 = 0; *(uint16_t*)0x20000c84 = 0x18; *(uint16_t*)0x20000c86 = 0xfa00; *(uint64_t*)0x20000c88 = 1; *(uint64_t*)0x20000c90 = 0x20000c40; *(uint16_t*)0x20000c98 = 0x13f; *(uint8_t*)0x20000c9a = 3; *(uint8_t*)0x20000c9b = 0; *(uint8_t*)0x20000c9c = 0; *(uint8_t*)0x20000c9d = 0; *(uint8_t*)0x20000c9e = 0; *(uint8_t*)0x20000c9f = 0; res = syscall(__NR_write, r[0], 0x20000c80, 0x20); if (res != -1) r[1] = *(uint32_t*)0x20000c40; *(uint32_t*)0x20000cc0 = 0xb; *(uint16_t*)0x20000cc4 = 0x10; *(uint16_t*)0x20000cc6 = 0xfa00; *(uint64_t*)0x20000cc8 = 0x20000000; *(uint32_t*)0x20000cd0 = r[1]; *(uint32_t*)0x20000cd4 = 1; syscall(__NR_write, r[0], 0x20000cc0, 0x18); } int main() { syscall(__NR_mmap, 0x20000000, 0x1000000, 3, 0x32, -1, 0); loop(); return 0; }