[PATCH openEuler-22.03-LTS-SP1 1/2] net: add copy_safe_from_sockptr() helper