Whamcloud - gitweb
LU-6436 llite: NULL pointer dereference in cl_object_top() 77/27777/2
authorAndriy Skulysh <andriy.skulysh@seagate.com>
Thu, 22 Jun 2017 08:08:45 +0000 (11:08 +0300)
committerOleg Drokin <oleg.drokin@intel.com>
Wed, 19 Jul 2017 03:31:47 +0000 (03:31 +0000)
commit13c8d5e4bebf437227d95582c36ec1567b150cac
tree1ee21573a6c1a9d24bd4091123d1ae718c6b3cb8
parent15045c9067fd021baa0ec925bcc245949945d01e
LU-6436 llite: NULL pointer dereference in cl_object_top()

During race condition iget5_locked() returns inode without
I_NEW bit for the second thread. If cl_file_inode_init()
failed for the first thread lli_clob isn't valid for
corresponding fid.

But failed inode is marked bad, check it.

Change-Id: I02e477486e51d2653c8b047a18c54a5528b440c5
Seagate-bug-id: MRP-4035
Signed-off-by: Andriy Skulysh <andriy.skulysh@seagate.com>
Reviewed-on: https://review.whamcloud.com/27777
Tested-by: Jenkins
Reviewed-by: Bobi Jam <bobijam@hotmail.com>
Tested-by: Maloo <hpdd-maloo@intel.com>
Reviewed-by: Jinshan Xiong <jinshan.xiong@intel.com>
Reviewed-by: Oleg Drokin <oleg.drokin@intel.com>
lustre/llite/namei.c