ray_cs: Fix copy_from_user handling