[Devel] [PATCH hci-8.1 v7 2/8] block/blk-cbt: shift the block size as unsigned
no-reply at sashiko.virtuozzo.com
no-reply at sashiko.virtuozzo.com
Wed Oct 28 13:16:35 MSK 2026
> cbt_ioc_init() accepts any power of two block size, so block_bits can be
> 31, and then 1 << block_bits overflows int. In blk_cbt_add() and
> cbt_ioc_set() the sign extended block size then makes the rounded up
> block counts wrong. Shift an unsigned one explicitly everywhere the
> block size is computed.
>
> https://virtuozzo.atlassian.net/browse/VSTOR-149268
> Feature: cbt: changed block tracking (for backup)
> Signed-off-by: Pavel Tikhomirov <ptikhomirov at virtuozzo.com>
Sashiko has reviewed this patch and found no issues. It looks great!
--
Sashiko AI review · https://sashiko.vzint.dev/#/patchset/20261028-ptikhomirov-vstor-149268-cbt-account-at-rq-start-v7-0-5c48672191c2@virtuozzo.com?part=2
More information about the Devel
mailing list