// https://syzkaller.appspot.com/bug?id=db3d758b925c38d8315465d3854168e2c8d16dcc // autogenerated by syzkaller (https://github.com/google/syzkaller) #define _GNU_SOURCE #include #include #include #include #include #include #include #include uint64_t r[3] = {0xffffffffffffffff, 0xffffffffffffffff, 0xffffffffffffffff}; int main(void) { syscall(__NR_mmap, 0x20000000, 0x1000000, 3, 0x32, -1, 0); long res = 0; syscall(__NR_socketpair, 1, 5, 0, 0); memcpy((void*)0x200002c0, "./bus\x00", 6); res = syscall(__NR_creat, 0x200002c0, 0); if (res != -1) r[0] = res; syscall(__NR_ftruncate, r[0], 0x8200); memcpy((void*)0x20000040, "./bus\x00", 6); res = syscall(__NR_open, 0x20000040, 0x141042, 0); if (res != -1) r[1] = res; syscall(__NR_mmap, 0x20001000, 0xa000, 0x800002, 0x11, r[1], 0); memcpy((void*)0x20000000, "/dev/full\x00", 10); res = syscall(__NR_openat, 0xffffffffffffff9c, 0x20000000, 0, 0); if (res != -1) r[2] = res; syscall(__NR_pread64, r[2], 0x20002640, 0xfffffede, 0); return 0; }