[LU-12685] ll_statahead_threda has incorrect error handling code Created: 23/Aug/19  Updated: 03/Sep/19  Resolved: 03/Sep/19

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

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

Severity: 3
Rank (Obsolete): 9223372036854775807

 Description   

Commit ae828cd3b092 ("LU-4684 llite: add lock for dir layout data") for

https://review.whamcloud.com/#/c/32946/

changed how op_data was allocated, with consequence that failure is reported as NULL rarther than ERR_PTR(-ENOMEM).  The error handling code was not updated to match.

So a memory allocation failure will cause a NULL pointer dereference.



 Comments   
Comment by Gerrit Updater [ 23/Aug/19 ]

Neil Brown (neilb@suse.com) uploaded a new patch: https://review.whamcloud.com/35873
Subject: LU-12685 llite: fix check for mem-alloc failure.
Project: fs/lustre-release
Branch: master
Current Patch Set: 1
Commit: 6e18b6ab0ee7c45d24fb1ab8178e1221eeca842a

Comment by Gerrit Updater [ 03/Sep/19 ]

Oleg Drokin (green@whamcloud.com) merged in patch https://review.whamcloud.com/35873/
Subject: LU-12685 llite: fix check for mem-alloc failure.
Project: fs/lustre-release
Branch: master
Current Patch Set:
Commit: 0f6302471fd2344aaac58a3b12af2ae108b57f90

Comment by Peter Jones [ 03/Sep/19 ]

Landed for 2.13

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