// https://syzkaller.appspot.com/bug?id=47652d12b7fa6bec237753a2bb044e5db0884f86 // 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=PROT_WRITE|PROT_READ|PROT_EXEC*/ 7, /*flags=MAP_FIXED|MAP_ANONYMOUS|MAP_PRIVATE*/ 0x1012, /*fd=*/-1, /*offset=*/0); intptr_t res = 0; res = syscall(SYS_socket, /*domain=AF_UNIX*/ 1, /*type=SOCK_STREAM*/ 1, /*proto=*/0); if (res != -1) r[0] = res; syscall(SYS_sendto, /*fd=*/(intptr_t)r[0], /*buf=*/0, /*len=*/0, /*f=MSG_NOSIGNAL|MSG_EOF|MSG_DONTWAIT|MSG_EOR|MSG_DONTROUTE|MSG_OOB*/ 0x2018d, /*addr=*/0, /*addrlen=*/0); return 0; }