I've read here that you can read kernel memory if you disable the address validity checks, but that's not what I want to do.
I want to return some strings from the kernel to the userspace, and not being sure of their length I was planning on allocating user memory from the kernel, and then freeing it from userspace when I don't need it anymore, without needing to rely on the kernel again.
Is there any way of doing that?