// https://syzkaller.appspot.com/bug?id=566325c29e627765e4f5d223163e5c15191f0f46 // autogenerated by syzkaller (http://github.com/google/syzkaller) #define _GNU_SOURCE #include #include #include #include #include uint64_t r[1] = {0xffffffffffffffff}; void loop() { long res = 0; res = syscall(__NR_socket, 0xa, 2, 0); if (res != -1) r[0] = res; *(uint16_t*)0x2000cfe4 = 0xa; *(uint16_t*)0x2000cfe6 = htobe16(0x4e20); *(uint32_t*)0x2000cfe8 = 0; *(uint8_t*)0x2000cfec = 0; *(uint8_t*)0x2000cfed = 0; *(uint8_t*)0x2000cfee = 0; *(uint8_t*)0x2000cfef = 0; *(uint8_t*)0x2000cff0 = 0; *(uint8_t*)0x2000cff1 = 0; *(uint8_t*)0x2000cff2 = 0; *(uint8_t*)0x2000cff3 = 0; *(uint8_t*)0x2000cff4 = 0; *(uint8_t*)0x2000cff5 = 0; *(uint8_t*)0x2000cff6 = 0; *(uint8_t*)0x2000cff7 = 0; *(uint8_t*)0x2000cff8 = 0; *(uint8_t*)0x2000cff9 = 0; *(uint8_t*)0x2000cffa = 0; *(uint8_t*)0x2000cffb = 0; *(uint32_t*)0x2000cffc = 0; syscall(__NR_connect, r[0], 0x2000cfe4, 0x1c); *(uint64_t*)0x20000080 = 0; *(uint32_t*)0x20000088 = 0; *(uint64_t*)0x20000090 = 0x20000040; *(uint64_t*)0x20000040 = 0x20001000; *(uint64_t*)0x20000048 = 0; *(uint64_t*)0x20000098 = 1; *(uint64_t*)0x200000a0 = 0x20002000; *(uint64_t*)0x200000a8 = 0; *(uint32_t*)0x200000b0 = 0; syscall(__NR_sendmsg, r[0], 0x20000080, 0x8000); *(uint64_t*)0x20000440 = 0; *(uint32_t*)0x20000448 = 0; *(uint64_t*)0x20000450 = 0x20000180; *(uint64_t*)0x20000180 = 0x20000040; memcpy((void*)0x20000040, "\xbc\xe5", 2); *(uint64_t*)0x20000188 = 2; *(uint64_t*)0x20000458 = 1; *(uint64_t*)0x20000460 = 0x2000ae80; *(uint64_t*)0x20000468 = 0; *(uint32_t*)0x20000470 = 0; syscall(__NR_sendmsg, r[0], 0x20000440, 0); syscall(__NR_socket, 0x17, 0, 8); syscall(__NR_shmat, 0, 0x20ffb000, 0x6001); *(uint64_t*)0x20000200 = 0x200001c0; *(uint32_t*)0x200001c0 = -1; *(uint32_t*)0x200001c4 = -1; memcpy((void*)0x20b1d000, ".", 1); syscall(__NR_umount2, 0x20b1d000, 2); } int main() { syscall(__NR_mmap, 0x20000000, 0x1000000, 3, 0x32, -1, 0); loop(); return 0; }