Whamcloud - gitweb
LU-8084 lfsck: handle linkea record length properly 77/19877/5
authorFan Yong <fan.yong@intel.com>
Thu, 16 Jun 2016 14:58:10 +0000 (22:58 +0800)
committerOleg Drokin <oleg.drokin@intel.com>
Mon, 22 Aug 2016 03:45:49 +0000 (03:45 +0000)
commit81eea4b470a6ff45478f92659389ad8cb0277415
tree731db9e0ddc2b2985a213b37e166f2804d22fb4e
parent0bb49b2624827490ca3ea6a146d96cf7cf2b402f
LU-8084 lfsck: handle linkea record length properly

The record length in the linkea may be corrupted. If we do not handle
the invalid record length when locate the next linkea record or delete
the current record, it may cause invalid memory accessing and corrupt
other data in RAM, and then cause kinds of strange RAM issues.

Signed-off-by: Fan Yong <fan.yong@intel.com>
Change-Id: I27d724025c8157ecf51e3269a39e2fdfbc27a27d
Reviewed-on: http://review.whamcloud.com/19877
Tested-by: Jenkins
Tested-by: Maloo <hpdd-maloo@intel.com>
Reviewed-by: Andreas Dilger <andreas.dilger@intel.com>
Reviewed-by: Lai Siyao <lai.siyao@intel.com>
Reviewed-by: Oleg Drokin <oleg.drokin@intel.com>
lustre/lfsck/lfsck_engine.c
lustre/lfsck/lfsck_namespace.c