[PATCH 6.1 55/73] net: add copy_safe_from_sockptr() helper