// https://syzkaller.appspot.com/bug?id=6e0a52d3b59113322b2623c087894f54532222bc // 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=*/0x20000000ul, /*len=*/0x1000000ul, /*prot=PROT_WRITE|PROT_READ|PROT_EXEC*/ 7ul, /*flags=MAP_FIXED|MAP_ANONYMOUS|MAP_PRIVATE*/ 0x1012ul, /*fd=*/-1, /*offset=*/0ul); intptr_t res = 0; res = syscall(SYS_socket, /*domain=AF_UNIX*/ 1ul, /*type=SOCK_CLOEXEC|SOCK_NONBLOCK|SOCK_STREAM*/ 0x30000001ul, /*proto=*/5); if (res != -1) r[0] = res; *(uint64_t*)0x200003c0 = 0; *(uint32_t*)0x200003c8 = 0; *(uint64_t*)0x200003d0 = 0; *(uint32_t*)0x200003d8 = 0; *(uint64_t*)0x200003e0 = 0; *(uint32_t*)0x200003e8 = 0; *(uint32_t*)0x200003ec = 0; syscall(SYS_sendmsg, /*fd=*/r[0], /*msg=*/0x200003c0ul, /*f=MSG_OOB*/ 1ul); return 0; }