Hi Michael On 18/06/24 12:41, Michael Ellerman wrote: > I guess there isn't a kmem_cache_create_user_readonly() ? Thank you for your review. My understanding of the question is whether there's a way to whitelist a region such that it can be copied to userspace, but not written to using copy_from_user(). No, we don't have a function to whitelist only for copy_to_user() and not copy_from_user().
Thank you Anjali K