Whamcloud - gitweb
LU-12335 ldiskfs: fixed size preallocation table 50/34950/2
authorArtem Blagodarenko <artem.blagodarenko@seagate.com>
Thu, 23 May 2019 13:10:48 +0000 (16:10 +0300)
committerOleg Drokin <green@whamcloud.com>
Wed, 29 May 2019 04:24:29 +0000 (04:24 +0000)
commitf15995b8e52bafabe55506ad2e12c8a64a373948
treed609280037d60455ca38d261a176d3f10f0568d7
parent24294b843f79a1167f19d230ff1ab5c1a5cd88e7
LU-12335 ldiskfs: fixed size preallocation table

Preallocation table read/write code is racy. There is a
possibility of accessing memory outside of allocated table.

Make preallocation table fixed size. Array with 64
long int values are enough for any configuration and
don’t need much memory. With such array races are not
possible.

Signed-off-by: Artem Blagodarenko <c17828@cray.com>
Reviewed-by: Alexander Boyko <c17825@cray.com>
Reviewed-by: Alexander Zarochentsev <c17826@cray.com>
Tested-by: Elena Gryaznova <c17455@cray.com>
Cray-bug-id: LUS-7218
Change-Id: Ie089ac47c2610717a00d6cea9121ec08879a159c
Reviewed-on: https://review.whamcloud.com/34950
Tested-by: Jenkins
Reviewed-by: Alexandr Boyko <c17825@cray.com>
Reviewed-by: Andreas Dilger <adilger@whamcloud.com>
Tested-by: Maloo <maloo@whamcloud.com>
Reviewed-by: Oleg Drokin <green@whamcloud.com>
ldiskfs/kernel_patches/patches/rhel7.4/ext4-prealloc.patch
ldiskfs/kernel_patches/patches/rhel7/ext4-projid-quotas.patch