[Devel] [PATCH hci-8.2] selftests/ve: read ve.mnt_avail_nr as a signed value in ve_ns_owner_test
no-reply at sashiko.virtuozzo.com
no-reply at sashiko.virtuozzo.com
Thu Nov 19 10:15:25 MSK 2026
> The new VE is charged for every mount it copies from the host, and that
> charge ignores the limit, so ve.mnt_avail_nr goes below zero once the
> host has more mounts than the test's limit of 32. A VHI host with 70
> mounts reads -39. The test reads the counter with read_u64_at(), the
> negative value wraps to a huge number and both cases fail the check
> that it is less than VE_MOUNTS_MAX.
>
> Read the counter with read_s32_at(), as ve_mount_accounting_test does.
>
> Fixes: 5eed1403cd54 ("ve: make mount limit configurable per VE")
> Feature: per-ve failcounters
> https://virtuozzo.atlassian.net/browse/VSTOR-156012
> Signed-off-by: Mirian Shilakadze <mirian.shilakadze at virtuozzo.com>
Sashiko has reviewed this patch and found no issues.
Carry the trailer below into the next revision and Sashiko will not review this patch again.
Reviewed-by: Sashiko <no-reply at sashiko.virtuozzo.com>
--
Sashiko AI review · https://sashiko.vzint.dev/#/patchset/20261119071250.470335-1-mirian.shilakadze@virtuozzo.com?part=1
More information about the Devel
mailing list