// https://syzkaller.appspot.com/bug?id=d4198208cd864aa9a7fe3bf9b94f9346a79c7d69 // 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*)0x20000000, "/dev/infiniband/rdma_cm", 24); res = syscall(__NR_openat, 0xffffffffffffff9c, 0x20000000, 2, 0); if (res != -1) r[0] = res; *(uint32_t*)0x20004a00 = 0; *(uint16_t*)0x20004a04 = 0x18; *(uint16_t*)0x20004a06 = 0xfa00; *(uint64_t*)0x20004a08 = 1; *(uint64_t*)0x20004a10 = 0x200049c0; *(uint16_t*)0x20004a18 = 0x13f; *(uint8_t*)0x20004a1a = 9; *(uint8_t*)0x20004a1b = 0; *(uint8_t*)0x20004a1c = 0; *(uint8_t*)0x20004a1d = 0; *(uint8_t*)0x20004a1e = 0; *(uint8_t*)0x20004a1f = 0; res = syscall(__NR_write, r[0], 0x20004a00, 0x20); if (res != -1) r[1] = *(uint32_t*)0x200049c0; *(uint32_t*)0x20000040 = 0xb; *(uint16_t*)0x20000044 = 0x10; *(uint16_t*)0x20000046 = 0xfa00; *(uint64_t*)0x20000048 = 0x20000380; *(uint32_t*)0x20000050 = r[1]; *(uint32_t*)0x20000054 = 0; syscall(__NR_write, r[0], 0x20000040, 0x18); } int main() { syscall(__NR_mmap, 0x20000000, 0x1000000, 3, 0x32, -1, 0); loop(); return 0; }