Whamcloud - gitweb
LU-1923 lov: verify stripe is on given device
authorAndreas Dilger <adilger@whamcloud.com>
Thu, 13 Sep 2012 02:35:55 +0000 (20:35 -0600)
committerOleg Drokin <green@whamcloud.com>
Fri, 2 Nov 2012 22:49:12 +0000 (18:49 -0400)
commitf3cd23eed94a30f403f2506687f6d158988052de
treeb8ad8103c2749f88a4f5f1b8ef31c4c35125ed7e
parentbcabe43b38793e23d4075fd2beafeb19edafa53d
LU-1923 lov: verify stripe is on given device

When restarting FIEMAP from a file with many extents, the first
supplied fiemap extent contains the offset of the previous last
extent found.  If this data is invalid, it may cause the LOV code
to acccess out-of-bounds array indices.

Verify data passed from userspace is within bounds.

Signed-off-by: Andreas Dilger <adilger@whamcloud.com>
Change-Id: I8e70e891b9f23c8f72aa78a4807369584ac2b04f
Reviewed-on: http://review.whamcloud.com/3962
Tested-by: Hudson
Tested-by: Maloo <whamcloud.maloo@gmail.com>
Reviewed-by: Oleg Drokin <green@whamcloud.com>
Reviewed-by: wangdi <di.wang@whamcloud.com>
lustre/lov/lov_obd.c