// https://syzkaller.appspot.com/bug?id=ab07379783d7f1181b88860e07ee624a9e9c728a // 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=*/2ul, /*type=*/1ul, /*proto=*/0); if (res != -1) r[0] = res; *(uint64_t*)0x20000000 = 0; *(uint64_t*)0x20000008 = 0; *(uint64_t*)0x20000010 = 0; *(uint32_t*)0x20000018 = 0xb; *(uint32_t*)0x2000001c = 0; *(uint32_t*)0x20000020 = 0; *(uint32_t*)0x20000024 = 0x1b; *(uint32_t*)0x20000028 = 0xfffffee1; *(uint32_t*)0x2000002c = 0; *(uint8_t*)0x20000030 = 0; *(uint8_t*)0x20000031 = 5; memcpy((void*)0x20000032, "\x6e\x0f\xee\x7f\x00\x00\x00\x00", 8); syscall(SYS_setsockopt, /*fd=*/r[0], /*level=*/6, /*optname=*/0x27, /*optval=*/0x20000000ul, /*optlen=*/0x40ul); return 0; }