// https://syzkaller.appspot.com/bug?id=bff61d87129afb198021fa0a2d4d09706a14ada8 // autogenerated by syzkaller (http://github.com/google/syzkaller) #define _GNU_SOURCE #include #include #include #include static void test(); void loop() { while (1) { test(); } } long r[6]; void test() { memset(r, -1, sizeof(r)); r[0] = syscall(__NR_mmap, 0x20000000ul, 0xfff000ul, 0x3ul, 0x32ul, 0xfffffffffffffffful, 0x0ul); r[1] = syscall(__NR_gettid); r[2] = syscall(__NR_gettid); memcpy((void*)0x20a9cff7, "\x2f\x64\x65\x76\x2f\x6b\x76\x6d\x00", 9); r[4] = syscall(__NR_openat, 0xffffffffffffff9cul, 0x20a9cff7ul, 0x80005ul, 0x0ul); r[5] = syscall(__NR_ioctl, r[4], 0xae01ul, 0x0ul); } int main() { int i; for (i = 0; i < 8; i++) { if (fork() == 0) { loop(); return 0; } } sleep(1000000); return 0; }