// https://syzkaller.appspot.com/bug?id=21bf6288003f75c59f32b4ed0e2bc4a00e25cdbd // autogenerated by syzkaller (https://github.com/google/syzkaller) #define _GNU_SOURCE #include #include #include #include #include #include #include #include #include #include #define __syscall syscall int main(void) { syscall(SYS_mmap, 0x20000000ul, 0x1000000ul, 3ul, 0x1012ul, -1, 0ul, 0ul); memcpy((void*)0x20000080, "./bus\000", 6); syscall(SYS_mknod, 0x20000080ul, 0x2000ul, 0x86338); /* major = 99, minor = 2104 */ memcpy((void*)0x20000200, "./bus\000", 6); syscall(SYS_open, 0x20000200ul, 0ul, 0ul); return 0; }