Whamcloud - gitweb
LU-18518 ldiskfs: fix htree_lock array-index-out-of-bounds 27/57327/2
authorJian Yu <yujian@whamcloud.com>
Fri, 6 Dec 2024 17:50:58 +0000 (09:50 -0800)
committerOleg Drokin <green@whamcloud.com>
Sun, 2 Feb 2025 06:27:32 +0000 (06:27 +0000)
commit51b425d63a4d9482448da633224d82fa9fb4ec5d
tree20bdc34b6220e034cee6827467b250031932cbee
parentceee271cddc3a911a54415d7e5a125c25e6ab35b
LU-18518 ldiskfs: fix htree_lock array-index-out-of-bounds

This patch replaces 0-length trailing arrays with
flexible arrays in htree_lock.h to resolve the UBSAN
array-index-out-of-bounds runtime warnings.

Test-Parameters: mdtcount=4 mdscount=2 \
  clientdistro=ubuntu2404 testlist=sanity

Change-Id: I30b624a09f3f918ddaac105fb06db9fd4c693799
Signed-off-by: Jian Yu <yujian@whamcloud.com>
Reviewed-on: https://review.whamcloud.com/c/fs/lustre-release/+/57327
Tested-by: jenkins <devops@whamcloud.com>
Tested-by: Shuichi Ihara <sihara@ddn.com>
Tested-by: Maloo <maloo@whamcloud.com>
Reviewed-by: Andreas Dilger <adilger@whamcloud.com>
Reviewed-by: Arshad Hussain <arshad.hussain@aeoncomputing.com>
Reviewed-by: James Simmons <jsimmons@infradead.org>
Reviewed-by: Oleg Drokin <green@whamcloud.com>
ldiskfs/kernel_patches/patches/base/ext4-htree-lock.patch