[LU-13950] Do not crash if lnet_sock_getaddr returns error Created: 07/Sep/20  Updated: 02/Jun/21  Resolved: 02/Jun/21

Status: Resolved
Project: Lustre
Component/s: None
Affects Version/s: None
Fix Version/s: Lustre 2.15.0

Type: Bug Priority: Minor
Reporter: Artem Blagodarenko (Inactive) Assignee: Artem Blagodarenko (Inactive)
Resolution: Fixed Votes: 0
Labels: patch

Severity: 3
Rank (Obsolete): 9223372036854775807

 Description   

Some issues with a network lead to panic in the ksocknal_accept

rc = lnet_sock_getaddr(sock, true, &peer_ip, &peer_port);
LASSERT(rc == 0); /* we succeeded before */

Let's pass this error to the caller.



 Comments   
Comment by Gerrit Updater [ 07/Sep/20 ]

Artem Blagodarenko (artem.blagodarenko@hpe.com) uploaded a new patch: https://review.whamcloud.com/39834
Subject: LU-13950 lnet: do not crash if lnet_sock_getaddr returns error
Project: fs/lustre-release
Branch: master
Current Patch Set: 1
Commit: b47b731150577739382afb4abbdd6e8a04328679

Comment by Gerrit Updater [ 02/Jun/21 ]

Oleg Drokin (green@whamcloud.com) merged in patch https://review.whamcloud.com/39834/
Subject: LU-13950 lnet: do not crash if lnet_sock_getaddr returns error
Project: fs/lustre-release
Branch: master
Current Patch Set:
Commit: 48a9ea82eb30bbbf66cce527c1205d13fbd4eb58

Comment by Peter Jones [ 02/Jun/21 ]

Landed for 2.15

Generated at Sat Feb 10 03:05:35 UTC 2024 using Jira 9.4.14#940014-sha1:734e6822bbf0d45eff9af51f82432957f73aa32c.