// https://syzkaller.appspot.com/bug?id=a9dce514eeddaa78ca8e04676c19097939db1fc5 // autogenerated by syzkaller (https://github.com/google/syzkaller) #define _GNU_SOURCE #include #include #include #include #include #include #include #include uint64_t r[1] = {0xffffffffffffffff}; int main(void) { syscall(__NR_mmap, 0x20000000, 0x1000000, 3, 0x32, -1, 0); long res = 0; res = syscall(__NR_socket, 0x10, 3, 0x10); if (res != -1) r[0] = res; *(uint64_t*)0x20000100 = 0x20000040; *(uint16_t*)0x20000040 = 0x10; *(uint16_t*)0x20000042 = 0x4000; *(uint32_t*)0x20000044 = 0; *(uint32_t*)0x20000048 = 0; *(uint32_t*)0x20000108 = 0xc; *(uint64_t*)0x20000110 = 0x20000080; *(uint64_t*)0x20000080 = 0x200002c0; *(uint32_t*)0x200002c0 = 0x2c; *(uint16_t*)0x200002c4 = 0x29; *(uint16_t*)0x200002c6 = 1; *(uint32_t*)0x200002c8 = 0; *(uint32_t*)0x200002cc = 0; *(uint8_t*)0x200002d0 = 1; *(uint8_t*)0x200002d1 = 0; *(uint16_t*)0x200002d2 = 0; *(uint16_t*)0x200002d4 = 0x18; *(uint16_t*)0x200002d6 = 0; *(uint16_t*)0x200002d8 = 0x4101; *(uint16_t*)0x200002da = 0; *(uint8_t*)0x200002dc = 0; *(uint8_t*)0x200002dd = 0; *(uint8_t*)0x200002de = 0; *(uint8_t*)0x200002df = 0x17; *(uint8_t*)0x200002e0 = 0; *(uint8_t*)0x200002e1 = 0; *(uint8_t*)0x200002e2 = 0; *(uint8_t*)0x200002e3 = 0; *(uint8_t*)0x200002e4 = 0; *(uint8_t*)0x200002e5 = 0; *(uint8_t*)0x200002e6 = -1; *(uint8_t*)0x200002e7 = -1; *(uint8_t*)0x200002e8 = 0xac; *(uint8_t*)0x200002e9 = 0x14; *(uint8_t*)0x200002ea = 0x14; *(uint8_t*)0x200002eb = 0xbb; *(uint64_t*)0x20000088 = 0x2c; *(uint64_t*)0x20000118 = 1; *(uint64_t*)0x20000120 = 0; *(uint64_t*)0x20000128 = 0; *(uint32_t*)0x20000130 = 0; syscall(__NR_sendmsg, r[0], 0x20000100, 0); return 0; }