// https://syzkaller.appspot.com/bug?id=2668718853a3764ffe6976db2451c75e34780d67 // autogenerated by syzkaller (https://github.com/google/syzkaller) #define _GNU_SOURCE #include #include #include #include #include #include #include #include uint64_t r[1] = {0xffffffffffffffff}; int main(void) { syscall(__NR_mmap, 0x20000000, 0x1000000, 3, 0x32, -1, 0); long res = 0; res = syscall(__NR_socket, 0x10, 3, 0); if (res != -1) r[0] = res; *(uint64_t*)0x20000140 = 0x20000040; *(uint16_t*)0x20000040 = 0x10; *(uint16_t*)0x20000042 = 0; *(uint32_t*)0x20000044 = 0; *(uint32_t*)0x20000048 = 0; *(uint32_t*)0x20000148 = 0xc; *(uint64_t*)0x20000150 = 0x20000180; *(uint64_t*)0x20000180 = 0x20000000; memcpy((void*)0x20000000, "\x28\x00\x00\x00\x2d\x00\x01\x08\x00\x00\x5b\xef" "\x1a\xba\xe7\x00\x00\x14\xa4\xd2\x01\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x0d\xf7\x24\x86" "\xf5\x39\x00\x00\x00", 41); *(uint64_t*)0x20000188 = 1; *(uint64_t*)0x20000158 = 1; *(uint64_t*)0x20000160 = 0; *(uint64_t*)0x20000168 = 0; *(uint32_t*)0x20000170 = 0; syscall(__NR_sendmsg, r[0], 0x20000140, 0); return 0; }