// https://syzkaller.appspot.com/bug?id=73ee27317454ef7fd8526b38373e20c2d82f76a3 // autogenerated by syzkaller (https://github.com/google/syzkaller) #define _GNU_SOURCE #include #include #include #include #include #include #include #include #include #include #define __syscall syscall uint64_t r[1] = {0xffffffffffffffff}; int main(void) { syscall(SYS_mmap, 0x20000000, 0x1000000, 3, 0x1012, -1, 0, 0); long res = 0; memcpy((void*)0x20000040, "\x82\x02\x2e\x2f\xe3\xfc\x7f\xdf\xdf\x66\x52\x41\x8c\xa4\x69\x6c\x65" "\x30\x00", 19); syscall(SYS_connect, -1, 0x20000040, 1); memcpy((void*)0x20000300, "./bus\x00", 6); syscall(SYS_mknod, 0x20000300, 0x2000, 0x453f); memcpy((void*)0x20000100, "./bus\x00", 6); res = syscall(SYS_open, 0x20000100, 0x10491, 0); if (res != -1) r[0] = res; *(uint32_t*)0x20000040 = 3; syscall(SYS_ioctl, r[0], 0x80085761, 0x20000040); return 0; }