Whamcloud - gitweb
LU-15021 quota: protect lqe_glbl_data in lqe 98/45098/9
authorHongchao Zhang <hongchao@whamcloud.com>
Wed, 13 Oct 2021 09:02:23 +0000 (17:02 +0800)
committerOleg Drokin <green@whamcloud.com>
Thu, 17 Mar 2022 07:02:44 +0000 (07:02 +0000)
commit1dbcbd70f87b7390998cd3b1fa546ece9d2a493e
treeac372a331495d3819411d8da2ed2ab02c7be11a9
parent8269ae4ad3f9004a90cd2afb3895102fd3c80570
LU-15021 quota: protect lqe_glbl_data in lqe

The lqe_glbl_data in "struct lquota_entry" is allocated in
qmt_lvbo_init and freed in qmt_lvbo_free, it could be freed
during qmt_seed_glbe called by qmt_set_id_notify, and cause
panic because of using freed memory.

Signed-off-by: Hongchao Zhang <hongchao@whamcloud.com>
Change-Id: I274f07ee8609c83852572be51625cc929a9130ec
Reviewed-on: https://review.whamcloud.com/45098
Reviewed-by: Sergey Cheremencev <sergey.cheremencev@hpe.com>
Reviewed-by: Andreas Dilger <adilger@whamcloud.com>
Tested-by: jenkins <devops@whamcloud.com>
Tested-by: Maloo <maloo@whamcloud.com>
Reviewed-by: Oleg Drokin <green@whamcloud.com>
lustre/quota/lquota_internal.h
lustre/quota/qmt_entry.c
lustre/quota/qmt_handler.c
lustre/quota/qmt_lock.c
lustre/quota/qsd_entry.c