Whamcloud - gitweb
LU-12965 obdclass: remove assertion for imp_refcount 43/36743/3
authorLi Dongyang <dongyangli@ddn.com>
Wed, 13 Nov 2019 04:01:25 +0000 (15:01 +1100)
committerOleg Drokin <green@whamcloud.com>
Tue, 17 Dec 2019 06:40:47 +0000 (06:40 +0000)
commitdd71e74fecf45b81daa27c89c0b8065a58cac5c1
tree374e7ae8f6468cbdbdbbb5cd3e3b7ef63f40fa43
parent3aa8826aabc7ceb16ed5efc8606a243684274982
LU-12965 obdclass: remove assertion for imp_refcount

After calling obd_zombie_import_add(), obd_import could
be freed by obd_zombie before we check imp_refcount with
LASSERT_ATOMIC_GE_LT. It's a use after free and could
crash the box.

Signed-off-by: Li Dongyang <dongyangli@ddn.com>
Change-Id: I3d63acf2bff543924ca0e74a35d24c507d68f6aa
Reviewed-on: https://review.whamcloud.com/36743
Reviewed-by: James Simmons <jsimmons@infradead.org>
Reviewed-by: Shaun Tancheff <stancheff@cray.com>
Tested-by: jenkins <devops@whamcloud.com>
Tested-by: Maloo <maloo@whamcloud.com>
Reviewed-by: Yang Sheng <ys@whamcloud.com>
Reviewed-by: Oleg Drokin <green@whamcloud.com>
lustre/obdclass/genops.c