// https://syzkaller.appspot.com/bug?id=004b0f7b61d4901cbfecfc33de7996e8cbe0a278 // 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, 0x2b, 1, 0); if (res != -1) r[0] = res; *(uint64_t*)0x20001000 = 0; *(uint32_t*)0x20001008 = 0; *(uint64_t*)0x20001010 = 0x200008c0; *(uint64_t*)0x200008c0 = 0x20000640; *(uint64_t*)0x200008c8 = 0; *(uint64_t*)0x200008d0 = 0x20000680; *(uint64_t*)0x200008d8 = 0; *(uint64_t*)0x200008e0 = 0x20000700; *(uint64_t*)0x200008e8 = 0; *(uint64_t*)0x200008f0 = 0x20000740; *(uint64_t*)0x200008f8 = 0; *(uint64_t*)0x20000900 = 0x20000840; *(uint64_t*)0x20000908 = 0; *(uint64_t*)0x20001018 = 5; *(uint64_t*)0x20001020 = 0x20000940; *(uint64_t*)0x20001028 = 0; *(uint32_t*)0x20001030 = 0x10; syscall(__NR_sendmsg, r[0], 0x20001000, 0x20040004); } int main() { syscall(__NR_mmap, 0x20000000, 0x1000000, 3, 0x32, -1, 0); loop(); return 0; }