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>
Thu, 13 Sep 2012 17:34:08 +0000 (13:34 -0400)
commit0a6c19106efc4ab14e745685215ec72694d98b5c
tree4cac8b08cada8c79a403cc3d1a97e86316d5f24d
parentb59c31057fb3500093d842a8b7c42771d19685b8
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