[Devel] [PATCH hci-8.2] selftests/ve: read ve.mnt_avail_nr as a signed value in ve_ns_owner_test

Konstantin Khorenko khorenko at virtuozzo.com
Thu Nov 19 19:51:51 MSK 2026


Applying with these fixes on my side:

- dropped "A VHI host with 70 mounts reads -39." from the message.

On Thu, 19 Nov 2026 11:12:23 +0400, Mirian Shilakadze wrote:
> 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

A count from one host says nothing to a later reader, and it is off by
one anyway: copy_tree() also copies the root mount that /proc/mounts
does not show, so the counter goes negative at 32 visible mounts.

-- 
Konstantin Khorenko,
Virtuozzo Linux Kernel Team



More information about the Devel mailing list