mirror of
https://github.com/cloud-hypervisor/cloud-hypervisor.git
synced 2026-08-05 02:19:16 +00:00
Reject refcount values exceeding the maximum for the image's refcount_order. This prevents silent truncation when storing refcounts in narrow widths (e.g., 1-bit max is 1, 4-bit max is 15, etc.). Returns RefcountOverflow error with the attempted value, maximum, and bit width. Propagates as EINVAL to the guest. Signed-off-by: Anatol Belski <anbelski@linux.microsoft.com>