// https://syzkaller.appspot.com/bug?id=038c47c353490e96ed3592dfd723466c8d2f0648 // autogenerated by syzkaller (http://github.com/google/syzkaller) #define _GNU_SOURCE #include #include #include #include #include #include uint64_t r[2] = {0xffffffffffffffff, 0xffffffffffffffff}; void loop() { long res = 0; res = syscall(__NR_socket, 0xa, 0x80002, 0); if (res != -1) r[0] = res; *(uint16_t*)0x20955ff0 = 2; *(uint16_t*)0x20955ff2 = htobe16(0); *(uint32_t*)0x20955ff4 = htobe32(0); *(uint8_t*)0x20955ff8 = 0; *(uint8_t*)0x20955ff9 = 0; *(uint8_t*)0x20955ffa = 0; *(uint8_t*)0x20955ffb = 0; *(uint8_t*)0x20955ffc = 0; *(uint8_t*)0x20955ffd = 0; *(uint8_t*)0x20955ffe = 0; *(uint8_t*)0x20955fff = 0; syscall(__NR_connect, r[0], 0x20955ff0, 0x10); *(uint8_t*)0x20000240 = -1; *(uint8_t*)0x20000241 = 1; *(uint8_t*)0x20000242 = 0; *(uint8_t*)0x20000243 = 0; *(uint8_t*)0x20000244 = 0; *(uint8_t*)0x20000245 = 0; *(uint8_t*)0x20000246 = 0; *(uint8_t*)0x20000247 = 0; *(uint8_t*)0x20000248 = 0; *(uint8_t*)0x20000249 = 0; *(uint8_t*)0x2000024a = 0; *(uint8_t*)0x2000024b = 0; *(uint8_t*)0x2000024c = 0; *(uint8_t*)0x2000024d = 0; *(uint8_t*)0x2000024e = 0; *(uint8_t*)0x2000024f = 1; *(uint32_t*)0x20000250 = 0; syscall(__NR_setsockopt, r[0], 0x29, 0x14, 0x20000240, 0x14); *(uint32_t*)0x20000080 = 2; syscall(__NR_setsockopt, r[0], 0x29, 1, 0x20000080, 4); res = syscall(__NR_socket, 2, 1, 0); if (res != -1) r[1] = res; memcpy((void*)0x20000080, "\x6c\x6f\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00", 16); *(uint16_t*)0x20000090 = 0x101; syscall(__NR_ioctl, r[1], 0x8914, 0x20000080); } int main() { syscall(__NR_mmap, 0x20000000, 0x1000000, 3, 0x32, -1, 0); loop(); return 0; }