[LU-6908] lfsck_create_lpf() should initialize name before using Created: 27/Jul/15  Updated: 31/Jul/15  Resolved: 31/Jul/15

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

Type: Bug Priority: Trivial
Reporter: Alex Zhuravlev Assignee: Alex Zhuravlev
Resolution: Fixed Votes: 0
Labels: None

Severity: 3
Rank (Obsolete): 9223372036854775807

 Comments   
Comment by Alex Zhuravlev [ 27/Jul/15 ]

in lfsck_create_lpf():

char name[8];
..
rc = lfsck_lock(env, lfsck, parent, name, llh,
MDS_INODELOCK_UPDATE, LCK_PW);
if (rc != 0)
RETURN(rc);

snprintf(name, 8, "MDT%04x", node);

so, LFSCK requests a lock with non-initialized name. it's strange that gcc doesn't complain..

Comment by Alex Zhuravlev [ 27/Jul/15 ]

http://review.whamcloud.com/#/c/15727/

Comment by Gerrit Updater [ 31/Jul/15 ]

Oleg Drokin (oleg.drokin@intel.com) merged in patch http://review.whamcloud.com/15727/
Subject: LU-6908 lfsck: initalize name before use
Project: fs/lustre-release
Branch: master
Current Patch Set:
Commit: 6cb90e11b653feac4522f6d7672cf27269156cdc

Comment by Peter Jones [ 31/Jul/15 ]

Landed for 2.8

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