Quantcast
Channel: Active questions tagged linux-kernel - Stack Overflow
Viewing all articles
Browse latest Browse all 12244

Can I allocate memory from the kernel and release it from userspace?

$
0
0

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?


Viewing all articles
Browse latest Browse all 12244

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>