// https://syzkaller.appspot.com/bug?id=07c6f52106cddbe356cc2b2f3664a1c51cc0dadf // 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, 0x20000000ul, 0x1000000ul, 3ul, 0x1012ul, -1, 0ul); intptr_t res = 0; res = syscall(SYS_socket, 2ul, 1ul, 0x84ul); if (res != -1) r[0] = res; *(uint64_t*)0x200017c0 = 0x20000080; *(uint8_t*)0x20000080 = 0x10; *(uint8_t*)0x20000081 = 2; *(uint16_t*)0x20000082 = htobe16(0x4e20); *(uint8_t*)0x20000084 = 0xac; *(uint8_t*)0x20000085 = 0x14; *(uint8_t*)0x20000086 = 0; *(uint8_t*)0x20000087 = 0xaa; *(uint8_t*)0x20000088 = 0; *(uint8_t*)0x20000089 = 0; *(uint8_t*)0x2000008a = 0; *(uint8_t*)0x2000008b = 0; *(uint8_t*)0x2000008c = 0; *(uint8_t*)0x2000008d = 0; *(uint8_t*)0x2000008e = 0; *(uint8_t*)0x2000008f = 0; *(uint32_t*)0x200017c8 = 0x10; *(uint64_t*)0x200017d0 = 0x200016c0; *(uint64_t*)0x200016c0 = 0x200000c0; memcpy((void*)0x200000c0, "\x81", 1); *(uint64_t*)0x200016c8 = 1; *(uint32_t*)0x200017d8 = 1; *(uint64_t*)0x200017e0 = 0; *(uint32_t*)0x200017e8 = 0; *(uint32_t*)0x200017ec = 0; syscall(SYS_sendmsg, r[0], 0x200017c0ul, 0ul); return 0; }