// https://syzkaller.appspot.com/bug?id=a33adfbe5191616c06fb664cb99c42003f424816 // autogenerated by syzkaller (http://github.com/google/syzkaller) #define _GNU_SOURCE #include #include #include #include uint64_t r[1] = {0xffffffffffffffff}; void loop() { long res = 0; memcpy((void*)0x20000040, "/net/ether0/1/type", 19); res = syscall(SYS_openat, 0xffffffffffffff9c, 0x20000040, 4, 1, 0); if (res != -1) r[0] = res; syscall(SYS_read, r[0], 0x20000100, 0xb2); } int main() { syscall(SYS_mmap, 0x20000000, 0x1000000, 3, 0x32, -1, 0); loop(); return 0; }