[LU-5732] hsm: sanity check for sane progress extent value Created: 13/Oct/14  Updated: 19/Feb/15  Resolved: 20/Nov/14

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

Type: Bug Priority: Critical
Reporter: Frank Zago (Inactive) Assignee: James Nunez (Inactive)
Resolution: Fixed Votes: 0
Labels: hsm, patch

Severity: 3
Rank (Obsolete): 16094

 Description   

During an HSM archive or restore, the progress is reported by the copytool, in userspace. That value may be bogus. For
instance, this will crash the MDS in interval_set():

he.offset = -1;
he.length = 10;
rc = llapi_hsm_action_progress(hcp, &he, length, 0);

So check that userspace is giving a sane progress extent value.



 Comments   
Comment by Frank Zago (Inactive) [ 13/Oct/14 ]

http://review.whamcloud.com/12285

Comment by Gerrit Updater [ 19/Nov/14 ]

Oleg Drokin (oleg.drokin@intel.com) merged in patch http://review.whamcloud.com/12285/
Subject: LU-5732 hsm: sanity check for progress input
Project: fs/lustre-release
Branch: master
Current Patch Set:
Commit: 09974e3d70145343f10cccc8d12917814ccf2c8a

Comment by James Nunez (Inactive) [ 20/Nov/14 ]

Patch landed to master (pre-2.7)

Comment by Gerrit Updater [ 20/Nov/14 ]

James Nunez (james.a.nunez@intel.com) uploaded a new patch: http://review.whamcloud.com/12804
Subject: LU-5732 hsm: sanity check for progress input
Project: fs/lustre-release
Branch: b2_5
Current Patch Set: 1
Commit: cfd5a058bb61024df786d188949ae3a71f31100e

Comment by James Nunez (Inactive) [ 20/Nov/14 ]

Patch for b2_5 at http://review.whamcloud.com/#/c/12804/

Comment by Gerrit Updater [ 24/Nov/14 ]

frank zago (fzago@cray.com) uploaded a new patch: http://review.whamcloud.com/12836
Subject: LU-5732 hsm: complementary testsuite for user HSM API
Project: fs/lustre-release
Branch: master
Current Patch Set: 1
Commit: c6692494185171b69e287a715b15dd6612579ac7

Comment by Frank Zago (Inactive) [ 24/Nov/14 ]

Tests: http://review.whamcloud.com/12836

Comment by Gerrit Updater [ 16/Jan/15 ]

Oleg Drokin (oleg.drokin@intel.com) merged in patch http://review.whamcloud.com/12836/
Subject: LU-5732 hsm: complementary testsuite for user HSM API
Project: fs/lustre-release
Branch: master
Current Patch Set:
Commit: 1fe3ae8dab47941e465dcc47ffa52e18538aeb1e

Comment by Gerrit Updater [ 19/Feb/15 ]

James Nunez (james.a.nunez@intel.com) uploaded a new patch: http://review.whamcloud.com/13813
Subject: LU-5732 hsm: complementary testsuite for user HSM API
Project: fs/lustre-release
Branch: b2_5
Current Patch Set: 1
Commit: 748b9e50b85094a0bd5992629420dbe6cb4b376a

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