// https://syzkaller.appspot.com/bug?id=a9e90e96743f3e20b4a66d9d0d4c08c57ea8cc7f // autogenerated by syzkaller (https://github.com/google/syzkaller) #define _GNU_SOURCE #include #include #include #include #include #include #include #include #include #include uint64_t r[1] = {0xffffffffffffffff}; int main(void) { syscall(SYS_mmap, /*addr=*/0x10000000, /*len=*/0x1000000, /*prot=*/7, /*flags=*/0x1012, /*fd=*/-1, /*offset=*/0); intptr_t res = 0; res = syscall(SYS_socket, /*domain=*/0x26, /*type=*/2, /*proto=*/0); if (res != -1) r[0] = res; syscall(SYS_shutdown, /*fd=*/(intptr_t)r[0], /*how=*/0); return 0; }