[LU-12101] lctl push causes a crash Created: 25/Mar/19  Updated: 12/Jul/19  Resolved: 12/Jul/19

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

Type: Bug Priority: Minor
Reporter: Neil Brown Assignee: Neil Brown
Resolution: Fixed Votes: 0
Labels: None
Environment:

Tested on SLE15 + Lustre 2.11, and drivers/staging.


Severity: 3
Rank (Obsolete): 9223372036854775807

 Description   

The command:

lctl --net tcp push

will cause a host with any active lustre connections to crash.  Code in ksocknal_push() has an incorrect termination condition and falls off the end of a linked lists, dereferencing an invalid pointer.

Precise results vary.  e.g. an LASSERT failure in ksocknal_connsock_addref(), or a NULL pointer dereference.



 Comments   
Comment by Gerrit Updater [ 25/Mar/19 ]

Neil Brown (neilb@suse.com) uploaded a new patch: https://review.whamcloud.com/34499
Subject: LU-12101 socklnd: fix infinite loop in ksocknal_push()
Project: fs/lustre-release
Branch: master
Current Patch Set: 1
Commit: 6c654b18919939e5ba35367e1ffdced74d371d0c

Comment by Gerrit Updater [ 12/Jul/19 ]

Oleg Drokin (green@whamcloud.com) merged in patch https://review.whamcloud.com/34499/
Subject: LU-12101 socklnd: fix infinite loop in ksocknal_push()
Project: fs/lustre-release
Branch: master
Current Patch Set:
Commit: 2bf657c025a593270e0ccbe5e8e2299355f8cf92

Comment by Peter Jones [ 12/Jul/19 ]

Landed for 2.12.3

Generated at Sat Feb 10 02:49:40 UTC 2024 using Jira 9.4.14#940014-sha1:734e6822bbf0d45eff9af51f82432957f73aa32c.