Quantcast
Channel: Active questions tagged kernel-modules - Unix & Linux Stack Exchange
Viewing all articles
Browse latest Browse all 1183

user space address dereference in kernel [migrated]

$
0
0

I have allocated user space address using compat_alloc_user_space api, but sometimes de-referencing this pointer or address would cause page fault in 4.X kernel, but de-referencing in 3.x kernel works fine.

Solution in 4.X kernel is to use get_user and put_user api's to work with this user space pointers.

Is there a way to make dereferencing work in 4.x kernel with using get_user and put_user api?


Viewing all articles
Browse latest Browse all 1183

Trending Articles



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