Whamcloud - gitweb
LU-19059 lov: fix lov_stripe_set 36/59436/3
authorVladimir Saveliev <vladimir.saveliev@hpe.com>
Wed, 4 Jun 2025 16:18:14 +0000 (19:18 +0300)
committerOleg Drokin <green@whamcloud.com>
Sat, 7 Jun 2025 22:53:00 +0000 (22:53 +0000)
commit0e2410381a915bebf76bad6c72adeb02803dfe49
tree67797590641718f29b3f3307df832383c1c15ea1
parent22f2344a13d38c8ceea9fba87bfb125ed19fa35e
LU-19059 lov: fix lov_stripe_set

Prevent overflow on multiplication of 32 bit integers.

Test to illustrate the issue is added to hit overflow in both branches
of lov_stripe_set().

Fixes: 6eee4ea5b6 ("LU-6174 lov: use standard Linux 64 divison macros")
HPE-bug-id: LUS-12782
Signed-off-by: Vladimir Saveliev <vladimir.saveliev@hpe.com>
Change-Id: If5a5aaf8de98c79b3df908e0d052461a3c8d0989
Reviewed-on: https://review.whamcloud.com/c/fs/lustre-release/+/59436
Tested-by: jenkins <devops@whamcloud.com>
Tested-by: Maloo <maloo@whamcloud.com>
Reviewed-by: James Simmons <jsimmons@infradead.org>
Reviewed-by: Andreas Dilger <adilger@whamcloud.com>
Reviewed-by: Alexey Lyashkov <alexey.lyashkov@hpe.com>
Reviewed-by: Oleg Drokin <green@whamcloud.com>
lustre/lov/lov_offset.c
lustre/tests/sanity.sh