[PATCH 6.6 44/67] net: add copy_safe_from_sockptr() helper