Whamcloud - gitweb
LU-5177 mdt: fix object leak and use after free 50/10750/3
authorMikhail Pershin <mike.pershin@intel.com>
Thu, 19 Jun 2014 06:35:02 +0000 (10:35 +0400)
committerOleg Drokin <oleg.drokin@intel.com>
Thu, 26 Jun 2014 15:17:15 +0000 (15:17 +0000)
commit633b0534dbf0e5e3176b74aa6ca54129946bfbc9
treeede8b2044c088659f147bf81ef43d540e54f1594
parenta213c3341903ff553df2e1cc42dd14a7b3d98845
LU-5177 mdt: fix object leak and use after free

The mdt_intent_layout() and mdt_open_by_fid_lock() may exit without
object put and causing object leakage.

The mdt_md_create() passed possibly freed object to the
mdt_create_pack_capa()

Signed-off-by: Mikhail Pershin <mike.pershin@intel.com>
Change-Id: I634052c58ee8595871af987755fda5a9f2c942e1
Reviewed-on: http://review.whamcloud.com/10750
Tested-by: Jenkins
Tested-by: Maloo <hpdd-maloo@intel.com>
Reviewed-by: wangdi <di.wang@intel.com>
Reviewed-by: John L. Hammond <john.hammond@intel.com>
Reviewed-by: Oleg Drokin <oleg.drokin@intel.com>
lustre/mdt/mdt_handler.c
lustre/mdt/mdt_open.c
lustre/mdt/mdt_reint.c