// https://syzkaller.appspot.com/bug?id=4e947674d10b0fb0cb94d4d723989cee439a71d6 // autogenerated by syzkaller (https://github.com/google/syzkaller) #define _GNU_SOURCE #include #include #include #include #include #include #include #include uint64_t r[3] = {0xffffffffffffffff, 0xffffffffffffffff, 0xffffffffffffffff}; int main(void) { syscall(__NR_mmap, 0x20000000, 0x1000000, 3, 0x32, -1, 0); long res = 0; res = syscall(__NR_socket, 0x10, 3, 6); if (res != -1) r[0] = res; *(uint64_t*)0x200000c0 = 0x20000480; *(uint16_t*)0x20000480 = 0x10; *(uint16_t*)0x20000482 = 0; *(uint32_t*)0x20000484 = 0; *(uint32_t*)0x20000488 = 0; *(uint32_t*)0x200000c8 = 0xc; *(uint64_t*)0x200000d0 = 0x20000180; *(uint64_t*)0x20000180 = 0x20000a00; *(uint32_t*)0x20000a00 = 0xb8; *(uint16_t*)0x20000a04 = 0x19; *(uint16_t*)0x20000a06 = 1; *(uint32_t*)0x20000a08 = 0; *(uint32_t*)0x20000a0c = 0; *(uint8_t*)0x20000a10 = 0xfe; *(uint8_t*)0x20000a11 = 0x80; *(uint8_t*)0x20000a12 = 0; *(uint8_t*)0x20000a13 = 0; *(uint8_t*)0x20000a14 = 0; *(uint8_t*)0x20000a15 = 0; *(uint8_t*)0x20000a16 = 0; *(uint8_t*)0x20000a17 = 0; *(uint8_t*)0x20000a18 = 0; *(uint8_t*)0x20000a19 = 0; *(uint8_t*)0x20000a1a = 0; *(uint8_t*)0x20000a1b = 0; *(uint8_t*)0x20000a1c = 0; *(uint8_t*)0x20000a1d = 0; *(uint8_t*)0x20000a1e = 0; *(uint8_t*)0x20000a1f = 0xbb; *(uint32_t*)0x20000a20 = htobe32(0); *(uint16_t*)0x20000a30 = htobe16(0); *(uint16_t*)0x20000a32 = htobe16(0); *(uint16_t*)0x20000a34 = htobe16(0); *(uint16_t*)0x20000a36 = htobe16(0); *(uint16_t*)0x20000a38 = 2; *(uint8_t*)0x20000a3a = 0; *(uint8_t*)0x20000a3b = 0; *(uint8_t*)0x20000a3c = 0; *(uint32_t*)0x20000a40 = 0; *(uint32_t*)0x20000a44 = 0; *(uint64_t*)0x20000a48 = 0; *(uint64_t*)0x20000a50 = 0; *(uint64_t*)0x20000a58 = 0; *(uint64_t*)0x20000a60 = 0; *(uint64_t*)0x20000a68 = 0; *(uint64_t*)0x20000a70 = 0; *(uint64_t*)0x20000a78 = 0; *(uint64_t*)0x20000a80 = 0; *(uint64_t*)0x20000a88 = 0; *(uint64_t*)0x20000a90 = 0; *(uint64_t*)0x20000a98 = 0; *(uint64_t*)0x20000aa0 = 0; *(uint32_t*)0x20000aa8 = 0; *(uint32_t*)0x20000aac = 0; *(uint8_t*)0x20000ab0 = 0; *(uint8_t*)0x20000ab1 = 0; *(uint8_t*)0x20000ab2 = 0; *(uint8_t*)0x20000ab3 = 0; *(uint64_t*)0x20000188 = 0xb8; *(uint64_t*)0x200000d8 = 8; *(uint64_t*)0x200000e0 = 0; *(uint64_t*)0x200000e8 = 0; *(uint32_t*)0x200000f0 = 0; syscall(__NR_sendmsg, r[0], 0x200000c0, 0); res = syscall(__NR_socket, 2, 0x200000002, 0x88); if (res != -1) r[1] = res; *(uint16_t*)0x20000340 = 2; *(uint16_t*)0x20000342 = htobe16(0x4e21); *(uint32_t*)0x20000344 = htobe32(0); *(uint8_t*)0x20000348 = 0; *(uint8_t*)0x20000349 = 0; *(uint8_t*)0x2000034a = 0; *(uint8_t*)0x2000034b = 0; *(uint8_t*)0x2000034c = 0; *(uint8_t*)0x2000034d = 0; *(uint8_t*)0x2000034e = 0; *(uint8_t*)0x2000034f = 0; syscall(__NR_bind, r[1], 0x20000340, 0x10); res = syscall(__NR_dup2, r[1], r[1]); if (res != -1) r[2] = res; *(uint16_t*)0x20000100 = 2; *(uint16_t*)0x20000102 = htobe16(0x4e21); *(uint32_t*)0x20000104 = htobe32(0); *(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(__NR_sendto, r[2], 0x20000140, 0, 0x8000, 0x20000100, 0x10); *(uint16_t*)0x20000280 = 2; *(uint16_t*)0x20000282 = htobe16(0); *(uint32_t*)0x20000284 = htobe32(0); *(uint8_t*)0x20000288 = 0; *(uint8_t*)0x20000289 = 0; *(uint8_t*)0x2000028a = 0; *(uint8_t*)0x2000028b = 0; *(uint8_t*)0x2000028c = 0; *(uint8_t*)0x2000028d = 0; *(uint8_t*)0x2000028e = 0; *(uint8_t*)0x2000028f = 0; syscall(__NR_sendto, r[2], 0x20000380, 0, 0, 0x20000280, 0x10); return 0; }