Whamcloud - gitweb
LU-17356 quota: fix qmt_pool_new_conn 19/55019/3
authorSergey Cheremencev <scherementsev@ddn.com>
Mon, 6 May 2024 13:05:36 +0000 (16:05 +0300)
committerOleg Drokin <green@whamcloud.com>
Wed, 5 Jun 2024 04:44:43 +0000 (04:44 +0000)
commitb64bc2c6f35f9fee35da6eec1e476eab76ad7646
treedbe2edd9a40c2c46c59118b7485bd4226b598431
parent077cb30a6fba7f62c37cb86515ba752495359d3e
LU-17356 quota: fix qmt_pool_new_conn

Wrong argument passed into qmt_dom from
qmt_pool_new_conn caused a panic:

  qmt_sarr_get_idx()) ASSERTION( arr_idx <
    qpi->qpi_sarr.osts.op_count && arr_idx >= 0 )
    failed: idx invalid 0 op_count 0

Add conf-sanity_33d that reproduces above
assertion without the fix.

Fixes: 67f90e4288 ("LU-17034 quota: lqeg_arr memmory corruption")
Signed-off-by: Sergey Cheremencev <scherementsev@ddn.com>
Change-Id: I48801f1fb7e69097cbfbe083f1d31a4639d4bf4d
Reviewed-on: https://review.whamcloud.com/c/fs/lustre-release/+/55019
Tested-by: jenkins <devops@whamcloud.com>
Tested-by: Maloo <maloo@whamcloud.com>
Reviewed-by: Andreas Dilger <adilger@whamcloud.com>
Reviewed-by: Alexander Boyko <alexander.boyko@hpe.com>
Reviewed-by: Oleg Drokin <green@whamcloud.com>
lustre/include/uapi/linux/lustre/lustre_idl.h
lustre/quota/lproc_quota.c
lustre/quota/lquota_disk.c
lustre/quota/lquota_internal.h
lustre/quota/lquota_lib.c
lustre/quota/qmt_handler.c
lustre/quota/qmt_internal.h
lustre/quota/qmt_lock.c
lustre/quota/qmt_pool.c
lustre/tests/conf-sanity.sh