Whamcloud - gitweb
LU-15021 quota: protect lqe_glbl_data in lqe 98/45098/6
authorHongchao Zhang <hongchao@whamcloud.com>
Wed, 13 Oct 2021 09:02:23 +0000 (17:02 +0800)
committerAndreas Dilger <adilger@whamcloud.com>
Fri, 28 Jan 2022 06:58:30 +0000 (06:58 +0000)
commit124c60bd3ff7705a63a572f4619ecbc5cff13f4c
treed699f9b322b3f7b72bc20a4fe593e79a81a48b75
parente631cd2395564833e9b6b27c64863d624ad0b7df
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
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