// https://syzkaller.appspot.com/bug?id=0cebb51a059e6a7e259573cc2dd635db8dffcb80 // 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, 0x1cul, 5ul, 0x84); if (res != -1) r[0] = res; *(uint32_t*)0x20000200 = 0; *(uint32_t*)0x20000204 = 0; *(uint32_t*)0x20000208 = 0xfffffffb; *(uint32_t*)0x2000020c = 0; syscall(SYS_setsockopt, r[0], 0x84, 1, 0x20000200ul, 0x3f6ul); memcpy((void*)0x20000040, "\x11", 1); *(uint8_t*)0x20000100 = 0x10; *(uint8_t*)0x20000101 = 2; *(uint16_t*)0x20000102 = htobe16(0x4e21); *(uint8_t*)0x20000104 = 0xac; *(uint8_t*)0x20000105 = 0x14; *(uint8_t*)0x20000106 = 0; *(uint8_t*)0x20000107 = 0xbb; *(uint8_t*)0x20000108 = 0; *(uint8_t*)0x20000109 = 0; *(uint8_t*)0x2000010a = 0; *(uint8_t*)0x2000010b = 0; *(uint8_t*)0x2000010c = 0; *(uint8_t*)0x2000010d = 0; *(uint8_t*)0x2000010e = 0; *(uint8_t*)0x2000010f = 0; syscall(SYS_sendto, r[0], 0x20000040ul, 1ul, 0x104ul, 0x20000100ul, 0x10ul); return 0; }