// https://syzkaller.appspot.com/bug?id=048f650e99696f881872a285cef0e3b9bd4f4e25 // 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, 0); if (res != -1) r[0] = res; memcpy((void*)0x20000000, "rack\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000" "\000\000\000\000\000\000\000\000\000\000\000\000", 32); *(uint32_t*)0x20000020 = 0; syscall(SYS_setsockopt, r[0], 6, 0x2000, 0x20000000ul, 0x24ul); *(uint8_t*)0x20000400 = 0x10; *(uint8_t*)0x20000401 = 2; *(uint16_t*)0x20000402 = htobe16(0x4e21); *(uint32_t*)0x20000404 = htobe32(-1); *(uint8_t*)0x20000408 = 0; *(uint8_t*)0x20000409 = 0; *(uint8_t*)0x2000040a = 0; *(uint8_t*)0x2000040b = 0; *(uint8_t*)0x2000040c = 0; *(uint8_t*)0x2000040d = 0; *(uint8_t*)0x2000040e = 0; *(uint8_t*)0x2000040f = 0; syscall(SYS_sendto, r[0], 0ul, 0ul, 0ul, 0x20000400ul, 0x10ul); *(uint8_t*)0x20000040 = 0x10; *(uint8_t*)0x20000041 = 2; *(uint16_t*)0x20000042 = htobe16(0x4e22); *(uint8_t*)0x20000044 = 0xac; *(uint8_t*)0x20000045 = 0x14; *(uint8_t*)0x20000046 = 0; *(uint8_t*)0x20000047 = 0xaa; *(uint8_t*)0x20000048 = 0; *(uint8_t*)0x20000049 = 0; *(uint8_t*)0x2000004a = 0; *(uint8_t*)0x2000004b = 0; *(uint8_t*)0x2000004c = 0; *(uint8_t*)0x2000004d = 0; *(uint8_t*)0x2000004e = 0; *(uint8_t*)0x2000004f = 0; syscall(SYS_sendto, r[0], 0ul, 0ul, 5ul, 0x20000040ul, 0x10ul); syscall(SYS_sendto, r[0], 0ul, 0ul, 0x100ul, 0ul, 0ul); return 0; }