// 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; *(uint16_t*)0x20000040 = 0x18; *(uint32_t*)0x20000042 = 1; *(uint32_t*)0x20000046 = 0; *(uint32_t*)0x2000004a = r[0]; *(uint32_t*)0x2000004e = 1; *(uint32_t*)0x20000052 = 4; *(uint32_t*)0x20000056 = 3; *(uint32_t*)0x2000005a = 3; *(uint16_t*)0x2000005e = 0xa; *(uint16_t*)0x20000060 = htobe16(0x4e24); *(uint32_t*)0x20000062 = 4; *(uint64_t*)0x20000066 = htobe64(0); *(uint64_t*)0x2000006e = htobe64(1); *(uint32_t*)0x20000076 = 0x80000001; syscall(__NR_sendto, r[0], 0x20000000, 0, 0x20000000, 0x20000040, 0x80); } int main() { syscall(__NR_mmap, 0x20000000, 0x1000000, 3, 0x32, -1, 0); loop(); return 0; }