// 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_socketpair, /*domain=*/1ul, /*type=SOCK_SEQPACKET*/ 5ul, /*proto=*/0, /*fds=*/0x20000040ul); if (res != -1) r[0] = *(uint32_t*)0x20000040; *(uint64_t*)0x20001a00 = 0; *(uint32_t*)0x20001a08 = 0; *(uint64_t*)0x20001a10 = 0; *(uint64_t*)0x20001a18 = 0; *(uint64_t*)0x20001a20 = 0; *(uint64_t*)0x20001a28 = 0x110; *(uint32_t*)0x20001a30 = 0x180; syscall(SYS_sendmsg, /*fd=*/r[0], /*msg=*/0x20001a00ul, /*f=MSG_DONTWAIT|MSG_OOB*/ 0x81ul); return 0; }