Whamcloud - gitweb
LU-1384 mdd: validate incoming param to avoid crashing
authorBobi Jam <bobijam@whamcloud.com>
Thu, 24 May 2012 03:30:18 +0000 (11:30 +0800)
committerOleg Drokin <green@whamcloud.com>
Wed, 30 May 2012 13:22:05 +0000 (09:22 -0400)
commit978049170f8e7ddfabc79f952a6e2c3a350a19f6
tree74b9a226a4bb314976368f7fc58be5a8db9dafd2
parent238065a063dbcd53a27a56eeb8f459ca85d6bc3b
LU-1384 mdd: validate incoming param to avoid crashing

MDS get crashed when it is connected by old 1.8.x client, the crash
point is

kernel:LustreError: 3657:0:(mdd_object.c:635:mdd_big_lmm_get())
ASSERTION( ma->ma_lmm_size > 0 ) failed

We need validate the incoming @ma lest old client crashes the MDS.

Signed-off-by: Bobi Jam <bobijam@whamcloud.com>
Change-Id: Iebdce6396318a2c6ee413a03dc76c122e3f84146
Reviewed-on: http://review.whamcloud.com/2905
Tested-by: Hudson
Reviewed-by: Andreas Dilger <adilger@whamcloud.com>
Tested-by: Maloo <whamcloud.maloo@gmail.com>
Reviewed-by: Oleg Drokin <green@whamcloud.com>
lustre/mdd/mdd_object.c