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?