Whamcloud - gitweb
LU-5732 hsm: sanity check for progress input 85/12285/4
authorFrank Zago <fzago@cray.com>
Sun, 12 Oct 2014 18:57:05 +0000 (13:57 -0500)
committerOleg Drokin <oleg.drokin@intel.com>
Wed, 19 Nov 2014 19:16:08 +0000 (19:16 +0000)
commit09974e3d70145343f10cccc8d12917814ccf2c8a
tree43651d29f772ea50ef513980b1d5546cfa52ff14
parent672ab0e00d6148330561d21ccff9331124914d35
LU-5732 hsm: sanity check for progress input

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.

Signed-off-by: frank zago <fzago@cray.com>
Change-Id: I0eb3fa9a66400a4ff3cee2f256c08e1d84744111
Reviewed-on: http://review.whamcloud.com/12285
Reviewed-by: John L. Hammond <john.hammond@intel.com>
Tested-by: Jenkins
Reviewed-by: James Nunez <james.a.nunez@intel.com>
Reviewed-by: Henri Doreau <henri.doreau@cea.fr>
Tested-by: Maloo <hpdd-maloo@intel.com>
Reviewed-by: Oleg Drokin <oleg.drokin@intel.com>
lustre/mdt/mdt_hsm_cdt_requests.c