// 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*)0x20000580 = 0; *(uint32_t*)0x20000588 = 0; *(uint64_t*)0x20000590 = 0x20000500; *(uint64_t*)0x20000500 = 0x20000040; *(uint64_t*)0x20000508 = 0; *(uint64_t*)0x20000510 = 0x200000c0; *(uint64_t*)0x20000518 = 0; *(uint64_t*)0x20000520 = 0x200001c0; *(uint64_t*)0x20000528 = 0; *(uint64_t*)0x20000530 = 0x20000240; *(uint64_t*)0x20000538 = 0; *(uint64_t*)0x20000540 = 0x20000280; *(uint64_t*)0x20000548 = 0; *(uint64_t*)0x20000550 = 0x20000380; *(uint64_t*)0x20000558 = 0; *(uint64_t*)0x20000560 = 0x200003c0; *(uint64_t*)0x20000568 = 0; *(uint64_t*)0x20000570 = 0x200004c0; *(uint64_t*)0x20000578 = 0; *(uint64_t*)0x20000598 = 8; *(uint64_t*)0x200005a0 = 0; *(uint64_t*)0x200005a8 = 0; *(uint32_t*)0x200005b0 = 0x4004004; syscall(__NR_sendmsg, r[0], 0x20000580, 0x20000000); } int main() { syscall(__NR_mmap, 0x20000000, 0x1000000, 3, 0x32, -1, 0); loop(); return 0; }