// 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*)0x2014f000 = 0; *(uint32_t*)0x2014f008 = 0; *(uint64_t*)0x2014f010 = 0x200bfff0; *(uint64_t*)0x200bfff0 = 0x20006440; *(uint32_t*)0x20006440 = 0xb8; *(uint16_t*)0x20006444 = 0x19; *(uint16_t*)0x20006446 = 1; *(uint32_t*)0x20006448 = 0; *(uint32_t*)0x2000644c = 0; *(uint8_t*)0x20006450 = -1; *(uint8_t*)0x20006451 = 1; *(uint8_t*)0x20006452 = 0; *(uint8_t*)0x20006453 = 0; *(uint8_t*)0x20006454 = 0; *(uint8_t*)0x20006455 = 0; *(uint8_t*)0x20006456 = 0; *(uint8_t*)0x20006457 = 0; *(uint8_t*)0x20006458 = 0; *(uint8_t*)0x20006459 = 0; *(uint8_t*)0x2000645a = 0; *(uint8_t*)0x2000645b = 0; *(uint8_t*)0x2000645c = 0; *(uint8_t*)0x2000645d = 0; *(uint8_t*)0x2000645e = 0; *(uint8_t*)0x2000645f = 1; *(uint32_t*)0x20006460 = htobe32(0xe0000001); *(uint16_t*)0x20006470 = htobe16(0); *(uint16_t*)0x20006472 = htobe16(0); *(uint16_t*)0x20006474 = htobe16(0); *(uint16_t*)0x20006476 = htobe16(0); *(uint16_t*)0x20006478 = 0xa; *(uint8_t*)0x2000647a = 0; *(uint8_t*)0x2000647b = 0; *(uint8_t*)0x2000647c = 0; *(uint32_t*)0x20006480 = 0; *(uint32_t*)0x20006484 = 0; *(uint64_t*)0x20006488 = 0; *(uint64_t*)0x20006490 = 0; *(uint64_t*)0x20006498 = 0; *(uint64_t*)0x200064a0 = 0; *(uint64_t*)0x200064a8 = 0; *(uint64_t*)0x200064b0 = 0; *(uint64_t*)0x200064b8 = 0; *(uint64_t*)0x200064c0 = 0; *(uint64_t*)0x200064c8 = 0; *(uint64_t*)0x200064d0 = 0; *(uint64_t*)0x200064d8 = 0; *(uint64_t*)0x200064e0 = 0; *(uint32_t*)0x200064e8 = 0; *(uint32_t*)0x200064ec = 0; *(uint8_t*)0x200064f0 = 0; *(uint8_t*)0x200064f1 = 0; *(uint8_t*)0x200064f2 = 0; *(uint8_t*)0x200064f3 = 0; *(uint64_t*)0x200bfff8 = 0xb8; *(uint64_t*)0x2014f018 = 1; *(uint64_t*)0x2014f020 = 0; *(uint64_t*)0x2014f028 = 0; *(uint32_t*)0x2014f030 = 0; syscall(__NR_sendmsg, r[0], 0x2014f000, 0); res = syscall(__NR_socket, 2, 0x200000002, 0x88); if (res != -1) r[1] = res; *(uint16_t*)0x20000000 = 2; *(uint16_t*)0x20000002 = htobe16(0x4e21); *(uint32_t*)0x20000004 = htobe32(0); syscall(__NR_bind, r[1], 0x20000000, 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); syscall(__NR_sendto, r[2], 0, 0, 0x8000, 0x20000100, 0x10); syscall(__NR_sendto, r[1], 0, 0, 0, 0, 0); return 0; }