Whamcloud - gitweb
LU-2986 mdc: Kernel Oops on ioctl LL_IOC_GET_MDTIDX
authorBruno Faccini <bruno.faccini@intel.com>
Tue, 19 Mar 2013 23:37:02 +0000 (00:37 +0100)
committerOleg Drokin <oleg.drokin@intel.com>
Tue, 23 Apr 2013 05:47:09 +0000 (01:47 -0400)
commit847e98c42002f2b22c9b3b9624a44c327dee9050
treeb38efdc8a13a2a4bb50716878fd083654996a791
parent381060a6244dfba4819fa81f2b928beb12a39350
LU-2986 mdc: Kernel Oops on ioctl LL_IOC_GET_MDTIDX

ll_get_mdt_idx() calls md_getattr() with a NULL 3rd
parameter as a (struct ptlrpc_request **), this can
lead to a SEGV if lmv is skipped, like for a
single-MDS system without an LMV, and mdc_gettatr()
is called straight.

Signed-off-by: Bruno Faccini <bruno.faccini@intel.com>
Change-Id: I0f9e5f6a4ae09c9e9a26b231d26b803418827c23
Reviewed-on: http://review.whamcloud.com/5769
Tested-by: Hudson
Tested-by: Maloo <whamcloud.maloo@gmail.com>
Reviewed-by: Fan Yong <fan.yong@intel.com>
Reviewed-by: Andreas Dilger <andreas.dilger@intel.com>
Reviewed-by: Ned Bass <bass6@llnl.gov>
lustre/mdc/mdc_request.c