Whamcloud - gitweb
LU-15021 quota: protect lqe_glbl_data in lqe
authorHongchao Zhang <hongchao@whamcloud.com>
Wed, 13 Oct 2021 09:02:23 +0000 (17:02 +0800)
committerAndreas Dilger <adilger@whamcloud.com>
Wed, 9 Mar 2022 17:09:31 +0000 (17:09 +0000)
commitd616c419e803cdd94e1587f5ba31aeec7faa02b0
tree052958a6cf21d1b4aac5e486629932209dc23fe1
parentcdeccb759d49e3ed39172d3b3a9cc1a6f49e603a
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.

Lustre-change: https://review.whamcloud.com/45098
Lustre-commit: TBD (from 124c60bd3ff7705a63a572f4619ecbc5cff13f4c)

Signed-off-by: Hongchao Zhang <hongchao@whamcloud.com>
Change-Id: I274f07ee8609c83852572be51625cc929a9130ec
Reviewed-on: https://review.whamcloud.com/46351
Tested-by: jenkins <devops@whamcloud.com>
Tested-by: Maloo <maloo@whamcloud.com>
Reviewed-by: Andreas Dilger <adilger@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