copy kernel memory into the user memory